Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

265 rader
9.5 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.1/applications/",
  12. "baseUrl": "https://www.googleapis.com/androidpublisher/v1.1/applications/",
  13. "batchPath": "batch/androidpublisher/v1.1",
  14. "canonicalName": "Android Publisher",
  15. "description": "Accesses Android application developers' Google Play accounts.",
  16. "discoveryVersion": "v1",
  17. "documentationLink": "https://developers.google.com/android-publisher",
  18. "etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/SlWD_44AAZzh33wX5EZhE-9oiU0\"",
  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.1",
  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. "inapppurchases": {
  76. "methods": {
  77. "get": {
  78. "description": "Checks the purchase and consumption status of an inapp item.",
  79. "httpMethod": "GET",
  80. "id": "androidpublisher.inapppurchases.get",
  81. "parameterOrder": [
  82. "packageName",
  83. "productId",
  84. "token"
  85. ],
  86. "parameters": {
  87. "packageName": {
  88. "description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing').",
  89. "location": "path",
  90. "required": true,
  91. "type": "string"
  92. },
  93. "productId": {
  94. "description": "The inapp product SKU (for example, 'com.some.thing.inapp1').",
  95. "location": "path",
  96. "required": true,
  97. "type": "string"
  98. },
  99. "token": {
  100. "description": "The token provided to the user's device when the inapp product was purchased.",
  101. "location": "path",
  102. "required": true,
  103. "type": "string"
  104. }
  105. },
  106. "path": "{packageName}/inapp/{productId}/purchases/{token}",
  107. "response": {
  108. "$ref": "InappPurchase"
  109. },
  110. "scopes": [
  111. "https://www.googleapis.com/auth/androidpublisher"
  112. ]
  113. }
  114. }
  115. },
  116. "purchases": {
  117. "methods": {
  118. "cancel": {
  119. "description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
  120. "httpMethod": "POST",
  121. "id": "androidpublisher.purchases.cancel",
  122. "parameterOrder": [
  123. "packageName",
  124. "subscriptionId",
  125. "token"
  126. ],
  127. "parameters": {
  128. "packageName": {
  129. "description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
  130. "location": "path",
  131. "required": true,
  132. "type": "string"
  133. },
  134. "subscriptionId": {
  135. "description": "The purchased subscription ID (for example, 'monthly001').",
  136. "location": "path",
  137. "required": true,
  138. "type": "string"
  139. },
  140. "token": {
  141. "description": "The token provided to the user's device when the subscription was purchased.",
  142. "location": "path",
  143. "required": true,
  144. "type": "string"
  145. }
  146. },
  147. "path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel",
  148. "scopes": [
  149. "https://www.googleapis.com/auth/androidpublisher"
  150. ]
  151. },
  152. "get": {
  153. "description": "Checks whether a user's subscription purchase is valid and returns its expiry time.",
  154. "httpMethod": "GET",
  155. "id": "androidpublisher.purchases.get",
  156. "parameterOrder": [
  157. "packageName",
  158. "subscriptionId",
  159. "token"
  160. ],
  161. "parameters": {
  162. "packageName": {
  163. "description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
  164. "location": "path",
  165. "required": true,
  166. "type": "string"
  167. },
  168. "subscriptionId": {
  169. "description": "The purchased subscription ID (for example, 'monthly001').",
  170. "location": "path",
  171. "required": true,
  172. "type": "string"
  173. },
  174. "token": {
  175. "description": "The token provided to the user's device when the subscription was purchased.",
  176. "location": "path",
  177. "required": true,
  178. "type": "string"
  179. }
  180. },
  181. "path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}",
  182. "response": {
  183. "$ref": "SubscriptionPurchase"
  184. },
  185. "scopes": [
  186. "https://www.googleapis.com/auth/androidpublisher"
  187. ]
  188. }
  189. }
  190. }
  191. },
  192. "revision": "20190120",
  193. "rootUrl": "https://www.googleapis.com/",
  194. "schemas": {
  195. "InappPurchase": {
  196. "description": "An InappPurchase resource indicates the status of a user's inapp product purchase.",
  197. "id": "InappPurchase",
  198. "properties": {
  199. "consumptionState": {
  200. "description": "The consumption state of the inapp product. Possible values are: \n- Yet to be consumed \n- Consumed",
  201. "format": "int32",
  202. "type": "integer"
  203. },
  204. "developerPayload": {
  205. "description": "A developer-specified string that contains supplemental information about an order.",
  206. "type": "string"
  207. },
  208. "kind": {
  209. "default": "androidpublisher#inappPurchase",
  210. "description": "This kind represents an inappPurchase object in the androidpublisher service.",
  211. "type": "string"
  212. },
  213. "orderId": {
  214. "description": "The order id associated with the purchase of the inapp product.",
  215. "type": "string"
  216. },
  217. "purchaseState": {
  218. "description": "The purchase state of the order. Possible values are: \n- Purchased \n- Canceled",
  219. "format": "int32",
  220. "type": "integer"
  221. },
  222. "purchaseTime": {
  223. "description": "The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).",
  224. "format": "int64",
  225. "type": "string"
  226. },
  227. "purchaseType": {
  228. "description": "The type of purchase of the inapp product. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: \n- Test (i.e. purchased from a license testing account) \n- Promo (i.e. purchased using a promo code) \n- Rewarded (i.e. from watching a video ad instead of paying)",
  229. "format": "int32",
  230. "type": "integer"
  231. }
  232. },
  233. "type": "object"
  234. },
  235. "SubscriptionPurchase": {
  236. "description": "A SubscriptionPurchase resource indicates the status of a user's subscription purchase.",
  237. "id": "SubscriptionPurchase",
  238. "properties": {
  239. "autoRenewing": {
  240. "description": "Whether the subscription will automatically be renewed when it reaches its current expiry time.",
  241. "type": "boolean"
  242. },
  243. "initiationTimestampMsec": {
  244. "description": "Time at which the subscription was granted, in milliseconds since the Epoch.",
  245. "format": "int64",
  246. "type": "string"
  247. },
  248. "kind": {
  249. "default": "androidpublisher#subscriptionPurchase",
  250. "description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
  251. "type": "string"
  252. },
  253. "validUntilTimestampMsec": {
  254. "description": "Time at which the subscription will expire, in milliseconds since the Epoch.",
  255. "format": "int64",
  256. "type": "string"
  257. }
  258. },
  259. "type": "object"
  260. }
  261. },
  262. "servicePath": "androidpublisher/v1.1/applications/",
  263. "title": "Google Play Developer API",
  264. "version": "v1.1"
  265. }