Welcome Developers!

in

Welcome!

in

Eeeeaargh Just wanna get current user ID

Last post 04-12-2010 1:30 PM by Joel. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 04-08-2010 3:36 PM

    • Toby
    • Not Ranked
    • Joined on 04-05-2010
    • Posts 2

    Eeeeaargh Just wanna get current user ID

    I've tried everything. I'm using the http://developer.myspace.com/modules/apis/pages/oauthtool.aspx and I just can't get the current user ID through the rest library!

    Server: http://api.myspace.com/v1

    Consumer Key and Consumer Secret are filled in appropriately, and I'm defo getting normal responses with normal input like "users/529715701.xml". But the response body for the following just aren't working:

    "users/@me.xml"
    "users/@self.xml"
    "people/@me.xml"
    "people/@self.xml"
      etc. etc.

    <error xmlns="api-v1.myspace.com"><statuscode>404</statuscode><statusdescription>Rogue request trapped. URI: http://api.myspace.com/v1/users/self.xml</statusdescription></error>
    "user.xml" oauth_problem=permission_denied

     

    I get that the first lot are all wrong, but i'm utterly perplexed as to why oauth is failing me. Everything here is duplicated in my real world PHP app (although I'm not using the official libraries). So why is the oauth hash failing me or whatever? I've even seenthe http://api.myspace.com/v2, http://opensocial.myspace.com/roa/09 and even http://api.msappspace.com/ "Server Namespaces" being used in examples but which is the canonical one? All documenation seems to blend all these URLs (the only sources I could find were the developer wiki), the official client library for PHP is no good (I at least need OOP, however clumsy PHP OOP syntax is!). 

    Thanks for your help in advance.

    Toby Pinder

  • 04-09-2010 3:07 PM In reply to

    Re: Eeeeaargh Just wanna get current user ID

     Toby,

    This might be an issue with the oauth tool. What happens when you actually do it through your application? You should be able to get correct responses.

     

    thanks,

    Joel

  • 04-09-2010 3:42 PM In reply to

    • Toby
    • Not Ranked
    • Joined on 04-05-2010
    • Posts 2

    Re: Eeeeaargh Just wanna get current user ID

     My application and the oauth tool are 100% in collusion (I've tested most, if not all of these variables first in my app and then in the tool). The PHP Exception error messages are all very similar to the "failure" responses I'm getting. 

     I only have a very limited understanding of what my client library is doing, but i'm modifying the library at the level of choosing paths to query on the server, and the response is identical to the testing tool.

  • 04-12-2010 1:30 PM In reply to

    Re: Eeeeaargh Just wanna get current user ID

    Can you send the following to developerrelations@myspace-inc.com?

    -appID

    -consumer key/secret

    -a Wireshark .pcap http capture of these requests/responses

     

    thanks,

    Joel

Page 1 of 1 (4 items)