masterkain/omniauth-lastfm — pull request #1 by arekk (2012-05-23 18:59:08+00:00)
Title: Extended user info

Hi, i've added some extended user info into an auth object. If you like this changes feel free to merge it into your code. Extended format is:

{
:provider => 'lastfm',
:uid => 'jb',
:info => {
:nickname => 'jb',
:name => 'Joe Bloggs',
:image => 'http://userserve-ak.last.fm/serve/126/39129169.jpg',
:url => 'http://www.last.fm/user/jb',
:country => 'UK',
:age => 27
:gender => 'M'
},
:credentials => {
:token => 'ABCDEF...',
:name => 'jb
},
:extra => {
:raw_info => {
[see http://www.lastfm.pl/api/show/user.getInfo]
}
}
}