How to generate a signature in the case of POST HTTP subscription

1 view
Skip to first unread message

SASHTI

unread,
Apr 29, 2010, 5:01:21 PM4/29/10
to MySpace APIs
Hi ,
I'm sashti and I am trying to develop an application which collects
the post-entry of my friends using JAVA.
With regard to this, I am using my-space stream API. I am trying to
create a subscriptions using POST method.
But I don't know how to sign(generate signature), in the case of POST
method. I tried several combinations but I ended up in failure.

I generate signature like this url_encoded(POST) & url_encoded(http://
api.myspace.com/stream/subscription) & url_encoded(body &
oauth_consumer_key="my app key" &oauth_nonce.....)

Is this right?
I got 400 or 401 error for this request.

So, How to do the signing in the case of POST method?
I really appreciate for your time and effort.
Regards,
sashti

Nicholas Granado

unread,
May 5, 2010, 5:12:31 PM5/5/10
to myspac...@googlegroups.com
Sashti,

You have to include your post params when generating the signature.  Are you doing that?

Nick
---
Nicholas Granado
twitter: heatxsink
web:    http://nickgranado.com
email:  ngra...@gmail.com
Reply all
Reply to author
Forward
0 new messages