Skip to main content
Version: 5.7.0

AttachTwitterIdentity

Attach the user's Twitter credentials to the current profile.

ServiceOperation
identityATTACH

Method Parameters

ParameterDescription
twitterIdString representation of a Twitter user ID
authenticationTokenThe authentication token derived via the Twitter API
secretThe secret given when attempting to link with Twitter

Usage

http://localhost:3000
string twitterId = "someId";
string token = "someToken";
string secret = "someSecret";

_bc.IdentityService.AttachTwitterIdentity(
twitterId,
token,
secret,
SuccessCallback, FailureCallback);
JSON Response
{
"status": 200,
"data": null
}
Common Error Code

Status Codes

CodeNameDescription
40211DUPLICATE_IDENTITY_TYPEReturned when trying to attach an identity type that already exists for that profile. For instance you can have only one Twitter identity for a profile.
40212MERGE_PROFILESReturned when trying to attach an identity type that would result in two profiles being merged into one (for instance an anonymous account and a Twitter account).