getMobileSession returns <error code="10">Invalid API key - You must be granted a…

 
    • salfab said...
    • User
    • 21 Jul 2012, 15:55

    getMobileSession returns <error code="10">Invalid API key - You must be granted a valid key by last.fm</error>

    first : Yes, I am using Post over Https.

    My problem is : I can't seem to get the method auth.getMobileSession to work.

    I have posted, using fiddler2, the parameters required, and I have built the MD5 signature based on the alphabetically ordered parameters, and added as api_sig at the end of the post string, but it always returns the same error message (10)

    What I find very strange is that on the help page about signing calls

    (http://www.last.fm/api/mobileauth) step 4

    it is mentionned got this very method, that the signature must be based on

    api_keyxxxxxxxxauthTokenxxxxxxxmethodauth.getMobileSessionusernamexxxxxxxx

    then append the secret and hash it in md5.

    but when looking at the help page for getMobileSession (http://www.last.fm/api/show/auth.getMobileSession) there is no authToken, only username and password.

    am I missing something here ?

Anonymous users may not post messages. Please log in or create an account to post in the forums.