Connection API \ List all connections PHP SDK

Resource/URI GET
Connections /connections.json List all connections
Connection /connections/<connection_token>.json Retrieve connection data

Workflow

Request: the code to send to the API

Send a GET request to the resource /connections.json to retrieve the list of social network connections made to your Site. This includes connections made through our Social Login Service and our LoudVoice Comments Platform.

Result: the code returned by the API

The API will return the list of connections. Requests that return multiple entries will be paginated to 250 items by default. Each entry contains a <connection_token> that you can use to obtain the details of the social network profile that has been used to connect.

Example Resultset

	{
		"response": {
			"request": {
				"date": "Thu, 25 Aug 2011 16:31:16  0200",
				"resource": "/connections.json",
				"status": {
					"flag": "success",
					"code": 200,
					"info": "Your request has been processed successfully"					
				}
			},
			"result": {
				"data": {
					"connections": 
						"pagination": {      
							"current_page": 1,
							"total_pages": 1,
							"entries_per_page": 500,
							"total_entries": 2,
							"order": {
								"field": "date_creation",
								"direction": "asc"
	             }
	           },
						"count": 2,
						"entries": [
							{			
								"connection_token": "7a559a39-51a5-4f21-92aa-cc880da2233f",
								"callback_uri": "https://app.oneall.com/social-connect/",
								"status": "succeeded",
								"date_creation": "Tue, 23 Aug 2011 14:12:01  0200",												
	      			},      		
	      			{
	      				"connection_token": "7a559a39-51a5-4f21-92aa-cc880da2233f",
								"callback_uri": "https://app.oneall.com/social-connect/",
								"status": "succeeded",
								"date_creation": "Tue, 23 Aug 2011 14:16:11  0200",						
	      			}      		
						]
					}
				}
			}
		}
	}

User Contributed Notes