POST api.ashx/v2/users/oauth/{clienttype}/{clientuserid}.{json|xml}
CREATE oauth information.
Scopes
Users › Modify Social Network Logins users.oauth.modify
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
ClientType | string | Client type of OAuth provider. | Required | |||
ClientUserId | string | Client user ID of OAuth user. | Required | |||
UserId | int | User Id | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.post({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/users/oauth/{clienttype}/{clientuserid}.json', data: { 'clienttype': 'clienttype', 'clientuserid': 'clientuserid', 'UserId': '6' } }).then(function(response) { // use response });
Example Responses
JSON
{ "OAuthLink": { "ClientType": "clienttype", "ClientUserId": "clientuserid", "UserId": 6 }, "Info": [ "string", "string" ], "Warnings": [ "string", "string" ], "Errors": [ "string", "string" ] }
XML
<?xml version="1.0" encoding="utf-16"?> <Response> <Info> <Message>string</Message> <Message>string</Message> </Info> <Warnings> <Message>string</Message> <Message>string</Message> </Warnings> <Errors> <Message>string</Message> <Message>string</Message> </Errors> <OAuthLink> <ClientType>clienttype</ClientType> <ClientUserId>clientuserid</ClientUserId> <UserId>6</UserId> </OAuthLink> </Response>