GoogleGAL_Service_AndroidPublisher_Edits_Resource

The "edits" collection of methods.

Defined (1)

The class is defined in the following location(s).

/core/Google/Service/AndroidPublisher.php  
  1. class GoogleGAL_Service_AndroidPublisher_Edits_Resource extends GoogleGAL_Service_Resource 
  2.  
  3. /** 
  4. * Commits/applies the changes made in this edit back to the app. (edits.commit) 
  5. * @param string $packageName Unique identifier for the Android app that is 
  6. * being updated; for example, "com.spiffygame". 
  7. * @param string $editId Unique identifier for this edit. 
  8. * @param array $optParams Optional parameters. 
  9. * @return GoogleGAL_Service_AndroidPublisher_AppEdit 
  10. */ 
  11. public function commit($packageName, $editId, $optParams = array()) 
  12. $params = array('packageName' => $packageName, 'editId' => $editId); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('commit', array($params), "GoogleGAL_Service_AndroidPublisher_AppEdit"); 
  15.  
  16. /** 
  17. * Deletes an edit for an app. Creating a new edit will automatically delete any 
  18. * of your previous edits so this method need only be called if you want to 
  19. * preemptively abandon an edit. (edits.delete) 
  20. * @param string $packageName Unique identifier for the Android app that is 
  21. * being updated; for example, "com.spiffygame". 
  22. * @param string $editId Unique identifier for this edit. 
  23. * @param array $optParams Optional parameters. 
  24. */ 
  25. public function delete($packageName, $editId, $optParams = array()) 
  26. $params = array('packageName' => $packageName, 'editId' => $editId); 
  27. $params = array_merge($params, $optParams); 
  28. return $this->call('delete', array($params)); 
  29.  
  30. /** 
  31. * Returns information about the edit specified. Calls will fail if the edit is 
  32. * no long active (e.g. has been deleted, superseded or expired). (edits.get) 
  33. * @param string $packageName Unique identifier for the Android app that is 
  34. * being updated; for example, "com.spiffygame". 
  35. * @param string $editId Unique identifier for this edit. 
  36. * @param array $optParams Optional parameters. 
  37. * @return GoogleGAL_Service_AndroidPublisher_AppEdit 
  38. */ 
  39. public function get($packageName, $editId, $optParams = array()) 
  40. $params = array('packageName' => $packageName, 'editId' => $editId); 
  41. $params = array_merge($params, $optParams); 
  42. return $this->call('get', array($params), "GoogleGAL_Service_AndroidPublisher_AppEdit"); 
  43.  
  44. /** 
  45. * Creates a new edit for an app, populated with the app's current state. 
  46. * (edits.insert) 
  47. * @param string $packageName Unique identifier for the Android app that is 
  48. * being updated; for example, "com.spiffygame". 
  49. * @param GoogleGAL_AppEdit $postBody 
  50. * @param array $optParams Optional parameters. 
  51. * @return GoogleGAL_Service_AndroidPublisher_AppEdit 
  52. */ 
  53. public function insert($packageName, GoogleGAL_Service_AndroidPublisher_AppEdit $postBody, $optParams = array()) 
  54. $params = array('packageName' => $packageName, 'postBody' => $postBody); 
  55. $params = array_merge($params, $optParams); 
  56. return $this->call('insert', array($params), "GoogleGAL_Service_AndroidPublisher_AppEdit"); 
  57.  
  58. /** 
  59. * Checks that the edit can be successfully committed. The edit's changes are 
  60. * not applied to the live app. (edits.validate) 
  61. * @param string $packageName Unique identifier for the Android app that is 
  62. * being updated; for example, "com.spiffygame". 
  63. * @param string $editId Unique identifier for this edit. 
  64. * @param array $optParams Optional parameters. 
  65. * @return GoogleGAL_Service_AndroidPublisher_AppEdit 
  66. */ 
  67. public function validate($packageName, $editId, $optParams = array()) 
  68. $params = array('packageName' => $packageName, 'editId' => $editId); 
  69. $params = array_merge($params, $optParams); 
  70. return $this->call('validate', array($params), "GoogleGAL_Service_AndroidPublisher_AppEdit");