Subject: | Authentication Issue |
Date: | Wed, 06 Mar 2013 12:11:23 +0000 |
To: | bug-WebService-Soundcloud [...] rt.cpan.org |
From: | Jonathan Stowe <jns [...] gellyfish.co.uk> |
Hi,
I found that the released version didn't work for me at all, it appeared
that it was making the POST to /oauth2/token with query parameters in
the URI rather than as url-encoded content in the body of the request as
stated explicitly in the API docs. This resulted in
get_authorization_token() always failing.
I have made a fork of the code at
https://github.com/jonathanstowe/WebService-Soundcloud
which contains the fix. I have no intention of releasing this myself
but please feel free to merge the changes back.
I also have made some other possibly useful changes:
* Support credential based authentication for applications with
no UI
* get_object method returns the decoded response
* get_list method that returns a completed collection
(e.g. /tracks) as a list, using limit and offset parameters to
read the complete collection iteratively.
Hope that Helps.
--
Rabid Gravy: http://rabidgravy.com/
On Soundcloud: http://soundcloud.com/rabidgravy
Twitter: http://twitter.com/RabidGravy