roniest / google-apis-explorer

Automatically exported from code.google.com/p/google-apis-explorer
Apache License 2.0
0 stars 0 forks source link

The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console #268

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Goto 
https://developers.google.com/apis-explorer/#p/androidpublisher/v2/androidpublis
her.purchases.subscriptions.defer
2. Type something
3. Enable Oauth
4. you will get this message.

What is the expected output? What do you see instead?
correct response.
btw, When I hit this api via google-api-client for ruby, I get 500 error and 
empty message. I'll paste my logs below

irb(main):119:0> req = Google::APIClient::Request.new(api_method: 
publisher.purchases.subscriptions.defer, parameters: {packageName: 
'com.beartail.dr.wallet', 'subscriptionId' => 'boost', 'token' => 
'adbpeicbfklfbkgbaanmdlac.AO-J1Oxfsstz169SgzRGeCKDoAVyxyooBur3fW2z0xn4e-VqZC1uZX
SGPYys1ERpWKmTfJIhutjrPN2cv4KoAuRwE2MPZbY3EIoRy65vODY3qMDdZzMB_xU'}, 
body_object: {deferralInfo: {expectedExpiryTimeMillis: 1424934977162, 
desiredExpiryTimeMillis: 1424934977162 + 1000*60*60*24*10}});
irb(main):120:0* response = client.execute(req)
=> #<Google::APIClient::Result:0x007fb0f30e6900 
@request=#<Google::APIClient::Request:0x007fb0f3078838 
@parameters={"packageName"=>"com.beartail.dr.wallet", 
"subscriptionId"=>"boost", 
"token"=>"adbpeicbfklfbkgbaanmdlac.AO-J1Oxfsstz169SgzRGeCKDoAVyxyooBur3fW2z0xn4e
-VqZC1uZXSGPYys1ERpWKmTfJIhutjrPN2cv4KoAuRwE2MPZbY3EIoRy65vODY3qMDdZzMB_xU"}, 
@headers={"Content-Type"=>"application/json", "User-Agent"=>"Dr.Wallet/0.0.0 
google-api-ruby-client/0.8.2 Mac OS X/10.10.2\n (gzip)", 
"Accept-Encoding"=>"gzip"}, 
@api_method=#<Google::APIClient::Method:0x3fd87a47af30 
ID:androidpublisher.purchases.subscriptions.defer>, @authenticated=nil, 
@authorization=#<Signet::OAuth2::Client:0x007fb0f3c55f98 
@token_credential_uri=#<Addressable::URI:0x3fd879e2ae00 
URI:https://accounts.google.com/o/oauth2/token>, @expiry=60, 
@extension_parameters={}, @additional_parameters={}, 
@scope=["https://www.googleapis.com/auth/androidpublisher"], 
@issuer="784684088928@developer.gserviceaccount.com", 
@audience="https://accounts.google.com/o/oauth2/token", 
@signing_key=#<OpenSSL::PKey::RSA:0x007fb0f3be56d0>, @grant_type=nil, 
@refresh_token=nil, @code=nil, @issued_at=2015-02-25 19:19:26 +0900, 
@expires_in=3599, 
@access_token="ya29.JQGHE-r37xoYR5Xr9GoMrE60qLXMYzliF0Nd7bbV00JJkOoEXo9Cn9GqHFmm
zoS513jobw8qlQ0RlQ">, 
@body="{\"deferralInfo\":{\"expectedExpiryTimeMillis\":1424934977162,\"desiredEx
piryTimeMillis\":1425798977162}}">, 
@response=#<Faraday::Response:0x007fb0f30dc630 @on_complete_callbacks=[], 
@env=#<Faraday::Env @method=:post @body="{\n \"error\": {\n  \"code\": 500,\n  
\"message\": null\n }\n}\n" @url=#<URI::HTTPS:0x007fb0f5011578 
URL:https://www.googleapis.com/androidpublisher/v2/applications/com.beartail.dr.
wallet/purchases/subscriptions/boost/tokens/adbpeicbfklfbkgbaanmdlac.AO-J1Oxfsst
z169SgzRGeCKDoAVyxyooBur3fW2z0xn4e-VqZC1uZXSGPYys1ERpWKmTfJIhutjrPN2cv4KoAuRwE2M
PZbY3EIoRy65vODY3qMDdZzMB_xU:defer> @request=#<Faraday::RequestOptions 
params_encoder=Faraday::FlatParamsEncoder> 
@request_headers={"User-Agent"=>"Dr.Wallet/0.0.0 google-api-ruby-client/0.8.2 
Mac OS X/10.10.2\n (gzip)", "Content-Type"=>"application/json", 
"Accept-Encoding"=>"gzip", "Authorization"=>"Bearer 
ya29.JQGHE-r37xoYR5Xr9GoMrE60qLXMYzliF0Nd7bbV00JJkOoEXo9Cn9GqHFmmzoS513jobw8qlQ0
RlQ", "Cache-Control"=>"no-store"} @ssl=#<Faraday::SSLOptions verify=true, 
ca_file="/Users/shun/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/google-
api-client-0.8.2/lib/cacerts.pem"> @response_headers={"vary"=>"Origin, 
X-Origin", "content-type"=>"application/json; charset=UTF-8", "date"=>"Wed, 25 
Feb 2015 11:14:09 GMT", "expires"=>"Wed, 25 Feb 2015 11:14:09 GMT", 
"cache-control"=>"private, max-age=0", "x-content-type-options"=>"nosniff", 
"x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", 
"server"=>"GSE", "alternate-protocol"=>"443:quic,p=0.08", 
"connection"=>"close", "transfer-encoding"=>"chunked"} @status=500>>, 
@data=#<Google::APIClient::Schema::Androidpublisher::V2::SubscriptionPurchasesDe
ferResponse:0x3fd8798728b4 DATA:{"error"=>{"code"=>500, "message"=>nil}}>>
irb(main):121:0> puts response.body
{
 "error": {
  "code": 500,
  "message": null
 }
}
=> nil

What version of the product are you using? On what operating system?
google-api-client 0.7.1

Please provide any additional information below.

Original issue reported on code.google.com by i...@beartail.jp on 25 Feb 2015 at 11:15