Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Minor future-compatible update for auth.getMobileSession method #14

Merged
merged 1 commit into from
Oct 26, 2016

Conversation

username0x0a
Copy link
Contributor

@username0x0a username0x0a commented Oct 24, 2016

Removed the deprecated parameter and force-applied POST method for auth.getMobileSession.

See http://www.last.fm/api/show/auth.getMobileSession for more info.

@@ -862,7 +861,7 @@ - (NSOperation *)getSessionForUser:(NSString *)username password:(NSString *)pas

return [self performApiCallForMethod:@"auth.getMobileSession"
useCache:NO
withParams:@{ @"username": [username lowercaseString], @"authToken": authToken }
withParams:@{ @"username": [username lowercaseString], @"password": password }
Copy link

Choose a reason for hiding this comment

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

woooah, password as a clear text?

Copy link
Contributor

Choose a reason for hiding this comment

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

HTTPS... so pretty normal.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's how it's specified by the Last.FM API documentation. I'm not expecting them to change it any time soon regarding to how long it took them to even make the API working. Still better than the doc they provide. 🤕

@eightytwo eightytwo merged commit 1ce0b62 into getsling:master Oct 26, 2016
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.

4 participants