Skip to content

V2 get blocked users

Rafael Chacon edited this page Feb 22, 2012 · 1 revision

Description:

Return the list of blocked users for current user, sorted by username.

###URL: GET http://public-api.piictu.com/v2/blocks

###HTTP method(s): GET

###Requires authentication (Authentication and Authorization): Yes

###Parameters:

  • page (optional:integer): Specifies the page of results to retrieve, default = 1.
  • rpp (optional:integer): results per page, default =10, max = 50.

###Usage example:

Example using cURL:

curl -i http://public-api.piictu.com/api/v2/blocks \
 -H "Authorization: OAuth 2540af0de12cb2367691516b8477b0b7bd66dbd8ab6840b147340c6898c4eebd"

###Response:

On success

  • HTTP response code is 200 (ok)
  • HTTP response body is a JSON string like this:
{
  "current_page":1,
  "results_per_page":10,
  "total_entries":2,
  "total_pages":1,
  "friends":[
    "user":{
          "id":"4d99eb672696e71604000001",
          "username":"sulin",
          "fullname": null,
          "bio": "",
          "avatar_url":"http://gravatar.com/avatar/4357d23895df5f18f6cb6f804c95ccdd.png?r=PG&s=90",
          "photos_count": 271
        },
    "user":{
          "id":"4d99eb672696e71604000002",
          "username":"scott",
          "fullname":null,
          "bio": "",
          "avatar_url":"http://gravatar.com/avatar/4357d23895df5f18f6cb6f804c95ccdd.png?r=PG&s=90",
          "photos_count": 271
        },
  ]
}

Clone this wiki locally