doutangshuan6473 2012-07-31 12:46
浏览 87
已采纳

Soundcloud API(PHP)客户端ID验证

This might be a very simple answer, but I am unfamiiar with the Soundcloud API, so any help would be appreciated.

I am trying to access the Soundcloud API with PHP to access user details. I have obtained a soundcloud CLIENT_ID by activating my app through my personal soundcloud account, but it doesn't seem to work when accessing other public users information.

Does the CLIENT_ID change per user?

Does the app need to be validated/accepted by every user in order to access information such as song list, etc... (or can it be validated once) ?

  • 写回答

1条回答 默认 最新

  • dongzhazhuo0572 2012-07-31 19:55
    关注

    The CLIENT_ID identifies your application. Requests that include a CLIENT_ID can read any public information. A subset of user information is available with just a CLIENT_ID. For example, the URI:

    http://api.soundcloud.com/users/12840173.json?client_id=A_CLIENT_ID
    

    Will return the following JSON:

    {
      id: 12840173
      kind: user
      permalink: paultest
      username: paultest
      uri: http://api.soundcloud.com/users/12840173
      permalink_url: http://soundcloud.com/paultest
      avatar_url: http://i1.sndcdn.com/avatars-000015469869-jcyh92-large.jpg?330b92d
      country: Canada
      full_name: Paul Osman
      description: null
      city: Toronto
      discogs_name: null
      myspace_name: null
      website: null
      website_title: null
      online: true
      track_count: 17
      playlist_count: 4
      public_favorites_count: 1
      followers_count: 1
      followings_count: 1
    }
    

    In order to access non-public information (e.g. private tracks, account plan, etc) you must have the user authorize your application. For more information on our OAuth implementation, see the documentation for authorizing server-side web applications.

    Hope that helps!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题