Méthode | Description | |
---|---|---|
CallAuthorization ( string accessToken, string code ) : |
This function is used to check authentication of the user and gives access to api's.
|
|
GetAuthorizationUrl ( ) : string |
Gets the URL to which users should be redirected for login
|
|
SetClientId ( string clientId ) : void |
Set the client ID
|
|
SetClientSecret ( string clientSecret ) : void |
Set the client secret
|
|
SetRedirectUrl ( string redirectUrl ) : void |
Set the redirect URL
|
Méthode | Description | |
---|---|---|
GetUserId ( string accessToken ) : string |
The session check endpoint doesn't give us the User ID so we have to do a second API call here to the home endpoint and grab the ID from one of the links there This seems like a hack though... Must be a better way of getting it.
|
public CallAuthorization ( string accessToken, string code ) : |
||
accessToken | string | |
code | string | |
Résultat |
public SetClientId ( string clientId ) : void | ||
clientId | string | |
Résultat | void |
public SetClientSecret ( string clientSecret ) : void | ||
clientSecret | string | |
Résultat | void |
public SetRedirectUrl ( string redirectUrl ) : void | ||
redirectUrl | string | |
Résultat | void |