Identity API \ List all identities PHP SDK

Resource/URI - Common GET POST PUT DELETE
Identities /identities.json List all identities
Identity /identities/<identity_token>.json Read identity details Delete identity
Identity /identities/<identity_token>/link.json ReLink identity
Identity /identities/<identity_token>/synchronize.json Synchronize identity
Identity /identities/<identity_token>/contacts.json Read identity contacts
Resource/URI - Provider Specific GET POST PUT DELETE
Steam Games /identities/<identity_token>/steam/games.json List all Steam games
Facebook Posts /identities/<identity_token>/facebook/posts.json List all Facebook posts

Workflow

Request: the code to send to the API

Send a GET request to the resource /identites.json to obtain the list of your identities.

Result: the code returned by the API

The API will return the list of your identities. Requests that return multiple entries will be paginated to 250 items by default.

The identity_token uniquely identifies the identity and the user_token uniquely identifies the owner of the identity. The relationship between users and identities is a one-to-many relationship. A user may own many identities, but an identity is always linked to a single user.

Example Resultset

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
  "response": {
    "request": {
      "date": "Mon, 06 Oct 2014 10:26:44  0200",
      "resource": "/identities.json",
      "status": {
        "flag": "success",
        "code": 200,
        "info": "Your request has been processed successfully"
      }
    },
    "result": {
      "data": {
        "identities": {
          "pagination": {
            "current_page": 1,
            "total_pages": 1,
            "entries_per_page": 250,
            "total_entries": 3,
            "order": {
              "field": "date_creation",
              "direction": "desc"
            }
          },
          "count": 3,
          "entries": [
            {
              "user_token": "15ad071c-6a64-4ce1-a9df-72f506161636",
              "identity_token": "8b285b6b-12fa-45f3-ba95-10aeebc0d887",
              "date_creation": "Mon, 06 Oct 2014 09:52:57  0200",
              "date_last_update": "Mon, 06 Oct 2014 09:52:58  0200",
              "provider": "facebook",
              "num_logins": "6"  
            },
            {
              "user_token": "15ad071c-6a64-4ce1-a9df-72f506161636",
              "identity_token": "e768c378-3dc9-4d89-b9ec-ab692546dc22",
              "date_creation": "Mon, 06 Oct 2014 09:23:51  0200",
              "date_last_update": "Mon, 06 Oct 2014 09:23:51  0200",
              "provider": "google",
              "num_logins": "21"            
            },
            {
              "user_token": "d34845a4-33ac-483a-982b-3e376bdf0398"
              "identity_token": "17966dc6-4036-4d42-b186-25c9e3bf78d3",
              "date_creation": "Mon, 06 Oct 2014 09:09:41  0200",
              "date_last_update": "Mon, 06 Oct 2014 09:09:41  0200",
              "provider": "google",
              "num_logins": "11"         
            }
          ]
        }
      }
    }
  }
}

User Contributed Notes