omniauth-lastfm 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +47 -12
- data/lib/omniauth/lastfm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb2d3144abae35d52e0d7a0d10a7924c37833ca0623a37b751ba27529f2137c7
|
|
4
|
+
data.tar.gz: b0a1e1c56464dfd7ff05afb23f9717ca60491869c3dc9d870ca1a3b495d7cbcc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eade64290017a6a6914be62b2fb2c29067ea364a231dfd077c1971380f9bbb003ac5b842ead9d9531f174be92494f1924ae8b831d242c591cf8376059a0cbd47
|
|
7
|
+
data.tar.gz: 91541cdd1b0c60c41d9ff1bb0ce5e4a13e86441678df463969948316d4a7d3ee7785e472d6b3ba43b8b2892ffbf443f71307c710878f5e795937bca7b0b901b8
|
data/README.md
CHANGED
|
@@ -35,28 +35,63 @@ Set callback URL in the Last.fm API application settings:
|
|
|
35
35
|
|
|
36
36
|
## Auth Hash
|
|
37
37
|
|
|
38
|
-
Example payload available in `request.env['omniauth.auth']
|
|
38
|
+
Example payload available in `request.env['omniauth.auth']` (real flow shape, anonymized):
|
|
39
39
|
|
|
40
40
|
```json
|
|
41
41
|
{
|
|
42
42
|
"provider": "lastfm",
|
|
43
|
-
"uid": "
|
|
43
|
+
"uid": "sample_user",
|
|
44
44
|
"info": {
|
|
45
|
-
"nickname": "
|
|
46
|
-
"name": "
|
|
47
|
-
"url": "https://www.last.fm/user/
|
|
48
|
-
"image": "https://lastfm.freetls.fastly.net/i/u/300x300/
|
|
49
|
-
"country": "
|
|
50
|
-
"age": "
|
|
51
|
-
"gender": "
|
|
45
|
+
"nickname": "sample_user",
|
|
46
|
+
"name": "Sample User",
|
|
47
|
+
"url": "https://www.last.fm/user/sample_user",
|
|
48
|
+
"image": "https://lastfm.freetls.fastly.net/i/u/300x300/sample-image-id.png",
|
|
49
|
+
"country": "Neverland",
|
|
50
|
+
"age": "0",
|
|
51
|
+
"gender": "n"
|
|
52
52
|
},
|
|
53
53
|
"credentials": {
|
|
54
|
-
"token": "
|
|
55
|
-
"name": "
|
|
54
|
+
"token": "sample-session-key",
|
|
55
|
+
"name": "sample_user"
|
|
56
56
|
},
|
|
57
57
|
"extra": {
|
|
58
58
|
"raw_info": {
|
|
59
|
-
"name": "
|
|
59
|
+
"name": "sample_user",
|
|
60
|
+
"age": "0",
|
|
61
|
+
"subscriber": "0",
|
|
62
|
+
"realname": "Sample User",
|
|
63
|
+
"bootstrap": "0",
|
|
64
|
+
"playcount": "49612",
|
|
65
|
+
"artist_count": "399",
|
|
66
|
+
"playlists": "0",
|
|
67
|
+
"track_count": "5271",
|
|
68
|
+
"album_count": "690",
|
|
69
|
+
"image": [
|
|
70
|
+
{
|
|
71
|
+
"size": "small",
|
|
72
|
+
"#text": "https://lastfm.freetls.fastly.net/i/u/34s/sample-image-id.png"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"size": "medium",
|
|
76
|
+
"#text": "https://lastfm.freetls.fastly.net/i/u/64s/sample-image-id.png"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"size": "large",
|
|
80
|
+
"#text": "https://lastfm.freetls.fastly.net/i/u/174s/sample-image-id.png"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"size": "extralarge",
|
|
84
|
+
"#text": "https://lastfm.freetls.fastly.net/i/u/300x300/sample-image-id.png"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"registered": {
|
|
88
|
+
"unixtime": "1257061701",
|
|
89
|
+
"#text": 1257061701
|
|
90
|
+
},
|
|
91
|
+
"country": "Neverland",
|
|
92
|
+
"gender": "n",
|
|
93
|
+
"url": "https://www.last.fm/user/sample_user",
|
|
94
|
+
"type": "user"
|
|
60
95
|
}
|
|
61
96
|
}
|
|
62
97
|
}
|