2017-08-05 18:17:15 +00:00
{
2018-03-30 10:51:18 +00:00
"auth" : {
"oauth2" : {
"scopes" : {
"https://www.googleapis.com/auth/androidpublisher" : {
"description" : "View and manage your Google Play Developer account"
}
}
}
2017-08-05 18:17:15 +00:00
} ,
2018-03-30 10:51:18 +00:00
"basePath" : "/androidpublisher/v1.1/applications/" ,
"baseUrl" : "https://www.googleapis.com/androidpublisher/v1.1/applications/" ,
"batchPath" : "batch/androidpublisher/v1.1" ,
"canonicalName" : "Android Publisher" ,
"description" : "Lets Android application developers access their Google Play accounts." ,
"discoveryVersion" : "v1" ,
"documentationLink" : "https://developers.google.com/android-publisher" ,
"etag" : "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/Xvb720kj6kaUU3p6XJECzzWJnek\"" ,
"icons" : {
"x16" : "https://www.google.com/images/icons/product/android-16.png" ,
"x32" : "https://www.google.com/images/icons/product/android-32.png"
2017-08-05 18:17:15 +00:00
} ,
2018-03-30 10:51:18 +00:00
"id" : "androidpublisher:v1.1" ,
"kind" : "discovery#restDescription" ,
"name" : "androidpublisher" ,
"ownerDomain" : "google.com" ,
"ownerName" : "Google" ,
"parameters" : {
"alt" : {
"default" : "json" ,
"description" : "Data format for the response." ,
"enum" : [
"json"
] ,
"enumDescriptions" : [
"Responses with Content-Type of application/json"
] ,
"location" : "query" ,
"type" : "string"
2017-08-05 18:17:15 +00:00
} ,
2018-03-30 10:51:18 +00:00
"fields" : {
"description" : "Selector specifying which fields to include in a partial response." ,
"location" : "query" ,
"type" : "string"
2017-08-05 18:17:15 +00:00
} ,
2018-03-30 10:51:18 +00:00
"key" : {
"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." ,
"location" : "query" ,
"type" : "string"
2017-08-05 18:17:15 +00:00
} ,
2018-03-30 10:51:18 +00:00
"oauth_token" : {
"description" : "OAuth 2.0 token for the current user." ,
"location" : "query" ,
"type" : "string"
2017-09-13 12:09:48 +00:00
} ,
2018-03-30 10:51:18 +00:00
"prettyPrint" : {
"default" : "true" ,
"description" : "Returns response with indentations and line breaks." ,
"location" : "query" ,
"type" : "boolean"
2017-08-05 18:17:15 +00:00
} ,
2018-03-30 10:51:18 +00:00
"quotaUser" : {
"description" : "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided." ,
"location" : "query" ,
"type" : "string"
2018-01-23 18:40:42 +00:00
} ,
2018-03-30 10:51:18 +00:00
"userIp" : {
"description" : "IP address of the site where the request originates. Use this if you want to enforce per-user limits." ,
"location" : "query" ,
"type" : "string"
2017-08-05 18:17:15 +00:00
}
} ,
2018-03-30 10:51:18 +00:00
"protocol" : "rest" ,
"resources" : {
"inapppurchases" : {
"methods" : {
"get" : {
"description" : "Checks the purchase and consumption status of an inapp item." ,
"httpMethod" : "GET" ,
"id" : "androidpublisher.inapppurchases.get" ,
"parameterOrder" : [
"packageName" ,
"productId" ,
"token"
] ,
"parameters" : {
"packageName" : {
"description" : "The package name of the application the inapp product was sold in (for example, 'com.some.thing')." ,
"location" : "path" ,
"required" : true ,
"type" : "string"
} ,
"productId" : {
"description" : "The inapp product SKU (for example, 'com.some.thing.inapp1')." ,
"location" : "path" ,
"required" : true ,
"type" : "string"
} ,
"token" : {
"description" : "The token provided to the user's device when the inapp product was purchased." ,
"location" : "path" ,
"required" : true ,
"type" : "string"
}
} ,
"path" : "{packageName}/inapp/{productId}/purchases/{token}" ,
"response" : {
"$ref" : "InappPurchase"
} ,
"scopes" : [
"https://www.googleapis.com/auth/androidpublisher"
]
}
}
2017-08-05 18:17:15 +00:00
} ,
2018-03-30 10:51:18 +00:00
"purchases" : {
"methods" : {
"cancel" : {
"description" : "Cancels a user's subscription purchase. The subscription remains valid until its expiration time." ,
"httpMethod" : "POST" ,
"id" : "androidpublisher.purchases.cancel" ,
"parameterOrder" : [
"packageName" ,
"subscriptionId" ,
"token"
] ,
"parameters" : {
"packageName" : {
"description" : "The package name of the application for which this subscription was purchased (for example, 'com.some.thing')." ,
"location" : "path" ,
"required" : true ,
"type" : "string"
} ,
"subscriptionId" : {
"description" : "The purchased subscription ID (for example, 'monthly001')." ,
"location" : "path" ,
"required" : true ,
"type" : "string"
} ,
"token" : {
"description" : "The token provided to the user's device when the subscription was purchased." ,
"location" : "path" ,
"required" : true ,
"type" : "string"
}
} ,
"path" : "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel" ,
"scopes" : [
"https://www.googleapis.com/auth/androidpublisher"
]
} ,
"get" : {
"description" : "Checks whether a user's subscription purchase is valid and returns its expiry time." ,
"httpMethod" : "GET" ,
"id" : "androidpublisher.purchases.get" ,
"parameterOrder" : [
"packageName" ,
"subscriptionId" ,
"token"
] ,
"parameters" : {
"packageName" : {
"description" : "The package name of the application for which this subscription was purchased (for example, 'com.some.thing')." ,
"location" : "path" ,
"required" : true ,
"type" : "string"
} ,
"subscriptionId" : {
"description" : "The purchased subscription ID (for example, 'monthly001')." ,
"location" : "path" ,
"required" : true ,
"type" : "string"
} ,
"token" : {
"description" : "The token provided to the user's device when the subscription was purchased." ,
"location" : "path" ,
"required" : true ,
"type" : "string"
}
} ,
"path" : "{packageName}/subscriptions/{subscriptionId}/purchases/{token}" ,
"response" : {
"$ref" : "SubscriptionPurchase"
} ,
"scopes" : [
"https://www.googleapis.com/auth/androidpublisher"
]
}
2017-08-05 18:17:15 +00:00
}
}
} ,
2018-03-30 10:51:18 +00:00
"revision" : "20180211" ,
"rootUrl" : "https://www.googleapis.com/" ,
"schemas" : {
"InappPurchase" : {
"description" : "An InappPurchase resource indicates the status of a user's inapp product purchase." ,
"id" : "InappPurchase" ,
"properties" : {
"consumptionState" : {
"description" : "The consumption state of the inapp product. Possible values are: \n- Yet to be consumed \n- Consumed" ,
"format" : "int32" ,
"type" : "integer"
} ,
"developerPayload" : {
"description" : "A developer-specified string that contains supplemental information about an order." ,
"type" : "string"
} ,
"kind" : {
"default" : "androidpublisher#inappPurchase" ,
"description" : "This kind represents an inappPurchase object in the androidpublisher service." ,
"type" : "string"
} ,
"orderId" : {
"description" : "The order id associated with the purchase of the inapp product." ,
"type" : "string"
} ,
"purchaseState" : {
"description" : "The purchase state of the order. Possible values are: \n- Purchased \n- Canceled" ,
"format" : "int32" ,
"type" : "integer"
} ,
"purchaseTime" : {
"description" : "The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970)." ,
"format" : "int64" ,
"type" : "string"
} ,
"purchaseType" : {
"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)" ,
"format" : "int32" ,
"type" : "integer"
}
2017-08-05 18:17:15 +00:00
} ,
2018-03-30 10:51:18 +00:00
"type" : "object"
2017-08-05 18:17:15 +00:00
} ,
2018-03-30 10:51:18 +00:00
"SubscriptionPurchase" : {
"description" : "A SubscriptionPurchase resource indicates the status of a user's subscription purchase." ,
"id" : "SubscriptionPurchase" ,
"properties" : {
"autoRenewing" : {
"description" : "Whether the subscription will automatically be renewed when it reaches its current expiry time." ,
"type" : "boolean"
} ,
"initiationTimestampMsec" : {
"description" : "Time at which the subscription was granted, in milliseconds since the Epoch." ,
"format" : "int64" ,
"type" : "string"
} ,
"kind" : {
"default" : "androidpublisher#subscriptionPurchase" ,
"description" : "This kind represents a subscriptionPurchase object in the androidpublisher service." ,
"type" : "string"
} ,
"validUntilTimestampMsec" : {
"description" : "Time at which the subscription will expire, in milliseconds since the Epoch." ,
"format" : "int64" ,
"type" : "string"
}
2017-08-05 18:17:15 +00:00
} ,
2018-03-30 10:51:18 +00:00
"type" : "object"
2017-08-05 18:17:15 +00:00
}
2018-03-30 10:51:18 +00:00
} ,
"servicePath" : "androidpublisher/v1.1/applications/" ,
"title" : "Google Play Developer API" ,
"version" : "v1.1"
}