【发布时间】:2013-08-12 17:17:04
【问题描述】:
我使用 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 那样流行)。
任何帮助将不胜感激。
谢谢, 迈克尔。
【问题讨论】:
-
不可能。想象一下,如果每个人都可以访问 soundcloud 用户的电子邮件地址会发生什么。
-
嗯,不多。您可以在标准请求中接收来自 Facebook 用户的电子邮件。您只需要征求用户的许可 - 这似乎很公平。我想知道是否可以通过某些权限来实现?
-
@cucko 很遗憾不是吗?我将不得不放弃 SoundCloud 作为身份验证服务,因为在此之后提示用户太不方便并且破坏了他们的整个“易用性”。作为记录,Facebook 和 Google+ API 确实允许您访问用户电子邮件。好的! Twitter、SoundCloud 和 Reddit API 没有;但更糟糕的是,完全没有请求许可的机制。不过感谢您的帮助!
-
是的,很遗憾。我使用 soundcloud api 很长时间了,我也对他们的文档感到失望。他们正在更改方法和过滤器,恕不另行通知。 p.s.如果您使用曲目搜索过滤器,请注意:标签、流派和时长过滤器可能不起作用。
-
...更不用说他们不回复我的电子邮件了。即使是 soundcloud.com 上的错误报告。
标签: api oauth-2.0 soundcloud