Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile auth #20

Merged
merged 1 commit into from Jan 23, 2012
Merged

Mobile auth #20

merged 1 commit into from Jan 23, 2012

Conversation

kylefleming
Copy link
Contributor

I've added mobile auth. For details see: http://www.last.fm/api/mobileauth

youpy added a commit that referenced this pull request Jan 23, 2012
@youpy youpy merged commit 05b95d4 into youpy:master Jan 23, 2012
XML
session = @lastfm.auth.get_mobile_session('xxxyyyzzz', 'xxxxAuthTokenxxxx')
session['name'].should eql('MyLastFMUsername')
session['key'].should eql('zzzyyyxxx')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you verify that this is the response body before faking it here? When I try to use this method I get an error:

pry(main)> lastfm.auth.get_mobile_session(my_username, token)
Lastfm::ApiError:
    Invalid authentication token. Please check username/password supplied

where the token was retrieved through lastfm.auth.get_token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants