MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

flash opensocial_token REST Call

Last post 03-12-2008 5:14 PM by Brock. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-11-2008 2:53 PM

    flash opensocial_token REST Call

    Hey All.

    Been through the forums for hours now and cant seem to track down the right REST Call to pass the 'opensocial_token' into in order to grab the user's id

    Everything i try gives me a 401 Unathorized error.

    Do i call...

    http://api.msappspace.com/v1/VIEWER/profile.xml?

    or

    http://api.msappspace.com/v1/VIEWER.xml?

    The API test tool doesnt even have /v1/viewer listed as an option so I'm kinda confused.

     Thanks in advance

     

  • 03-12-2008 1:44 AM In reply to

    Re: flash opensocial_token REST Call

    There is lots on the forums - and you can do a search on 'Flash' to narrow it down to see the 'pain' some of us are going / have been through. I'm sure some nice chap even posted a link to a .flv a couple of weeks ago [seems like months].

    Anyway - its a new (chilly) day here in the UK try an xml load with this

    msreq = "http://api.msappspace.com/opensocial/v1/viewer.xml?opensocial_token=" + opensocial_token + "&opensocial_mode=" + opensocial_surface +"&detailtype=basic";

    Though what you can the do with the viewers userid will be another question.....and not one I can answer....

    Eddie 

     

  • 03-12-2008 2:48 PM In reply to

    Re: flash opensocial_token REST Call

    Thanks.

    I eventually figured it out that i needed to be calling...

     http://api.msappspace.com/opensocial/v1/

    instead of

    http://api.msappspace.com/v1/

    And since a token is being passed in i dont need to be passing in the OAuth signatures.

  • 03-12-2008 5:14 PM In reply to

    Re: flash opensocial_token REST Call

    If you're working in Actionscript 2.0 then I built a framework for REST calls here:
    http://developer.myspace.com/Community/forums/t/657.aspx

    If you're working in Actionscript 3.0 then Joseph Estrada built this one:
    http://developer.myspace.com/Community/forums/t/611.aspx

    You'll need to email Joseph to get him to send you the SWC

    ~Brock 

Page 1 of 1 (4 items)