addExternalAccount
- Home
- Accounts & Sessions
- User
- addExternalAccount
addExternalAccount
Associates an external account 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 |
external_user_identifier required | External User Identifier |
external_access_token optional | External Access Token |
Request Syntax
https://services.onesite.com/1/user/addExternalAccount.json?user_id=229928503&external_provider_name=twitter&external_user_identifier=12345678&external_access_token=thisisnotarealaccesstoken&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 |
{ "code":100, "message":"Added external account.", "content":{ "uniqueId":"5b46c1" } } |
Service Information
Service | user |
Method | addExternalAccount |
Type | REST |
Response Types | JSON, XML |