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) void
void
autoRefresh
(long period) okhttp3.ResponseBody
okhttp3.ResponseBody
okhttp3.ResponseBody
okhttp3.ResponseBody
okhttp3.ResponseBody
okhttp3.ResponseBody
okhttp3.ResponseBody
okhttp3.ResponseBody
okhttp3.ResponseBody
okhttp3.ResponseBody
okhttp3.ResponseBody
post
(String endpoint, Object object, Object queryParameters, ContentType contentType) okhttp3.ResponseBody
okhttp3.ResponseBody
okhttp3.ResponseBody
okhttp3.ResponseBody
put
(String endpoint, Object object, Object queryParameters, ContentType contentType) rcvideo()
refresh()
okhttp3.ResponseBody
request
(HttpMethod httpMethod, String endpoint, Object queryParameters, Object body) okhttp3.ResponseBody
request
(HttpMethod httpMethod, String endpoint, Object queryParameters, Object body, ContentType contentType) okhttp3.ResponseBody
request
(HttpMethod httpMethod, String endpoint, Object queryParameters, okhttp3.RequestBody requestBody) okhttp3.Response
requestRaw
(HttpMethod httpMethod, String endpoint, Object queryParameters, okhttp3.RequestBody requestBody) restapi()
void
revoke()
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:
IOException
RestException
-
revoke
- Throws:
IOException
RestException
-
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:
IOException
RestException
-
authorize
- Throws:
IOException
RestException
-
authorize
- Throws:
IOException
RestException
-
authorize
- Throws:
IOException
RestException
-
get
- Throws:
IOException
RestException
-
get
public okhttp3.ResponseBody get(String endpoint, Object queryParameters) throws IOException, RestException - Throws:
IOException
RestException
-
delete
- Throws:
IOException
RestException
-
delete
public okhttp3.ResponseBody delete(String endpoint, Object queryParameters) throws IOException, RestException - Throws:
IOException
RestException
-
delete
public okhttp3.ResponseBody delete(String endpoint, Object object, Object queryParameters) throws IOException, RestException - Throws:
IOException
RestException
-
post
- Throws:
IOException
RestException
-
post
- Throws:
IOException
RestException
-
post
public okhttp3.ResponseBody post(String endpoint, Object object, Object queryParameters) throws IOException, RestException - Throws:
IOException
RestException
-
post
public okhttp3.ResponseBody post(String endpoint, Object object, Object queryParameters, ContentType contentType) throws IOException, RestException - Throws:
IOException
RestException
-
put
- Throws:
IOException
RestException
-
put
- Throws:
IOException
RestException
-
put
public okhttp3.ResponseBody put(String endpoint, Object object, Object queryParameters) throws IOException, RestException - Throws:
IOException
RestException
-
put
public okhttp3.ResponseBody put(String endpoint, Object object, Object queryParameters, ContentType contentType) throws IOException, RestException - Throws:
IOException
RestException
-
patch
- Throws:
IOException
RestException
-
patch
public okhttp3.ResponseBody patch(String endpoint, Object object, Object queryParameters) throws IOException, RestException - Throws:
IOException
RestException
-
request
public okhttp3.ResponseBody request(HttpMethod httpMethod, String endpoint, Object queryParameters, Object body) throws IOException, RestException - Throws:
IOException
RestException
-
request
public okhttp3.ResponseBody request(HttpMethod httpMethod, String endpoint, Object queryParameters, Object body, ContentType contentType) throws IOException, RestException - Throws:
IOException
RestException
-
requestRaw
public okhttp3.Response requestRaw(HttpMethod httpMethod, String endpoint, Object queryParameters, okhttp3.RequestBody requestBody) throws IOException, RestException - Throws:
IOException
RestException
-
request
public okhttp3.ResponseBody request(HttpMethod httpMethod, String endpoint, Object queryParameters, okhttp3.RequestBody requestBody) throws IOException, RestException - Throws:
IOException
RestException
-
authorizeUri
-
authorizeUri
-
authorizeUri
-
restapi
-
restapi
-
scim
-
scim
-
analytics
-
teamMessaging
-
ai
-
rcvideo
-
webinar
-