getExternalAccount
- Home
- Accounts & Sessions
- User
- getExternalAccount
getExternalAccount
Fetches a single external account associated with a user.
Parameters
Name | Description |
node_id optional | Node ID |
user_id optional | User ID |
username optional | Username |
email optional | |
subdir optional | Subdir |
external_provider_name required | External Provider Name |
Request Syntax
https://services.onesite.com/1/user/getExternalAccount.json?user_id=229928503&external_provider_name=twitter&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 8 9 10 11 |
{ "code":100, "message":"External account found.", "content":{ "external_account":{ "ProviderName":"twitter", "UserIdentifier":"12345678", "AccessToken":"thisisnotarealaccesstoken" } } } |
Service Information
Service | user |
Method | getExternalAccount |
Type | REST |
Response Types | JSON, XML |