rdio-simple php search

107 views
Skip to first unread message

Mark S

unread,
May 10, 2012, 1:26:29 AM5/10/12
to Rdio API
Hi,

I've been trying for a few hours to do a search api call using the
rdio-simple php library. I'm not familiar with OAuth at all. Really
out of ideas as to what to try next.

Is this supposed to work? Am I missing something? (replaced parts of
key and secret with "...."):

include 'rdio.php';
$rdio = new Rdio(array("85.....", "vvBNe...."));
$rdio->call("search", array("query" => "test", "types" => "Album"));

The curl returns "<h1>401 Invalid Signature</h1>"

The $auth string looks like this (replaced parts of some strings with
"...."):

OAuth oauth_signature="jR9aeWMgXPONG....",
oauth_consumer_key="85....", oauth_nonce="673639",
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1336627221",
oauth_version="1.0"

Ian McKellar

unread,
May 10, 2012, 1:33:54 PM5/10/12
to rdio...@googlegroups.com
That looks right to me. Is there a chance that the clock on your server is out of sync? OAuth uses a timestamp and I think if it's in the future or more than 5 minutes behind it will return that error.

Ian


--
You received this message because you are subscribed to the Google Groups "Rdio API" group.
To post to this group, send email to rdio...@googlegroups.com.
To unsubscribe from this group, send email to rdio-api+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rdio-api?hl=en.




--
Ian McKellar, API, Rdio Inc.
@ian @rdioapi

Mark S

unread,
May 10, 2012, 3:15:24 PM5/10/12
to Rdio API
Hi Ian,

Thank you for your response. I did check the results of time() last
night and it was correct.

I went to double-check again today, and script worked! First try, and
I didn't change anything from last night, very strange. Glad it's
working anyway!
> *Ian McKellar*, API, *Rdio Inc.*http://rd.io/people/ian
> @ian @rdioapi

Ian McKellar

unread,
May 11, 2012, 4:42:06 PM5/11/12
to rdio...@googlegroups.com
I'm glad it's working again. Let me know if you have problems again so that we can track down what's going on.

Ian
Reply all
Reply to author
Forward
0 new messages