如何从SoundCloud API获取用户电子邮件?

时间:2013-08-12 17:17:04

标签: api oauth-2.0 soundcloud

我正在使用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那样受欢迎)。

任何帮助都将不胜感激。

谢谢, 迈克尔。

1 个答案:

答案 0 :(得分:4)

使用SoundCloud API无法获取用户的电子邮件地址。