Package com.ringcentral
Class RestClient
java.lang.Object
com.ringcentral.RestClient
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRestClient(String clientId, String clientSecret) RestClient(String clientId, String clientSecret, String server) RestClient(String clientId, String clientSecret, String server, okhttp3.OkHttpClient okHttpClient) RestClient(String clientId, String clientSecret, okhttp3.OkHttpClient okHttpClient) -
Method Summary
Modifier and TypeMethodDescriptionai()authorize(GetTokenRequest getTokenRequest) Deprecated.Password auth is deprecated.authorizeUri(AuthorizeRequest request) authorizeUri(String redirectUri) authorizeUri(String redirectUri, String state) voidvoidautoRefresh(long period) okhttp3.ResponseBodyokhttp3.ResponseBodyokhttp3.ResponseBodyokhttp3.ResponseBodyokhttp3.ResponseBodyokhttp3.ResponseBodyokhttp3.ResponseBodyokhttp3.ResponseBodyokhttp3.ResponseBodyokhttp3.ResponseBodyokhttp3.ResponseBodypost(String endpoint, Object object, Object queryParameters, ContentType contentType) okhttp3.ResponseBodyokhttp3.ResponseBodyokhttp3.ResponseBodyokhttp3.ResponseBodyput(String endpoint, Object object, Object queryParameters, ContentType contentType) rcvideo()refresh()okhttp3.ResponseBodyrequest(HttpMethod httpMethod, String endpoint, Object queryParameters, Object body) okhttp3.ResponseBodyrequest(HttpMethod httpMethod, String endpoint, Object queryParameters, Object body, ContentType contentType) okhttp3.ResponseBodyrequest(HttpMethod httpMethod, String endpoint, Object queryParameters, okhttp3.RequestBody requestBody) okhttp3.ResponserequestRaw(HttpMethod httpMethod, String endpoint, Object queryParameters, okhttp3.RequestBody requestBody) restapi()voidrevoke()scim()webinar()
-
Field Details
-
PRODUCTION_SERVER
- See Also:
-
logger
-
clientId
-
clientSecret
-
server
-
httpClient
public okhttp3.OkHttpClient httpClient -
token
-
httpEventListeners
-
-
Constructor Details
-
RestClient
-
RestClient
-
RestClient
-
RestClient
-
-
Method Details
-
autoRefresh
public void autoRefresh(long period) -
autoRefresh
public void autoRefresh() -
refresh
- Throws:
IOExceptionRestException
-
revoke
- Throws:
IOExceptionRestException
-
authorize
@Deprecated public TokenInfo authorize(String username, String extension, String password) throws IOException, RestException Deprecated.Password auth is deprecated. Useauthorize(String)orauthorize(String, String)instead.Authorize or authenticate using the ROPC or password grant flow.- Throws:
IOExceptionRestException
-
authorize
- Throws:
IOExceptionRestException
-
authorize
- Throws:
IOExceptionRestException
-
authorize
- Throws:
IOExceptionRestException
-
get
- Throws:
IOExceptionRestException
-
get
public okhttp3.ResponseBody get(String endpoint, Object queryParameters) throws IOException, RestException - Throws:
IOExceptionRestException
-
delete
- Throws:
IOExceptionRestException
-
delete
public okhttp3.ResponseBody delete(String endpoint, Object queryParameters) throws IOException, RestException - Throws:
IOExceptionRestException
-
delete
public okhttp3.ResponseBody delete(String endpoint, Object object, Object queryParameters) throws IOException, RestException - Throws:
IOExceptionRestException
-
post
- Throws:
IOExceptionRestException
-
post
- Throws:
IOExceptionRestException
-
post
public okhttp3.ResponseBody post(String endpoint, Object object, Object queryParameters) throws IOException, RestException - Throws:
IOExceptionRestException
-
post
public okhttp3.ResponseBody post(String endpoint, Object object, Object queryParameters, ContentType contentType) throws IOException, RestException - Throws:
IOExceptionRestException
-
put
- Throws:
IOExceptionRestException
-
put
- Throws:
IOExceptionRestException
-
put
public okhttp3.ResponseBody put(String endpoint, Object object, Object queryParameters) throws IOException, RestException - Throws:
IOExceptionRestException
-
put
public okhttp3.ResponseBody put(String endpoint, Object object, Object queryParameters, ContentType contentType) throws IOException, RestException - Throws:
IOExceptionRestException
-
patch
- Throws:
IOExceptionRestException
-
patch
public okhttp3.ResponseBody patch(String endpoint, Object object, Object queryParameters) throws IOException, RestException - Throws:
IOExceptionRestException
-
request
public okhttp3.ResponseBody request(HttpMethod httpMethod, String endpoint, Object queryParameters, Object body) throws IOException, RestException - Throws:
IOExceptionRestException
-
request
public okhttp3.ResponseBody request(HttpMethod httpMethod, String endpoint, Object queryParameters, Object body, ContentType contentType) throws IOException, RestException - Throws:
IOExceptionRestException
-
requestRaw
public okhttp3.Response requestRaw(HttpMethod httpMethod, String endpoint, Object queryParameters, okhttp3.RequestBody requestBody) throws IOException, RestException - Throws:
IOExceptionRestException
-
request
public okhttp3.ResponseBody request(HttpMethod httpMethod, String endpoint, Object queryParameters, okhttp3.RequestBody requestBody) throws IOException, RestException - Throws:
IOExceptionRestException
-
authorizeUri
-
authorizeUri
-
authorizeUri
-
restapi
-
restapi
-
scim
-
scim
-
analytics
-
teamMessaging
-
ai
-
rcvideo
-
webinar
-