Method | Description | |
---|---|---|
Authenticate ( string authCode, string redirectUri ) : |
Do authentication with the authorization code returned from server
|
|
AuthorizeUri ( string redirectUri, string state = "" ) : string |
When your application needs to authentiate an user, redirect the user to RingCentral API server for authentication. This method helps you to build the URI. Later you can redirect user to this URI.
|
|
Delete ( |
||
Get ( |
||
LoggedIn ( ) : bool |
Determines if Access is valid and returns the boolean result. If access is not valid but refresh token is valid then a refresh is issued.
|
|
Login ( string username, string extension, string password, bool remember ) : |
Method to generate Access Token to establish an authenticated session
|
|
Logout ( ) : |
Revokes the already granted access to stop application activity
|
|
Platform ( string appKey, string appSecret, string serverUrl, string appName = "", string appVersion = "" ) : System | ||
Post ( |
||
Put ( |
||
Refresh ( ) : |
Refreshes expired Access token during valid lifetime of Refresh Token
|
|
Send ( HttpMethod httpMethod, |
Method | Description | |
---|---|---|
AuthCall ( |
Authentication, Refresh and Revoke requests all require an Authentication Header Value of "Basic". This is a special method to handle those requests.
|
|
GenerateAuthToken ( ) : string |
Generates auth token by encoding appKey and appSecret then converting it to base64
|
|
SetUserAgentHeader ( string appName, string appVersion ) : void |
You also may supply custom AppName:AppVersion in the form of a header with your application codename and version. These parameters are optional but they will help a lot to identify your application in API logs and speed up any potential troubleshooting. Allowed characters for AppName:AppVersion are- letters, digits, hyphen, dot and underscore.
|
public Authenticate ( string authCode, string redirectUri ) : |
||
authCode | string | The authorization code returned from server |
redirectUri | string | The same redirectUri when you were obtaining the authCode in previous step |
return |
public AuthorizeUri ( string redirectUri, string state = "" ) : string | ||
redirectUri | string | This is a callback URI which determines where the response will be sent to. The value of this parameter must exactly match one of the URIs you have provided for your app upon registration. This URI can be HTTP/HTTPS address for web applications or custom scheme URI for mobile or desktop applications. |
state | string | Optional, recommended. An opaque value used by the client to maintain state between the request and callback. The authorization server includes this value when redirecting the user-agent back to the client. The parameter should be used for preventing cross-site request forgery |
return | string |
public Delete ( |
||
request | ||
return |
public Get ( |
||
request | ||
return |
public Login ( string username, string extension, string password, bool remember ) : |
||
username | string | Username of RingCentral user |
extension | string | Optional: Extension number to login |
password | string | Password of the RingCentral User |
remember | bool | If set to true, refresh token TTL will be one week, otherwise it's 10 hours |
return |
public Platform ( string appKey, string appSecret, string serverUrl, string appName = "", string appVersion = "" ) : System | ||
appKey | string | |
appSecret | string | |
serverUrl | string | |
appName | string | |
appVersion | string | |
return | System |
public Post ( |
||
request | ||
return |
public Put ( |
||
request | ||
return |
public Send ( HttpMethod httpMethod, |
||
httpMethod | HttpMethod | |
request | ||
return |