【问题标题】:Soundcloud update profile description http apiSoundcloud 更新配置文件描述 http api
【发布时间】:2014-08-25 22:48:17
【问题描述】:

我正在尝试通过 http api 更新我的个人资料描述字段...

我正在使用 PUT 请求 /me 端点,并将编码的 json 作为带有描述和描述值的主体传递。

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

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

有什么帮助吗?

【问题讨论】:

    标签: api http soundcloud


    【解决方案1】:

    前往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
    

    看到了吗? “更新用户的个人资料描述”

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-07-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多