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