public class MessagesApi extends Object
| Constructor and Description |
|---|
MessagesApi() |
MessagesApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
String |
orgNameAppNameMessagesPost(String orgName,
String appName,
String authorization,
Msg body)
Send a Message
Send a message to user(s) and group(s).
|
com.squareup.okhttp.Call |
orgNameAppNameMessagesPostAsync(String orgName,
String appName,
String authorization,
Msg body,
ApiCallback<String> callback)
Send a Message (asynchronously)
Send a message to user(s) and group(s).
|
ApiResponse<String> |
orgNameAppNameMessagesPostWithHttpInfo(String orgName,
String appName,
String authorization,
Msg body)
Send a Message
Send a message to user(s) and group(s).
|
void |
setApiClient(ApiClient apiClient) |
public MessagesApi()
public MessagesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public String orgNameAppNameMessagesPost(String orgName, String appName, String authorization, Msg body) throws ApiException
orgName - Organization ID (required)appName - Application name (required)authorization - Bearer ${token} (required)body - Message types: Text, image, audio message, video, command, etc. Please refer to the Hyphenate docs for further details about message body. https://docs.hyphenate.io/docs/post-messages (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<String> orgNameAppNameMessagesPostWithHttpInfo(String orgName, String appName, String authorization, Msg body) throws ApiException
orgName - Organization ID (required)appName - Application name (required)authorization - Bearer ${token} (required)body - Message types: Text, image, audio message, video, command, etc. Please refer to the Hyphenate docs for further details about message body. https://docs.hyphenate.io/docs/post-messages (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call orgNameAppNameMessagesPostAsync(String orgName, String appName, String authorization, Msg body, ApiCallback<String> callback) throws ApiException
orgName - Organization ID (required)appName - Application name (required)authorization - Bearer ${token} (required)body - Message types: Text, image, audio message, video, command, etc. Please refer to the Hyphenate docs for further details about message body. https://docs.hyphenate.io/docs/post-messages (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2017. All rights reserved.