Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Use /entity routing instead of /user

...

Excerpt

Returns information about all the social media that a given account entity is connected to.

 



Endpoint ID:3001
Method:

Status
colourGreen
titleGET

URL:

/userentity/dp-keyid/{dpentity-keyid}/social-connections

/userentity/ext-key/{ext-key}/{ext-type}/social-connections

 



 dp-keydialogportal™ master key entity-id

Rubiq entity ID that uniquely identifies an account to get social connections for


 ext-key

External key that uniquely identifies an account to get social connections for


 ext-type

Type of external key

Request body:None


Span
stylewhite-space:pre

Response body:


JSON data with information about social connections for the given account

Code Block
titleExample 1 – Account is connected to Facebook:
{
	"socialConnections”: [
		{
			"id": 1234,
			"type": "facebook",
			"appID": 987654321,
			"userID": 123456789,
			"accessToken": "...",
			"accessTokenExpires": "..."
		}
	]
}


Code Block
titleExample 2 – Account has no social connections:
{
	"socialConnections":[]
}


Status codes:200

Success

 


404

Account was not found

The following sub codes may be returned:

404.1User not found
404.2External user could not be found


...