我正在使用 SoundCloud 作为我自己的应用程序使用他们的 OAuth2 API 的登录方法。
我可以登录并从经过身份验证的用户那里获取个人信息,但是如何访问电子邮件地址?如果可能的话?
典型的响应如下所示:
{
"id": 3207,
"permalink": "jwagener",
"username": "Johannes Wagener",
"uri": "https://api.soundcloud.com/users/3207",
"permalink_url": "http://soundcloud.com/jwagener",
"avatar_url": "http://i1.sndcdn.com/avatars-000001552142-pbw8yd-large.jpg?142a848",
"country": "Germany",
"full_name": "Johannes Wagener",
"city": "Berlin",
"description": "<b>Hacker at SoundCloud</b>\r\n\r\nSome of my recent Hacks:\r\n\r\nsoundiverse.com \r\nbrowse recordings with the FiRe app by artwork\r\n\r\ntopbillin.com \r\nfind people to follow on SoundCloud\r\n\r\nchatter.fm \r\nget your account hooked up with a voicebox\r\n\r\nrecbutton.com \r\nrecord straight to your soundcloud account",
"discogs_name": null,
"myspace_name": null,
"website": "http://johannes.wagener.cc",
"website_title": "johannes.wagener.cc",
"online": true,
"track_count": 12,
"playlist_count": 1,
"followers_count": 416,
"followings_count": 174,
"public_favorites_count": 26,
"plan": "Pro Plus",
"private_tracks_count": 63,
"private_playlists_count": 3,
"primary_email_confirmed": true
}
http://developers.soundcloud.com/docs/api/reference#me
如果用户允许我这样做,有没有办法请求更多信息?通过阅读他们的 API 文档,我看不到在哪里/如何做到这一点。谷歌搜索也没有透露太多信息(可能是因为它还没有像 API 那样流行)。
任何帮助,将不胜感激。
谢谢,迈克尔。