I then use exactly the same logic as the GET request, but replace GET
with DELETE and I am getting error 401 returned. Is there a problem
with DELETE or am I doing something incorrectly?
I then attempted to submit the same subscription request (running the
same Python script) that worked yesterday and I am getting error 400
returned. Is there a problem with subscription handling?
I have not shown the actual endpoint above.
The POST problem is the more urgent as it is preventing me from
accessing any data.
Thanks for any help with this.
delreq = urllib2.Request(req.to_url())
delreq.get_method = lambda: 'DELETE'
resp = urllib2.urlopen(delreq)
Sorry for the confusion. I'm kind of hacking my way through oauth,
since that python library doesn't fully support the operations needed
for the stream API, although in this case it might have a way of
supporting simple deletes. I just use the library for signing
requests and generating URLs. I'll add a note to it.
Thanks,
Dave
> > > returned. Is there a problem with subscription handling?- Hide quoted text -
>
> - Show quoted text -
Also, if you get an error, check the HTTP response header "x-
opensocial-error" for additional error info such as:
x-opensocial-error: The subscription is a duplicate of subscription
12345 associated with this application.