Identity API \ List all identities PHP SDK

Send a GET request to this resource to retrieve the complete list of your identities.

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
Resource/URI - Provider Specific Complete Plus Data GET POST PUT DELETE
Steam Games /identities/<identity_token>/steam/games.json List all Steam games
YouTube Videos /identities/<identity_token>/youtube/videos.json List all YouTube videos
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

  {
    "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