Soundcloud更新配置文件说明http api

时间:2014-08-25 22:48:17

标签: api http soundcloud

我试图通过http api ...

更新我的个人资料说明字段

我正在使用PUT请求/ me端点并将编码的json作为正文传递给描述和描述值。

我得到200响应状态,但描述没有更新。 此外,响应以json或xml返回我的用户对象,具体取决于我使用的端点格式。

所以,一切都很完美,除了端点不接受我发送的格式或......我不知道。

任何帮助?

1 个答案:

答案 0 :(得分:0)

转到https://developers.soundcloud.com/docs#authentication - 隐含记录:

import soundcloud

# create a client object with access token
client = soundcloud.Client(access_token='YOUR_ACCESS_TOKEN')

# update the user's profile description
user = client.post('/me', description='I am using the SoundCloud API!')
print user.description

请参阅? "更新用户的个人资料说明"