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": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/wHt23iZe8Ye_ZkSeIpNeFO568Sc\"",
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 },
117 "revision": "20200428",
118 "rootUrl": "https://www.googleapis.com/",
119 "schemas": {
120 "InappPurchase": {
121 "description": "An InappPurchase resource indicates the status of a user's inapp product purchase.",
122 "id": "InappPurchase",
123 "properties": {
124 "consumptionState": {
125 "description": "The consumption state of the inapp product. Possible values are: \n- Yet to be consumed \n- Consumed",
126 "format": "int32",
127 "type": "integer"
128 },
129 "developerPayload": {
130 "description": "A developer-specified string that contains supplemental information about an order.",
131 "type": "string"
132 },
133 "kind": {
134 "default": "androidpublisher#inappPurchase",
135 "description": "This kind represents an inappPurchase object in the androidpublisher service.",
136 "type": "string"
137 },
138 "orderId": {
139 "description": "The order id associated with the purchase of the inapp product.",
140 "type": "string"
141 },
142 "purchaseState": {
143 "description": "The purchase state of the order. Possible values are: \n- Purchased \n- Canceled \n- Pending",
144 "format": "int32",
145 "type": "integer"
146 },
147 "purchaseTime": {
148 "description": "The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).",
149 "format": "int64",
150 "type": "string"
151 },
152 "purchaseType": {
153 "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)",
154 "format": "int32",
155 "type": "integer"
156 }
157 },
158 "type": "object"
159 }
160 },
161 "servicePath": "androidpublisher/v1.1/applications/",
162 "title": "Google Play Developer API",
163 "version": "v1.1"
164}
View as plain text