GET api.ashx/v2/users/oauth/{clienttype}/{clientuserid}.{json|xml}
GET oauth information for a user by client type and client Id.
Scopes
Users › Read Social Network Logins users.oauth.readonly
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 |
Example Requests
Widget Javascript
jQuery.telligent.evolution.get({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/users/oauth/{clienttype}/{clientuserid}.json', data: { 'clienttype': 'clienttype', 'clientuserid': 'clientuserid' } }).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>