Set/edit SoundCloud 用户的描述来自 API

Set/edit SoundCloud users' description via the API

有没有办法通过 API 设置 SoundCloud 用户的描述?我们有一个音乐家 "dates" 的应用程序,并希望自动将日期添加到用户的个人资料中。

我们该怎么做?

如果您使用的是 Javascript,在您对用户进行身份验证后,您可以使用此功能更改用户的描述:

<script>
SC.initialize({
  client_id: 'your_client_id',
  redirect_uri: 'your_callback_url'
});

SC.connect().then(function() {
   SC.put('/me', {
     user: { description: 'the new description' }
   });
});
</script>

如果你使用的是Php,前提是你使用的是Soundcloud的文档,你可以这样做:

    user = client.post('/me', :description => 'I am using the SoundCloud API!')
puts user.description

更多信息,你可以去这里: https://developers.soundcloud.com/docs#authentication。向下滚动到“获取有关已验证用户的信息”部分

希望我帮到了你