类 PushApi
java.lang.Object
com.easemob.im.api.PushApi
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明createOfflinePushTemplate(EMCreateOfflinePushTemplate emCreateOfflinePushTemplate) 创建离线推送模板 创建离线推送消息模板,包括默认模板 default 和自定模板。okhttp3.CallcreateOfflinePushTemplateAsync(EMCreateOfflinePushTemplate emCreateOfflinePushTemplate, ApiCallback<EMCreateOfflinePushTemplateResult> _callback) 创建离线推送模板 (asynchronously) 创建离线推送消息模板,包括默认模板 default 和自定模板。okhttp3.CallcreateOfflinePushTemplateCall(EMCreateOfflinePushTemplate emCreateOfflinePushTemplate, ApiCallback _callback) Build call for createOfflinePushTemplatecreateOfflinePushTemplateWithHttpInfo(EMCreateOfflinePushTemplate emCreateOfflinePushTemplate) 创建离线推送模板 创建离线推送消息模板,包括默认模板 default 和自定模板。删除离线推送模板 删除离线消息推送模板。okhttp3.CalldeleteOfflinePushTemplateAsync(String name, ApiCallback<EMDeleteOfflinePushTemplateResult> _callback) 删除离线推送模板 (asynchronously) 删除离线消息推送模板。okhttp3.CalldeleteOfflinePushTemplateCall(String name, ApiCallback _callback) Build call for deleteOfflinePushTemplate删除离线推送模板 删除离线消息推送模板。intgetOfflinePush(String username, String chattype, String key) 查询离线推送设置 查询指定单聊、指定群聊或全局的离线推送设置。okhttp3.CallgetOfflinePushAsync(String username, String chattype, String key, ApiCallback<EMGetOfflinePushResult> _callback) 查询离线推送设置 (asynchronously) 查询指定单聊、指定群聊或全局的离线推送设置。okhttp3.CallgetOfflinePushCall(String username, String chattype, String key, ApiCallback _callback) Build call for getOfflinePushgetOfflinePushTemplate(String name) 查询离线推送模板 查询离线推送消息使用的模板。okhttp3.CallgetOfflinePushTemplateAsync(String name, ApiCallback<EMGetOfflinePushTemplateResult> _callback) 查询离线推送模板 (asynchronously) 查询离线推送消息使用的模板。okhttp3.CallgetOfflinePushTemplateCall(String name, ApiCallback _callback) Build call for getOfflinePushTemplate查询离线推送模板 查询离线推送消息使用的模板。getOfflinePushWithHttpInfo(String username, String chattype, String key) 查询离线推送设置 查询指定单聊、指定群聊或全局的离线推送设置。getPushBindingInfo(String username) 查询推送绑定信息 查询当前用户的所有设备的推送绑定信息。okhttp3.CallgetPushBindingInfoAsync(String username, ApiCallback<EMGetPushBindingInfoResult> _callback) 查询推送绑定信息 (asynchronously) 查询当前用户的所有设备的推送绑定信息。okhttp3.CallgetPushBindingInfoCall(String username, ApiCallback _callback) Build call for getPushBindingInfogetPushBindingInfoWithHttpInfo(String username) 查询推送绑定信息 查询当前用户的所有设备的推送绑定信息。getPushPreferredLanguage(String username) 获取推送通知的首选语言 获取推送通知的首选语言。okhttp3.CallgetPushPreferredLanguageAsync(String username, ApiCallback<EMGetPushPreferredLanguageResult> _callback) 获取推送通知的首选语言 (asynchronously) 获取推送通知的首选语言。okhttp3.CallgetPushPreferredLanguageCall(String username, ApiCallback _callback) Build call for getPushPreferredLanguagegetPushPreferredLanguageWithHttpInfo(String username) 获取推送通知的首选语言 获取推送通知的首选语言。receiverConfigurationTemplateName(String username, EMReceiverConfigurationTemplateName emReceiverConfigurationTemplateName) 接收方配置模板名称 接收方可以调用该 API 设置推送模板。okhttp3.CallreceiverConfigurationTemplateNameAsync(String username, EMReceiverConfigurationTemplateName emReceiverConfigurationTemplateName, ApiCallback<EMReceiverConfigurationTemplateNameResult> _callback) 接收方配置模板名称 (asynchronously) 接收方可以调用该 API 设置推送模板。okhttp3.CallreceiverConfigurationTemplateNameCall(String username, EMReceiverConfigurationTemplateName emReceiverConfigurationTemplateName, ApiCallback _callback) Build call for receiverConfigurationTemplateNamereceiverConfigurationTemplateNameWithHttpInfo(String username, EMReceiverConfigurationTemplateName emReceiverConfigurationTemplateName) 接收方配置模板名称 接收方可以调用该 API 设置推送模板。voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) setOfflinePushNew(String username, String chattype, String key, EMSetOfflinePushNew emSetOfflinePushNew) 设置离线推送(新) 你可以设置全局离线推送的通知方式和免打扰模式以及单个单聊或群聊会话的离线推送设置。okhttp3.CallsetOfflinePushNewAsync(String username, String chattype, String key, EMSetOfflinePushNew emSetOfflinePushNew, ApiCallback<EMSetOfflinePushNewResult> _callback) 设置离线推送(新) (asynchronously) 你可以设置全局离线推送的通知方式和免打扰模式以及单个单聊或群聊会话的离线推送设置。okhttp3.CallsetOfflinePushNewCall(String username, String chattype, String key, EMSetOfflinePushNew emSetOfflinePushNew, ApiCallback _callback) Build call for setOfflinePushNewsetOfflinePushNewWithHttpInfo(String username, String chattype, String key, EMSetOfflinePushNew emSetOfflinePushNew) 设置离线推送(新) 你可以设置全局离线推送的通知方式和免打扰模式以及单个单聊或群聊会话的离线推送设置。voidsetOfflinePushOld(String username, EMSetOfflinePushOld emSetOfflinePushOld) 离线推送设置。okhttp3.CallsetOfflinePushOldAsync(String username, EMSetOfflinePushOld emSetOfflinePushOld, ApiCallback<Void> _callback) 离线推送设置。okhttp3.CallsetOfflinePushOldCall(String username, EMSetOfflinePushOld emSetOfflinePushOld, ApiCallback _callback) Build call for setOfflinePushOldsetOfflinePushOldWithHttpInfo(String username, EMSetOfflinePushOld emSetOfflinePushOld) 离线推送设置。setPushBindingInfo(String username, EMSetPushBindingInfo emSetPushBindingInfo) 绑定和解绑推送信息 推送消息时,设备与推送信息会进行绑定,包括设备 ID、推送证书和 device token。okhttp3.CallsetPushBindingInfoAsync(String username, EMSetPushBindingInfo emSetPushBindingInfo, ApiCallback<EMSetPushBindingInfoResult> _callback) 绑定和解绑推送信息 (asynchronously) 推送消息时,设备与推送信息会进行绑定,包括设备 ID、推送证书和 device token。okhttp3.CallsetPushBindingInfoCall(String username, EMSetPushBindingInfo emSetPushBindingInfo, ApiCallback _callback) Build call for setPushBindingInfosetPushBindingInfoWithHttpInfo(String username, EMSetPushBindingInfo emSetPushBindingInfo) 绑定和解绑推送信息 推送消息时,设备与推送信息会进行绑定,包括设备 ID、推送证书和 device token。setPushPreferredLanguage(String username, EMSetPushPreferredLanguage emSetPushPreferredLanguage) 设置推送通知的首选语言 设置离线推送消息的首选语言。okhttp3.CallsetPushPreferredLanguageAsync(String username, EMSetPushPreferredLanguage emSetPushPreferredLanguage, ApiCallback<EMSetPushPreferredLanguageResult> _callback) 设置推送通知的首选语言 (asynchronously) 设置离线推送消息的首选语言。okhttp3.CallsetPushPreferredLanguageCall(String username, EMSetPushPreferredLanguage emSetPushPreferredLanguage, ApiCallback _callback) Build call for setPushPreferredLanguagesetPushPreferredLanguageWithHttpInfo(String username, EMSetPushPreferredLanguage emSetPushPreferredLanguage) 设置推送通知的首选语言 设置离线推送消息的首选语言。
-
构造器详细资料
-
PushApi
public PushApi() -
PushApi
-
-
方法详细资料
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
createOfflinePushTemplateCall
public okhttp3.Call createOfflinePushTemplateCall(EMCreateOfflinePushTemplate emCreateOfflinePushTemplate, ApiCallback _callback) throws ApiException Build call for createOfflinePushTemplate- 参数:
emCreateOfflinePushTemplate- (optional)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
createOfflinePushTemplate
public EMCreateOfflinePushTemplateResult createOfflinePushTemplate(EMCreateOfflinePushTemplate emCreateOfflinePushTemplate) throws ApiException 创建离线推送模板 创建离线推送消息模板,包括默认模板 default 和自定模板。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E5%88%9B%E5%BB%BA%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E6%A8%A1%E6%9D%BF- 参数:
emCreateOfflinePushTemplate- (optional)- 返回:
- EMCreateOfflinePushTemplateResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
createOfflinePushTemplateWithHttpInfo
public ApiResponse<EMCreateOfflinePushTemplateResult> createOfflinePushTemplateWithHttpInfo(EMCreateOfflinePushTemplate emCreateOfflinePushTemplate) throws ApiException 创建离线推送模板 创建离线推送消息模板,包括默认模板 default 和自定模板。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E5%88%9B%E5%BB%BA%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E6%A8%A1%E6%9D%BF- 参数:
emCreateOfflinePushTemplate- (optional)- 返回:
- ApiResponse<EMCreateOfflinePushTemplateResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
createOfflinePushTemplateAsync
public okhttp3.Call createOfflinePushTemplateAsync(EMCreateOfflinePushTemplate emCreateOfflinePushTemplate, ApiCallback<EMCreateOfflinePushTemplateResult> _callback) throws ApiException 创建离线推送模板 (asynchronously) 创建离线推送消息模板,包括默认模板 default 和自定模板。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E5%88%9B%E5%BB%BA%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E6%A8%A1%E6%9D%BF- 参数:
emCreateOfflinePushTemplate- (optional)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
deleteOfflinePushTemplateCall
public okhttp3.Call deleteOfflinePushTemplateCall(String name, ApiCallback _callback) throws ApiException Build call for deleteOfflinePushTemplate- 参数:
name- 要查询的推送模板的名称 (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
deleteOfflinePushTemplate
删除离线推送模板 删除离线消息推送模板。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E5%88%A0%E9%99%A4%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E6%A8%A1%E6%9D%BF- 参数:
name- 要查询的推送模板的名称 (required)- 返回:
- EMDeleteOfflinePushTemplateResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
deleteOfflinePushTemplateWithHttpInfo
public ApiResponse<EMDeleteOfflinePushTemplateResult> deleteOfflinePushTemplateWithHttpInfo(String name) throws ApiException 删除离线推送模板 删除离线消息推送模板。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E5%88%A0%E9%99%A4%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E6%A8%A1%E6%9D%BF- 参数:
name- 要查询的推送模板的名称 (required)- 返回:
- ApiResponse<EMDeleteOfflinePushTemplateResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
deleteOfflinePushTemplateAsync
public okhttp3.Call deleteOfflinePushTemplateAsync(String name, ApiCallback<EMDeleteOfflinePushTemplateResult> _callback) throws ApiException 删除离线推送模板 (asynchronously) 删除离线消息推送模板。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E5%88%A0%E9%99%A4%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E6%A8%A1%E6%9D%BF- 参数:
name- 要查询的推送模板的名称 (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
getOfflinePushCall
public okhttp3.Call getOfflinePushCall(String username, String chattype, String key, ApiCallback _callback) throws ApiException Build call for getOfflinePush- 参数:
username- (required)chattype- 对象类型,即会话类型: - user:用户,表示单聊; - chatgroup:群组,表示群聊 (required)key- 对象名称: - 单聊时为对端用户的用户 ID; - 群聊时为群组 ID (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
getOfflinePush
public EMGetOfflinePushResult getOfflinePush(String username, String chattype, String key) throws ApiException 查询离线推送设置 查询指定单聊、指定群聊或全局的离线推送设置。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E6%9F%A5%E8%AF%A2%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E8%AE%BE%E7%BD%AE- 参数:
username- (required)chattype- 对象类型,即会话类型: - user:用户,表示单聊; - chatgroup:群组,表示群聊 (required)key- 对象名称: - 单聊时为对端用户的用户 ID; - 群聊时为群组 ID (required)- 返回:
- EMGetOfflinePushResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getOfflinePushWithHttpInfo
public ApiResponse<EMGetOfflinePushResult> getOfflinePushWithHttpInfo(String username, String chattype, String key) throws ApiException 查询离线推送设置 查询指定单聊、指定群聊或全局的离线推送设置。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E6%9F%A5%E8%AF%A2%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E8%AE%BE%E7%BD%AE- 参数:
username- (required)chattype- 对象类型,即会话类型: - user:用户,表示单聊; - chatgroup:群组,表示群聊 (required)key- 对象名称: - 单聊时为对端用户的用户 ID; - 群聊时为群组 ID (required)- 返回:
- ApiResponse<EMGetOfflinePushResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getOfflinePushAsync
public okhttp3.Call getOfflinePushAsync(String username, String chattype, String key, ApiCallback<EMGetOfflinePushResult> _callback) throws ApiException 查询离线推送设置 (asynchronously) 查询指定单聊、指定群聊或全局的离线推送设置。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E6%9F%A5%E8%AF%A2%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E8%AE%BE%E7%BD%AE- 参数:
username- (required)chattype- 对象类型,即会话类型: - user:用户,表示单聊; - chatgroup:群组,表示群聊 (required)key- 对象名称: - 单聊时为对端用户的用户 ID; - 群聊时为群组 ID (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
getOfflinePushTemplateCall
public okhttp3.Call getOfflinePushTemplateCall(String name, ApiCallback _callback) throws ApiException Build call for getOfflinePushTemplate- 参数:
name- 要查询的推送模板的名称 (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
getOfflinePushTemplate
查询离线推送模板 查询离线推送消息使用的模板。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E6%9F%A5%E8%AF%A2%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E6%A8%A1%E6%9D%BF- 参数:
name- 要查询的推送模板的名称 (required)- 返回:
- EMGetOfflinePushTemplateResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getOfflinePushTemplateWithHttpInfo
public ApiResponse<EMGetOfflinePushTemplateResult> getOfflinePushTemplateWithHttpInfo(String name) throws ApiException 查询离线推送模板 查询离线推送消息使用的模板。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E6%9F%A5%E8%AF%A2%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E6%A8%A1%E6%9D%BF- 参数:
name- 要查询的推送模板的名称 (required)- 返回:
- ApiResponse<EMGetOfflinePushTemplateResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getOfflinePushTemplateAsync
public okhttp3.Call getOfflinePushTemplateAsync(String name, ApiCallback<EMGetOfflinePushTemplateResult> _callback) throws ApiException 查询离线推送模板 (asynchronously) 查询离线推送消息使用的模板。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E6%9F%A5%E8%AF%A2%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E6%A8%A1%E6%9D%BF- 参数:
name- 要查询的推送模板的名称 (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
getPushBindingInfoCall
public okhttp3.Call getPushBindingInfoCall(String username, ApiCallback _callback) throws ApiException Build call for getPushBindingInfo- 参数:
username- (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
getPushBindingInfo
查询推送绑定信息 查询当前用户的所有设备的推送绑定信息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E6%9F%A5%E8%AF%A2%E6%8E%A8%E9%80%81%E7%BB%91%E5%AE%9A%E4%BF%A1%E6%81%AF- 参数:
username- (required)- 返回:
- EMGetPushBindingInfoResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getPushBindingInfoWithHttpInfo
public ApiResponse<EMGetPushBindingInfoResult> getPushBindingInfoWithHttpInfo(String username) throws ApiException 查询推送绑定信息 查询当前用户的所有设备的推送绑定信息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E6%9F%A5%E8%AF%A2%E6%8E%A8%E9%80%81%E7%BB%91%E5%AE%9A%E4%BF%A1%E6%81%AF- 参数:
username- (required)- 返回:
- ApiResponse<EMGetPushBindingInfoResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getPushBindingInfoAsync
public okhttp3.Call getPushBindingInfoAsync(String username, ApiCallback<EMGetPushBindingInfoResult> _callback) throws ApiException 查询推送绑定信息 (asynchronously) 查询当前用户的所有设备的推送绑定信息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E6%9F%A5%E8%AF%A2%E6%8E%A8%E9%80%81%E7%BB%91%E5%AE%9A%E4%BF%A1%E6%81%AF- 参数:
username- (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
getPushPreferredLanguageCall
public okhttp3.Call getPushPreferredLanguageCall(String username, ApiCallback _callback) throws ApiException Build call for getPushPreferredLanguage- 参数:
username- (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
getPushPreferredLanguage
public EMGetPushPreferredLanguageResult getPushPreferredLanguage(String username) throws ApiException 获取推送通知的首选语言 获取推送通知的首选语言。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%8E%B7%E5%8F%96%E6%8E%A8%E9%80%81%E9%80%9A%E7%9F%A5%E7%9A%84%E9%A6%96%E9%80%89%E8%AF%AD%E8%A8%80- 参数:
username- (required)- 返回:
- EMGetPushPreferredLanguageResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getPushPreferredLanguageWithHttpInfo
public ApiResponse<EMGetPushPreferredLanguageResult> getPushPreferredLanguageWithHttpInfo(String username) throws ApiException 获取推送通知的首选语言 获取推送通知的首选语言。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%8E%B7%E5%8F%96%E6%8E%A8%E9%80%81%E9%80%9A%E7%9F%A5%E7%9A%84%E9%A6%96%E9%80%89%E8%AF%AD%E8%A8%80- 参数:
username- (required)- 返回:
- ApiResponse<EMGetPushPreferredLanguageResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getPushPreferredLanguageAsync
public okhttp3.Call getPushPreferredLanguageAsync(String username, ApiCallback<EMGetPushPreferredLanguageResult> _callback) throws ApiException 获取推送通知的首选语言 (asynchronously) 获取推送通知的首选语言。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%8E%B7%E5%8F%96%E6%8E%A8%E9%80%81%E9%80%9A%E7%9F%A5%E7%9A%84%E9%A6%96%E9%80%89%E8%AF%AD%E8%A8%80- 参数:
username- (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
receiverConfigurationTemplateNameCall
public okhttp3.Call receiverConfigurationTemplateNameCall(String username, EMReceiverConfigurationTemplateName emReceiverConfigurationTemplateName, ApiCallback _callback) throws ApiException Build call for receiverConfigurationTemplateName- 参数:
username- (required)emReceiverConfigurationTemplateName- (optional)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
receiverConfigurationTemplateName
public EMReceiverConfigurationTemplateNameResult receiverConfigurationTemplateName(String username, EMReceiverConfigurationTemplateName emReceiverConfigurationTemplateName) throws ApiException 接收方配置模板名称 接收方可以调用该 API 设置推送模板。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E6%8E%A5%E6%94%B6%E6%96%B9%E9%85%8D%E7%BD%AE%E6%A8%A1%E6%9D%BF%E5%90%8D%E7%A7%B0- 参数:
username- (required)emReceiverConfigurationTemplateName- (optional)- 返回:
- EMReceiverConfigurationTemplateNameResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
receiverConfigurationTemplateNameWithHttpInfo
public ApiResponse<EMReceiverConfigurationTemplateNameResult> receiverConfigurationTemplateNameWithHttpInfo(String username, EMReceiverConfigurationTemplateName emReceiverConfigurationTemplateName) throws ApiException 接收方配置模板名称 接收方可以调用该 API 设置推送模板。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E6%8E%A5%E6%94%B6%E6%96%B9%E9%85%8D%E7%BD%AE%E6%A8%A1%E6%9D%BF%E5%90%8D%E7%A7%B0- 参数:
username- (required)emReceiverConfigurationTemplateName- (optional)- 返回:
- ApiResponse<EMReceiverConfigurationTemplateNameResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
receiverConfigurationTemplateNameAsync
public okhttp3.Call receiverConfigurationTemplateNameAsync(String username, EMReceiverConfigurationTemplateName emReceiverConfigurationTemplateName, ApiCallback<EMReceiverConfigurationTemplateNameResult> _callback) throws ApiException 接收方配置模板名称 (asynchronously) 接收方可以调用该 API 设置推送模板。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E6%8E%A5%E6%94%B6%E6%96%B9%E9%85%8D%E7%BD%AE%E6%A8%A1%E6%9D%BF%E5%90%8D%E7%A7%B0- 参数:
username- (required)emReceiverConfigurationTemplateName- (optional)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
setOfflinePushNewCall
public okhttp3.Call setOfflinePushNewCall(String username, String chattype, String key, EMSetOfflinePushNew emSetOfflinePushNew, ApiCallback _callback) throws ApiException Build call for setOfflinePushNew- 参数:
username- (required)chattype- 对象类型,即会话类型: - user:用户,表示单聊; - chatgroup:群组,表示群聊 (required)key- 对象名称: - 单聊时为对端用户的用户 ID; - 群聊时为群组 ID (required)emSetOfflinePushNew- (optional)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
setOfflinePushNew
public EMSetOfflinePushNewResult setOfflinePushNew(String username, String chattype, String key, EMSetOfflinePushNew emSetOfflinePushNew) throws ApiException 设置离线推送(新) 你可以设置全局离线推送的通知方式和免打扰模式以及单个单聊或群聊会话的离线推送设置。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%AE%BE%E7%BD%AE%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81- 参数:
username- (required)chattype- 对象类型,即会话类型: - user:用户,表示单聊; - chatgroup:群组,表示群聊 (required)key- 对象名称: - 单聊时为对端用户的用户 ID; - 群聊时为群组 ID (required)emSetOfflinePushNew- (optional)- 返回:
- EMSetOfflinePushNewResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
setOfflinePushNewWithHttpInfo
public ApiResponse<EMSetOfflinePushNewResult> setOfflinePushNewWithHttpInfo(String username, String chattype, String key, EMSetOfflinePushNew emSetOfflinePushNew) throws ApiException 设置离线推送(新) 你可以设置全局离线推送的通知方式和免打扰模式以及单个单聊或群聊会话的离线推送设置。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%AE%BE%E7%BD%AE%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81- 参数:
username- (required)chattype- 对象类型,即会话类型: - user:用户,表示单聊; - chatgroup:群组,表示群聊 (required)key- 对象名称: - 单聊时为对端用户的用户 ID; - 群聊时为群组 ID (required)emSetOfflinePushNew- (optional)- 返回:
- ApiResponse<EMSetOfflinePushNewResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
setOfflinePushNewAsync
public okhttp3.Call setOfflinePushNewAsync(String username, String chattype, String key, EMSetOfflinePushNew emSetOfflinePushNew, ApiCallback<EMSetOfflinePushNewResult> _callback) throws ApiException 设置离线推送(新) (asynchronously) 你可以设置全局离线推送的通知方式和免打扰模式以及单个单聊或群聊会话的离线推送设置。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%AE%BE%E7%BD%AE%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81- 参数:
username- (required)chattype- 对象类型,即会话类型: - user:用户,表示单聊; - chatgroup:群组,表示群聊 (required)key- 对象名称: - 单聊时为对端用户的用户 ID; - 群聊时为群组 ID (required)emSetOfflinePushNew- (optional)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
setOfflinePushOldCall
public okhttp3.Call setOfflinePushOldCall(String username, EMSetOfflinePushOld emSetOfflinePushOld, ApiCallback _callback) throws ApiException Build call for setOfflinePushOld- 参数:
username- 用户 ID (required)emSetOfflinePushOld- (optional)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
setOfflinePushOld
public void setOfflinePushOld(String username, EMSetOfflinePushOld emSetOfflinePushOld) throws ApiException 离线推送设置。包括设置离线推送时显示的昵称、设置离线推送通知的展示方式、设置免打扰模式 离线推送设置。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%AE%BE%E7%BD%AE%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E6%97%B6%E6%98%BE%E7%A4%BA%E7%9A%84%E6%98%B5%E7%A7%B0、https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%AE%BE%E7%BD%AE%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E9%80%9A%E7%9F%A5%E7%9A%84%E5%B1%95%E7%A4%BA%E6%96%B9%E5%BC%8F、https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%AE%BE%E7%BD%AE%E5%85%8D%E6%89%93%E6%89%B0%E6%A8%A1%E5%BC%8F- 参数:
username- 用户 ID (required)emSetOfflinePushOld- (optional)- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
setOfflinePushOldWithHttpInfo
public ApiResponse<Void> setOfflinePushOldWithHttpInfo(String username, EMSetOfflinePushOld emSetOfflinePushOld) throws ApiException 离线推送设置。包括设置离线推送时显示的昵称、设置离线推送通知的展示方式、设置免打扰模式 离线推送设置。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%AE%BE%E7%BD%AE%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E6%97%B6%E6%98%BE%E7%A4%BA%E7%9A%84%E6%98%B5%E7%A7%B0、https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%AE%BE%E7%BD%AE%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E9%80%9A%E7%9F%A5%E7%9A%84%E5%B1%95%E7%A4%BA%E6%96%B9%E5%BC%8F、https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%AE%BE%E7%BD%AE%E5%85%8D%E6%89%93%E6%89%B0%E6%A8%A1%E5%BC%8F- 参数:
username- 用户 ID (required)emSetOfflinePushOld- (optional)- 返回:
- ApiResponse<Void>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
setOfflinePushOldAsync
public okhttp3.Call setOfflinePushOldAsync(String username, EMSetOfflinePushOld emSetOfflinePushOld, ApiCallback<Void> _callback) throws ApiException 离线推送设置。包括设置离线推送时显示的昵称、设置离线推送通知的展示方式、设置免打扰模式 (asynchronously) 离线推送设置。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%AE%BE%E7%BD%AE%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E6%97%B6%E6%98%BE%E7%A4%BA%E7%9A%84%E6%98%B5%E7%A7%B0、https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%AE%BE%E7%BD%AE%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E9%80%9A%E7%9F%A5%E7%9A%84%E5%B1%95%E7%A4%BA%E6%96%B9%E5%BC%8F、https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%AE%BE%E7%BD%AE%E5%85%8D%E6%89%93%E6%89%B0%E6%A8%A1%E5%BC%8F- 参数:
username- 用户 ID (required)emSetOfflinePushOld- (optional)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
setPushBindingInfoCall
public okhttp3.Call setPushBindingInfoCall(String username, EMSetPushBindingInfo emSetPushBindingInfo, ApiCallback _callback) throws ApiException Build call for setPushBindingInfo- 参数:
username- (required)emSetPushBindingInfo- (optional)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
setPushBindingInfo
public EMSetPushBindingInfoResult setPushBindingInfo(String username, EMSetPushBindingInfo emSetPushBindingInfo) throws ApiException 绑定和解绑推送信息 推送消息时,设备与推送信息会进行绑定,包括设备 ID、推送证书和 device token。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E7%BB%91%E5%AE%9A%E5%92%8C%E8%A7%A3%E7%BB%91%E6%8E%A8%E9%80%81%E4%BF%A1%E6%81%AF- 参数:
username- (required)emSetPushBindingInfo- (optional)- 返回:
- EMSetPushBindingInfoResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
setPushBindingInfoWithHttpInfo
public ApiResponse<EMSetPushBindingInfoResult> setPushBindingInfoWithHttpInfo(String username, EMSetPushBindingInfo emSetPushBindingInfo) throws ApiException 绑定和解绑推送信息 推送消息时,设备与推送信息会进行绑定,包括设备 ID、推送证书和 device token。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E7%BB%91%E5%AE%9A%E5%92%8C%E8%A7%A3%E7%BB%91%E6%8E%A8%E9%80%81%E4%BF%A1%E6%81%AF- 参数:
username- (required)emSetPushBindingInfo- (optional)- 返回:
- ApiResponse<EMSetPushBindingInfoResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
setPushBindingInfoAsync
public okhttp3.Call setPushBindingInfoAsync(String username, EMSetPushBindingInfo emSetPushBindingInfo, ApiCallback<EMSetPushBindingInfoResult> _callback) throws ApiException 绑定和解绑推送信息 (asynchronously) 推送消息时,设备与推送信息会进行绑定,包括设备 ID、推送证书和 device token。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E7%BB%91%E5%AE%9A%E5%92%8C%E8%A7%A3%E7%BB%91%E6%8E%A8%E9%80%81%E4%BF%A1%E6%81%AF- 参数:
username- (required)emSetPushBindingInfo- (optional)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
setPushPreferredLanguageCall
public okhttp3.Call setPushPreferredLanguageCall(String username, EMSetPushPreferredLanguage emSetPushPreferredLanguage, ApiCallback _callback) throws ApiException Build call for setPushPreferredLanguage- 参数:
username- (required)emSetPushPreferredLanguage- (optional)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
setPushPreferredLanguage
public EMSetPushPreferredLanguageResult setPushPreferredLanguage(String username, EMSetPushPreferredLanguage emSetPushPreferredLanguage) throws ApiException 设置推送通知的首选语言 设置离线推送消息的首选语言。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%AE%BE%E7%BD%AE%E6%8E%A8%E9%80%81%E9%80%9A%E7%9F%A5%E7%9A%84%E9%A6%96%E9%80%89%E8%AF%AD%E8%A8%80- 参数:
username- (required)emSetPushPreferredLanguage- (optional)- 返回:
- EMSetPushPreferredLanguageResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
setPushPreferredLanguageWithHttpInfo
public ApiResponse<EMSetPushPreferredLanguageResult> setPushPreferredLanguageWithHttpInfo(String username, EMSetPushPreferredLanguage emSetPushPreferredLanguage) throws ApiException 设置推送通知的首选语言 设置离线推送消息的首选语言。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%AE%BE%E7%BD%AE%E6%8E%A8%E9%80%81%E9%80%9A%E7%9F%A5%E7%9A%84%E9%A6%96%E9%80%89%E8%AF%AD%E8%A8%80- 参数:
username- (required)emSetPushPreferredLanguage- (optional)- 返回:
- ApiResponse<EMSetPushPreferredLanguageResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
setPushPreferredLanguageAsync
public okhttp3.Call setPushPreferredLanguageAsync(String username, EMSetPushPreferredLanguage emSetPushPreferredLanguage, ApiCallback<EMSetPushPreferredLanguageResult> _callback) throws ApiException 设置推送通知的首选语言 (asynchronously) 设置离线推送消息的首选语言。文档介绍:https://docs-im-beta.easemob.com/document/server-side/push.html#%E8%AE%BE%E7%BD%AE%E6%8E%A8%E9%80%81%E9%80%9A%E7%9F%A5%E7%9A%84%E9%A6%96%E9%80%89%E8%AF%AD%E8%A8%80- 参数:
username- (required)emSetPushPreferredLanguage- (optional)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-