You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

184 rivejä
6.4 KiB

  1. {
  2. "auth": {
  3. "oauth2": {
  4. "scopes": {
  5. "https://www.googleapis.com/auth/androidpublisher": {
  6. "description": "View and manage your Google Play Developer account"
  7. }
  8. }
  9. }
  10. },
  11. "basePath": "/androidpublisher/v1/applications/",
  12. "baseUrl": "https://www.googleapis.com/androidpublisher/v1/applications/",
  13. "batchPath": "batch/androidpublisher/v1",
  14. "canonicalName": "Android Publisher",
  15. "description": "Lets Android application developers access their Google Play accounts.",
  16. "discoveryVersion": "v1",
  17. "documentationLink": "https://developers.google.com/android-publisher",
  18. "etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/-QMaQIlD0PaJsUVQz4bP5TProYA\"",
  19. "icons": {
  20. "x16": "https://www.google.com/images/icons/product/android-16.png",
  21. "x32": "https://www.google.com/images/icons/product/android-32.png"
  22. },
  23. "id": "androidpublisher:v1",
  24. "kind": "discovery#restDescription",
  25. "name": "androidpublisher",
  26. "ownerDomain": "google.com",
  27. "ownerName": "Google",
  28. "parameters": {
  29. "alt": {
  30. "default": "json",
  31. "description": "Data format for the response.",
  32. "enum": [
  33. "json"
  34. ],
  35. "enumDescriptions": [
  36. "Responses with Content-Type of application/json"
  37. ],
  38. "location": "query",
  39. "type": "string"
  40. },
  41. "fields": {
  42. "description": "Selector specifying which fields to include in a partial response.",
  43. "location": "query",
  44. "type": "string"
  45. },
  46. "key": {
  47. "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
  48. "location": "query",
  49. "type": "string"
  50. },
  51. "oauth_token": {
  52. "description": "OAuth 2.0 token for the current user.",
  53. "location": "query",
  54. "type": "string"
  55. },
  56. "prettyPrint": {
  57. "default": "true",
  58. "description": "Returns response with indentations and line breaks.",
  59. "location": "query",
  60. "type": "boolean"
  61. },
  62. "quotaUser": {
  63. "description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
  64. "location": "query",
  65. "type": "string"
  66. },
  67. "userIp": {
  68. "description": "Deprecated. Please use quotaUser instead.",
  69. "location": "query",
  70. "type": "string"
  71. }
  72. },
  73. "protocol": "rest",
  74. "resources": {
  75. "purchases": {
  76. "methods": {
  77. "cancel": {
  78. "description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
  79. "httpMethod": "POST",
  80. "id": "androidpublisher.purchases.cancel",
  81. "parameterOrder": [
  82. "packageName",
  83. "subscriptionId",
  84. "token"
  85. ],
  86. "parameters": {
  87. "packageName": {
  88. "description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
  89. "location": "path",
  90. "required": true,
  91. "type": "string"
  92. },
  93. "subscriptionId": {
  94. "description": "The purchased subscription ID (for example, 'monthly001').",
  95. "location": "path",
  96. "required": true,
  97. "type": "string"
  98. },
  99. "token": {
  100. "description": "The token provided to the user's device when the subscription was purchased.",
  101. "location": "path",
  102. "required": true,
  103. "type": "string"
  104. }
  105. },
  106. "path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel",
  107. "scopes": [
  108. "https://www.googleapis.com/auth/androidpublisher"
  109. ]
  110. },
  111. "get": {
  112. "description": "Checks whether a user's subscription purchase is valid and returns its expiry time.",
  113. "httpMethod": "GET",
  114. "id": "androidpublisher.purchases.get",
  115. "parameterOrder": [
  116. "packageName",
  117. "subscriptionId",
  118. "token"
  119. ],
  120. "parameters": {
  121. "packageName": {
  122. "description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
  123. "location": "path",
  124. "required": true,
  125. "type": "string"
  126. },
  127. "subscriptionId": {
  128. "description": "The purchased subscription ID (for example, 'monthly001').",
  129. "location": "path",
  130. "required": true,
  131. "type": "string"
  132. },
  133. "token": {
  134. "description": "The token provided to the user's device when the subscription was purchased.",
  135. "location": "path",
  136. "required": true,
  137. "type": "string"
  138. }
  139. },
  140. "path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}",
  141. "response": {
  142. "$ref": "SubscriptionPurchase"
  143. },
  144. "scopes": [
  145. "https://www.googleapis.com/auth/androidpublisher"
  146. ]
  147. }
  148. }
  149. }
  150. },
  151. "revision": "20180501",
  152. "rootUrl": "https://www.googleapis.com/",
  153. "schemas": {
  154. "SubscriptionPurchase": {
  155. "description": "A SubscriptionPurchase resource indicates the status of a user's subscription purchase.",
  156. "id": "SubscriptionPurchase",
  157. "properties": {
  158. "autoRenewing": {
  159. "description": "Whether the subscription will automatically be renewed when it reaches its current expiry time.",
  160. "type": "boolean"
  161. },
  162. "initiationTimestampMsec": {
  163. "description": "Time at which the subscription was granted, in milliseconds since the Epoch.",
  164. "format": "int64",
  165. "type": "string"
  166. },
  167. "kind": {
  168. "default": "androidpublisher#subscriptionPurchase",
  169. "description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
  170. "type": "string"
  171. },
  172. "validUntilTimestampMsec": {
  173. "description": "Time at which the subscription will expire, in milliseconds since the Epoch.",
  174. "format": "int64",
  175. "type": "string"
  176. }
  177. },
  178. "type": "object"
  179. }
  180. },
  181. "servicePath": "androidpublisher/v1/applications/",
  182. "title": "Google Play Developer API",
  183. "version": "v1"
  184. }