Links an oauth 2 account to an existing mobiliser account.
Syntax
long
linkOAuth2Account
(
final String
provider
,
final String
token
,
final long
customerId
,
long
callerId
)
Parameters
-
provider –
the name of the oauth2 provider. such a provider must have already been registered in the system
-
token –
the token from the oauth2 provider
-
customerId –
the customer to which the account should be linked
-
callerId –
caller id
Returns
the id of the newly created identification
Usage
the id of the newly created identification