Were you ever able to get this working?

On Tuesday, July 3, 2012 10:57:33 AM UTC-4, vipremobile wrote:
>
> Good Morning,
>     I am a web developer working on an interface to query (and maybe 
> manage) google subscriptions related to our app purchase.  I've been using 
> this HTTP API interface to list purchases:
>
>
> http://developer.android.com/guide/google/play/billing/billing_subscriptions.html#play-dev-api
>
> Currently they offer an endpoint to get some info for a subscription and 
> to also cancel a subscription. I can get info for a subscription with no 
> problems, but when I try to cancel a subscription I get a weird 500 error 
> with no message.  Any ideas what might be going on?  At first I thought it 
> was an OAuth issue but I was able to use the GET request just fine. Here is 
> the curl -v output. Note that I concealed some of my account info:
>
> curl -X POST '
> https://www.googleapis.com/androidpublisher/v1/applications/com.ssd.myapp/subscriptions/premium.sku/purchases/mypurchase12345/cancel'
>  
> -H 'Authorization: OAuth ya29.MYVALIDTOKEN' -d '' -v
> * About to connect() to www.googleapis.com port 443 (#0)
> *   Trying 74.125.137.95... connected
> * Connected to www.googleapis.com (74.125.137.95) port 443 (#0)
> * SSLv3, TLS handshake, Client hello (1):
> * SSLv3, TLS handshake, Server hello (2):
> * SSLv3, TLS handshake, CERT (11):
> * SSLv3, TLS handshake, Server finished (14):
> * SSLv3, TLS handshake, Client key exchange (16):
> * SSLv3, TLS change cipher, Client hello (1):
> * SSLv3, TLS handshake, Finished (20):
> * SSLv3, TLS change cipher, Client hello (1):
> * SSLv3, TLS handshake, Finished (20):
> * SSL connection using RC4-SHA
> * Server certificate:
> *  subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=*.
> googleapis.com
> *  start date: 2012-06-14 06:42:53 GMT
> *  expire date: 2013-06-07 19:43:27 GMT
> *  subjectAltName: www.googleapis.com matched
> *  issuer: C=US; O=Google Inc; CN=Google Internet Authority
> *  SSL certificate verify ok.
> > POST 
> /androidpublisher/v1/applications/com.ssd.myapp/subscriptions/premium.sku/purchases/mypurchase12345/cancel
>  
> HTTP/1.1
> > User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 
> OpenSSL/0.9.8r zlib/1.2.5
> > Host: www.googleapis.com
> > Accept: */*
> > Authorization: OAuth ya29.MYVALIDTOKEN
> > Content-Length: 0
> > Content-Type: application/x-www-form-urlencoded
> > 
> < HTTP/1.1 500 Internal Server Error
> < Content-Type: application/json; charset=UTF-8
> < Date: Tue, 03 Jul 2012 14:53:37 GMT
> < Expires: Tue, 03 Jul 2012 14:53:37 GMT
> < Cache-Control: private, max-age=0
> < X-Content-Type-Options: nosniff
> < X-Frame-Options: SAMEORIGIN
> < X-XSS-Protection: 1; mode=block
> < Server: GSE
> < Transfer-Encoding: chunked
> < 
> {
>  "error": {
>   "code": 500,
>   "message": null
>  }
> }
> * Connection #0 to host www.googleapis.com left intact
> * Closing connection #0
> * SSLv3, TLS alert, Client hello (1):
>
>
> Thanks!
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to