get_counters

Description

Get the number of both relationships (followers and followed by) for the specified user id.

URL

https://social.topoos.com/VERSION/USR/counters.FORMAT

Available Format

JSON

HTTP Method

GET

Accepted Version

1

Require

Authorization.

Headers

Parameters

  • access_token: (Required) access_token to current authorized user resources.
  • USR: (Required) target user identifier to get its relationships counters. You can use the special value “me” for this parameter, to get the counters of the current authenticated user.

Example

https://social.topoos.com/1/me/counters.json?access_token=bcbb1a82-df15-47ca-b48a-0d2abb33d4ee

Reply

JSON example reply

{
   "status":{
      "description":"ok"
   },
   "counters":{
      "user_id":"413e4103-a99c-4de7-8c95-401e767d4a26",
      "following":23,
      "followed_by":15
   }
}