Get my friends

Method

GET

URL

https://typetalk.in/api/v2/search/friends

Scope

my

Query parameters

Name Type Description
q String query
offset (Optional) Number default value: 0
count (Optional) Number default value: 30, maximum: 100

Response Example

{
  "count": 1,
  "accounts": [
    {
      "account": {
        "id": 102,
        "name": "moss",
        "fullName": "Moss",
        "suggestion": "Moss",
        "imageUrl": "http://typetalk.local:8484/accounts/102/profile_image.png?t=1403749949000",
        "isBot": false,
        "createdAt": "2014-06-26T02:32:29Z",
        "updatedAt": "2014-06-26T02:32:29Z"
      },
      "status": {
        "presence": "away",
        "web": null,
        "mobile": null
      }
    }
  ]
}

All responses are text formatted as JSON, and include ETag. If you call an API with If-None-Match header, the server returns a 304 status code when the data is not changed. The date and time format is ISO 8601 and timezone is UTC (eg. 2014-01-09T06:20:08Z).