MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Has anyone out there got Status Update REST API working?

Last post 06-13-2009 7:34 PM by rondata. 13 replies.
Page 1 of 1 (14 items)
Sort Posts: Previous Next
  • 03-03-2009 7:39 AM

    Has anyone out there got Status Update REST API working?

    through MySpaceID.  Please kindly share your example code or exprience.  Thanks!

  • 03-03-2009 11:34 AM In reply to

    Re: Has anyone out there got Status Update REST API working?

     Hi, let me look into this. We don't have a ton of off site apps right now. Will get back to you, on this

    Rhonda

     

  • 03-04-2009 9:50 AM In reply to

    Re: Has anyone out there got Status Update REST API working?

     Can you double check on this? From what I understand it was not working, and was a known issue but it should be fixed now. Thanks!

    Rhonda

     

  • 03-16-2009 2:37 PM In reply to

    Re: Has anyone out there got Status Update REST API working?

     I'd also like to see this one in action. It doesn't seem to update for me neither.

  • 04-04-2009 10:17 PM In reply to

    • jprl12
    • Not Ranked
    • Joined on 03-29-2009
    • Posts 2

    Re: Has anyone out there got Status Update REST API working?

    Some news about how we can update status with REST API ?! I try many things and I have no result! :-(
  • 04-06-2009 12:03 PM In reply to

    • Kiam
    • Top 50 Contributor
    • Joined on 02-19-2009
    • Posts 62
    • MDP Team

    Re: Has anyone out there got Status Update REST API working?

    We have been rolling this out in our SDK's.  It should be available in a few now, e.g., Java.  

    If you want to code directly against the REST endpoint for updating status, it is a little tricky to get right. I highly recommend you use the SDK's (you might have to wait a few days for your language to be supported).  If you really want to use REST directly, as of now, you need to make sure that the status=<new status string> is included in the base string when computing the signature, but that it is taken out of the URL that you PUT/POST to.  You would then send "status=<new status string>" in the body of the request.

     So here's an example HTTP request taken from the Java SDK's in-code comments.  If you use POST, you may need to use "X-HTTP-Method-Override: PUT" in the request header. 

     POST /v1/users/28568917/status?oauth_consumer_key=77f44916a5144c97ad1ddc9ec53338cc&oauth_nonce=8783759987300271273&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1237853013&oauth_token=8QLGnqFugwmCbIz6pcFbNEMPkG%252FCsZrg4fdqIzXpj88FsZaysd7wJ4eBonbvpAG7MOCFhzDjcM1yp6wvO%252BRaeyruy95QdfpFIHQaHvHL7ak%253D&oauth_version=1.0&oauth_signature=TvlXbt%2FNS0U7SrtUvUfu%2BfJ3kyo%3D HTTP/1.1
    X-HTTP-Method-Override: PUT
    User-Agent: Java/1.6.0_12
    Host: api.myspace.com
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Proxy-Connection: keep-alive
    Content-type: application/x-www-form-urlencoded
    Content-Length: 264

    status=Hello%20World%20%20%E7%BB%88%E4%BA%8E%E6%88%90%E5%8A%9F%E4%BA%86%EF%BC%81%21%21%20Can%20you%20believe%20that%20I%27m%20now%20posting%20status%20updates%20successfully%21%3F%20~%21%40%23%24%25%5E%26%2A%28%29_%2B%7B%7D%3A%22%3C%3E%3F%60-%3D%5B%5D%3B%27%2C.%2F

     

    Follow us on twitter for major updates and announcements:

    http://twitter.com/MySpaceDevTeam

    Friend the MDP Profile!
    http://profile.myspace.com/index.cfm?fuseaction=user.viewProfile&friendID=295946135
  • 04-06-2009 6:41 PM In reply to

    • jprl12
    • Not Ranked
    • Joined on 03-29-2009
    • Posts 2

    Re: Has anyone out there got Status Update REST API working?

    Many thanks for your explaination! I added this feature to my code and everything work really great! :-)
  • 06-03-2009 3:23 PM In reply to

    • Janell
    • Not Ranked
    • Joined on 04-18-2009
    • Posts 3

    Re: Has anyone out there got Status Update REST API working?

    Has anyone had any luck sending a status update without using the MySpaceID SDK? I have the status param in the base string when signing the request, then remove it from that URL and into the POST body. Still getting a 401: Invalid digital signature for base string. If I plug in the same exact params we're sending into the OAuth testing tool, the same URL is generated and the status posts successfully. Any idea what could be going wrong to cause that invalid signature?

  • 06-08-2009 9:45 AM In reply to

    • Kiam
    • Top 50 Contributor
    • Joined on 02-19-2009
    • Posts 62
    • MDP Team

    Re: Has anyone out there got Status Update REST API working?

    I believe you are the same Janell whom I already communicated with.  Let us know if you are still having problems.  :)

    Follow us on twitter for major updates and announcements:

    http://twitter.com/MySpaceDevTeam

    Friend the MDP Profile!
    http://profile.myspace.com/index.cfm?fuseaction=user.viewProfile&friendID=295946135
  • 06-08-2009 12:41 PM In reply to

    • Janell
    • Not Ranked
    • Joined on 04-18-2009
    • Posts 3

    Re: Has anyone out there got Status Update REST API working?

    Yes indeed, the very same! Finally managed to get it working this afternoon. The final bug had to do with setting CURLOPT_POSTFIELDS to an array instead of a string. This had worked in the past for POST, but apparently not for PUT. Thanks for your help and follow-ups!
  • 06-08-2009 12:49 PM In reply to

    • Kiam
    • Top 50 Contributor
    • Joined on 02-19-2009
    • Posts 62
    • MDP Team

    Re: Has anyone out there got Status Update REST API working?

     Great!

    Follow us on twitter for major updates and announcements:

    http://twitter.com/MySpaceDevTeam

    Friend the MDP Profile!
    http://profile.myspace.com/index.cfm?fuseaction=user.viewProfile&friendID=295946135
  • 06-12-2009 1:18 PM In reply to

    • Shyam
    • Not Ranked
    • Joined on 04-02-2009
    • Posts 1

    Re: Has anyone out there got Status Update REST API working?

    Is it possible to add my App link to Status message? Like: Message in HTML is got free points from AppName Message on Status is got free points from AppName Thanks, Shyam
  • 06-12-2009 1:26 PM In reply to

    • k
    • Not Ranked
    • Joined on 08-20-2008
    • Posts 4

    Re: Has anyone out there got Status Update REST API working?

     This doesn't seem to work in as3. Please check my post in http://developer.myspace.com/Community/forums/t/8435.aspx

  • 06-13-2009 7:34 PM In reply to

    Re: Has anyone out there got Status Update REST API working?

    k:

     This doesn't seem to work in as3. Please check my post in http://developer.myspace.com/Community/forums/t/8435.aspx

     

    I have a few questions for the devs of the as3 sdk and I'll see if we can get some info for ya. 

    Rhonoda

Page 1 of 1 (14 items)