public
Description: SoundCloud API Code
Home | Edit | New

10.5 Resources: comments

Resource Method
/comments/{comment_id} GET, DELETE

GET /comments/{comment_id}

Type: Comment

Retrieves the given comment.

$ curl 'http://api.soundcloud.com/tracks/9/comments'

< HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<comments type="array">
  <comment>
    <body>A personal favorite of mine.</body>
    <id type="integer">2</id>
    <timestamp type="integer" nil="true"></timestamp>
    <track-id type="integer">9</track-id>
    <user-id type="integer">9</user-id>
  </comment>
</comments>

DELETE /comments/{comment_id}

Deletes the given comment.

This is only allowed to the comment’s creator or the associated track’s owner.

$ curl 'http://api.soundcloud.com/comments/1' -X DELETE

< HTTP/1.1 200 OK
Last edited by lenberg, Tue Sep 08 07:04:05 -0700 2009
Home | Edit | New
Versions: