Welcome Developers!

in

Welcome!

in

Is it possible to change Status message via REST API?

Last post 06-14-2009 10:59 AM by Josh o.o. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 03-09-2009 3:55 PM

    • Justin
    • Not Ranked
    • Joined on 03-04-2009
    • Posts 1

    Is it possible to change Status message via REST API?

    According to here (http://developerwiki.myspace.com/index.php?title=Category:MySpace_REST_Resources) it would appear yes, however, nobody seems to have been able to implement it and it sounds like everyone is getting the same 401 response code regardless of what permissions the user has set or whether the app is in development mode or not. Can someone from the Myspace team just come out and clarify whether this works or not?

  • 03-10-2009 6:48 AM In reply to

    Re: Is it possible to change Status message via REST API?

    For MySpace ID? or for local applications?

  • 05-24-2009 8:35 AM In reply to

    Re: Is it possible to change Status message via REST API?

     Has this been resolved yet?

  • 05-24-2009 11:45 AM In reply to

    Re: Is it possible to change Status message via REST API?

    This should be working as we have other developers doing it.  (Ping em' all comes to mind)

    But the fact that people are having such a hard time with it means we need to change our documentation, and for that I'll put in a request.

    Have you checked out our SDKs?

    http://wiki.developer.myspace.com/index.php?title=Category:MySpaceID_SDK

    Also, I want to make sure you're trying to create a myspace ID app and not a local one.

    These SDKs you can use for both but it helps to be able to know what you're trying to create.

    Rhonda

     

  • 05-27-2009 11:03 AM In reply to

    Re: Is it possible to change Status message via REST API?

     Checking in on what type of app your creating :)

    Rhonda

     

  • 05-28-2009 4:01 PM In reply to

    Re: Is it possible to change Status message via REST API?

    Justin, the key questions I see RonRon asking repeatedly is, What kind of app are your creating? Is it a MySpaceID app? This makes a difference that some Devs don't always understand (especially if they found the PUT Status API as the result of a search). But its important to note that the REST API endpoints are just for MySpaceID apps, so you have to get the MySpace/OAuth secure access set up in order to use the REST endpoint called PUT /v1/users/{userId}/status.

    Status is a big deal for MySpace. If you think about it, it's not much different than a twitter-style message.

     I'm looking into this myself. Please tell more about your app concept? Is it a MySpace domain app or a MySpaceID app? and what error message did you get when you worked with the user status?.

  • 05-29-2009 11:14 AM In reply to

    • Chak
    • Top 50 Contributor
    • Joined on 01-14-2008
    • Posts 73

    Re: Is it possible to change Status message via REST API?

     First off, please accept our apologies for not replying to this sooner.

     It is possible to change the status/mood via the REST APIs. Unfortunately, OAuth does not directly specify how the request itself should be made and how the parameters should be delivered to the provider which leads to some difficulty as you seem to be running into - this gets a bit tricky in the case of PUT/POST since you're dealing with user defined (i.e. non oauth) parameters in the request payload.

     Here's how to get this working:

    1. Sign your request using the normal oauth signing mechanism (this will result in a request URL that contains both the ouath specific and user defined params in the query string)

    2.  Remove the non-oauth (i.e. user defined) params from the query string

    3. Move the user defined params (i.e. the status data) into the HTTP request's POST/PUT body

    4. Make the request

     It's best if you used the MySpace SDKs to do the above since it handles all the gory details for you. 

     Please see the function __call_myspace_api() in the Python SDK (http://code.google.com/p/myspaceid-python-sdk/source/browse/trunk/myspaceid-python-sdk/src/myspace/myspaceapi.py)to see how it handles the PUT/POST cases.

     

    Thanks

    Chak

     

     

     

  • 06-02-2009 11:50 AM In reply to

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

    Re: Is it possible to change Status message via REST API?

    I'm also having trouble updating a user's status via our MySpaceID app. I think we have everything set up correctly, but we still get a 401 error (Invalid digital signature for base string). The status param is in the URL for the signing process, then moved from that URL to the POST body before making the request. Plugging the same information into the OAuth Testing Tool results in success, and the URL from that matches ours.

    I know others have mentioned the possibility that permissions are needed for this, but I have not found any way to enable status updates from a user's MySpaceID Settings page. Is there something else we're missing? Any suggestions are very much appreciated.

    Filed under: , ,
  • 06-14-2009 10:59 AM In reply to

    Re: Is it possible to change Status message via REST API?

     I was going to have an app update my status via twitter but I couldn't get it to update/couldn't find how.

Page 1 of 1 (9 items)