public class JPushClient
extends java.lang.Object
| Constructor and Description |
|---|
JPushClient(java.lang.String masterSecret,
java.lang.String appKey)
Create a JPush Client.
|
JPushClient(java.lang.String masterSecret,
java.lang.String appKey,
boolean apnsProduction,
long timeToLive)
Deprecated.
|
JPushClient(java.lang.String masterSecret,
java.lang.String appKey,
cn.jiguang.common.connection.HttpProxy proxy,
cn.jiguang.common.ClientConfig conf)
Create a JPush Client by custom Client configuration.
|
JPushClient(java.lang.String masterSecret,
java.lang.String appKey,
int maxRetryTimes)
Deprecated.
|
JPushClient(java.lang.String masterSecret,
java.lang.String appKey,
int maxRetryTimes,
cn.jiguang.common.connection.HttpProxy proxy)
Deprecated.
|
JPushClient(java.lang.String masterSecret,
java.lang.String appKey,
int maxRetryTimes,
cn.jiguang.common.connection.HttpProxy proxy,
cn.jiguang.common.ClientConfig conf)
Deprecated.
|
JPushClient(java.lang.String masterSecret,
java.lang.String appKey,
int maxRetryTimes,
cn.jiguang.common.connection.HttpProxy proxy,
cn.jiguang.common.ClientConfig conf,
boolean apnsProduction,
long timeToLive)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
cn.jiguang.common.resp.DefaultResult |
addRemoveDevicesFromTag(java.lang.String theTag,
java.util.Set<java.lang.String> toAddUsers,
java.util.Set<java.lang.String> toRemoveUsers) |
cn.jiguang.common.resp.DefaultResult |
bindMobile(java.lang.String registrationId,
java.lang.String mobile) |
void |
close() |
ScheduleResult |
createDailySchedule(java.lang.String name,
java.lang.String start,
java.lang.String end,
java.lang.String time,
int frequency,
PushPayload push)
Create a daily schedule push with a custom frequency.
|
ScheduleResult |
createDailySchedule(java.lang.String name,
java.lang.String start,
java.lang.String end,
java.lang.String time,
PushPayload push)
Create a daily schedule push everyday.
|
ScheduleResult |
createMonthlySchedule(java.lang.String name,
java.lang.String start,
java.lang.String end,
java.lang.String time,
int frequency,
java.lang.String[] points,
PushPayload push)
Create a monthly schedule push with a custom frequency at the appointed days.
|
ScheduleResult |
createMonthlySchedule(java.lang.String name,
java.lang.String start,
java.lang.String end,
java.lang.String time,
java.lang.String[] points,
PushPayload push)
Create a monthly schedule push every month at the appointed days.
|
ScheduleResult |
createSingleSchedule(java.lang.String name,
java.lang.String time,
PushPayload push)
Create a single schedule.
|
ScheduleResult |
createWeeklySchedule(java.lang.String name,
java.lang.String start,
java.lang.String end,
java.lang.String time,
int frequency,
cn.jiguang.common.Week[] days,
PushPayload push)
Create a weekly schedule push with a custom frequency at the appointed days.
|
ScheduleResult |
createWeeklySchedule(java.lang.String name,
java.lang.String start,
java.lang.String end,
java.lang.String time,
cn.jiguang.common.Week[] days,
PushPayload push)
Create a weekly schedule push every week at the appointed days.
|
cn.jiguang.common.resp.DefaultResult |
deleteAlias(java.lang.String alias,
java.lang.String platform) |
void |
deleteSchedule(java.lang.String scheduleId)
Delete a schedule by id.
|
cn.jiguang.common.resp.DefaultResult |
deleteTag(java.lang.String theTag,
java.lang.String platform) |
ScheduleResult |
disableSchedule(java.lang.String scheduleId)
Disable the schedule.
|
ScheduleResult |
enableSchedule(java.lang.String scheduleId)
Enable the schedule.
|
AliasDeviceListResult |
getAliasDeviceList(java.lang.String alias,
java.lang.String platform) |
CIDResult |
getCidList(int count,
java.lang.String type)
Get cid list, the data form of cid is appKey-uuid.
|
TagAliasResult |
getDeviceTagAlias(java.lang.String registrationId) |
java.util.Map<java.lang.String,MessageStatus> |
getMessageStatus(CheckMessagePayload payload) |
PushClient |
getPushClient() |
MessagesResult |
getReportMessages(java.lang.String msgIds) |
ReceivedsResult |
getReportReceiveds(java.lang.String msgIds)
Get received report.
|
UsersResult |
getReportUsers(cn.jiguang.common.TimeUnit timeUnit,
java.lang.String start,
int duration) |
ScheduleResult |
getSchedule(java.lang.String scheduleId)
Get the schedule information by the schedule id.
|
ScheduleListResult |
getScheduleList()
Get the schedule list size and the first page.
|
ScheduleListResult |
getScheduleList(int page)
Get the schedule list by the page.
|
TagListResult |
getTagList() |
java.util.Map<java.lang.String,OnlineStatus> |
getUserOnlineStatus(java.lang.String... registrationIds) |
cn.jiguang.common.resp.BooleanResult |
isDeviceInTag(java.lang.String theTag,
java.lang.String registrationID) |
PushResult |
sendAndroidMessageWithAlias(java.lang.String title,
java.lang.String msgContent,
SMS sms,
java.lang.String... alias)
Send an Android message with alias.
|
PushResult |
sendAndroidMessageWithAlias(java.lang.String title,
java.lang.String msgContent,
java.lang.String... alias) |
PushResult |
sendAndroidMessageWithRegistrationID(java.lang.String title,
java.lang.String msgContent,
SMS sms,
java.lang.String... registrationID)
Send an Android message with registration id.
|
PushResult |
sendAndroidMessageWithRegistrationID(java.lang.String title,
java.lang.String msgContent,
java.lang.String... registrationID) |
PushResult |
sendAndroidNotificationWithAlias(java.lang.String title,
java.lang.String alert,
java.util.Map<java.lang.String,java.lang.String> extras,
java.lang.String... alias) |
PushResult |
sendAndroidNotificationWithAlias(java.lang.String title,
java.lang.String alert,
SMS sms,
java.util.Map<java.lang.String,java.lang.String> extras,
java.lang.String... alias)
Send a notification to Android with alias.
|
PushResult |
sendAndroidNotificationWithRegistrationID(java.lang.String title,
java.lang.String alert,
java.util.Map<java.lang.String,java.lang.String> extras,
java.lang.String... registrationID) |
PushResult |
sendAndroidNotificationWithRegistrationID(java.lang.String title,
java.lang.String alert,
SMS sms,
java.util.Map<java.lang.String,java.lang.String> extras,
java.lang.String... registrationID)
Send a notification to Android with RegistrationID.
|
PushResult |
sendIosMessageWithAlias(java.lang.String title,
java.lang.String msgContent,
SMS sms,
java.lang.String... alias)
Send an iOS message with alias.
|
PushResult |
sendIosMessageWithAlias(java.lang.String title,
java.lang.String msgContent,
java.lang.String... alias) |
PushResult |
sendIosMessageWithRegistrationID(java.lang.String title,
java.lang.String msgContent,
SMS sms,
java.lang.String... registrationID)
Send an iOS message with registration id.
|
PushResult |
sendIosMessageWithRegistrationID(java.lang.String title,
java.lang.String msgContent,
java.lang.String... registrationID) |
PushResult |
sendIosNotificationWithAlias(IosAlert alert,
java.util.Map<java.lang.String,java.lang.String> extras,
java.lang.String... alias)
Send an iOS notification with alias.
|
PushResult |
sendIosNotificationWithAlias(IosAlert alert,
SMS sms,
java.util.Map<java.lang.String,java.lang.String> extras,
java.lang.String... alias)
Send an iOS notification with alias.
|
PushResult |
sendIosNotificationWithAlias(com.google.gson.JsonObject alert,
java.util.Map<java.lang.String,java.lang.String> extras,
java.lang.String... alias)
Send an iOS notification with alias.
|
PushResult |
sendIosNotificationWithAlias(com.google.gson.JsonObject alert,
SMS sms,
java.util.Map<java.lang.String,java.lang.String> extras,
java.lang.String... alias)
Send an iOS notification with alias.
|
PushResult |
sendIosNotificationWithAlias(java.lang.String alert,
java.util.Map<java.lang.String,java.lang.String> extras,
java.lang.String... alias) |
PushResult |
sendIosNotificationWithAlias(java.lang.String alert,
SMS sms,
java.util.Map<java.lang.String,java.lang.String> extras,
java.lang.String... alias)
Send a notification to iOS with alias.
|
PushResult |
sendIosNotificationWithRegistrationID(IosAlert alert,
java.util.Map<java.lang.String,java.lang.String> extras,
java.lang.String... registrationID)
Send an iOS notification with registrationIds.
|
PushResult |
sendIosNotificationWithRegistrationID(IosAlert alert,
SMS sms,
java.util.Map<java.lang.String,java.lang.String> extras,
java.lang.String... registrationID)
Send an iOS notification with registrationIds.
|
PushResult |
sendIosNotificationWithRegistrationID(com.google.gson.JsonObject alert,
java.util.Map<java.lang.String,java.lang.String> extras,
java.lang.String... registrationID)
Send an iOS notification with registrationIds.
|
PushResult |
sendIosNotificationWithRegistrationID(com.google.gson.JsonObject alert,
SMS sms,
java.util.Map<java.lang.String,java.lang.String> extras,
java.lang.String... registrationID)
Send an iOS notification with registrationIds.
|
PushResult |
sendIosNotificationWithRegistrationID(java.lang.String alert,
java.util.Map<java.lang.String,java.lang.String> extras,
java.lang.String... registrationID) |
PushResult |
sendIosNotificationWithRegistrationID(java.lang.String alert,
SMS sms,
java.util.Map<java.lang.String,java.lang.String> extras,
java.lang.String... registrationID)
Send an iOS notification with registrationIds.
|
PushResult |
sendMessageAll(java.lang.String msgContent) |
PushResult |
sendMessageAll(java.lang.String msgContent,
SMS sms)
Send a message to all
If it doesn't received within the delay time,JPush will send a SMS to the corresponding users.
|
PushResult |
sendMessageWithRegistrationID(java.lang.String title,
java.lang.String msgContent,
SMS sms,
java.lang.String... registrationID)
Send a message with registrationIds.
|
PushResult |
sendMessageWithRegistrationID(java.lang.String title,
java.lang.String msgContent,
java.lang.String... registrationID) |
PushResult |
sendNotificationAll(java.lang.String alert) |
PushResult |
sendNotificationAll(java.lang.String alert,
SMS sms)
Send a notification to all.
|
PushResult |
sendPush(PushPayload pushPayload)
Send a push with PushPayload object.
|
PushResult |
sendPush(java.lang.String payloadString)
Send a push with JSON string.
|
PushResult |
sendPushValidate(PushPayload payload)
Validate a push action, but do NOT send it actually.
|
PushResult |
sendPushValidate(java.lang.String payloadString) |
cn.jiguang.common.resp.DefaultResult |
updateDeviceTagAlias(java.lang.String registrationId,
boolean clearAlias,
boolean clearTag) |
cn.jiguang.common.resp.DefaultResult |
updateDeviceTagAlias(java.lang.String registrationId,
java.lang.String alias,
java.util.Set<java.lang.String> tagsToAdd,
java.util.Set<java.lang.String> tagsToRemove) |
ScheduleResult |
updateSchedule(java.lang.String scheduleId,
SchedulePayload payload)
Update a schedule by the id.
|
ScheduleResult |
updateScheduleName(java.lang.String scheduleId,
java.lang.String name)
Update the schedule name
|
ScheduleResult |
updateSchedulePush(java.lang.String scheduleId,
PushPayload push)
Update the push content of the schedule.
|
ScheduleResult |
updateScheduleTrigger(java.lang.String scheduleId,
TriggerPayload trigger)
Update the trigger of the schedule.
|
public JPushClient(java.lang.String masterSecret,
java.lang.String appKey)
masterSecret - API access secret of the appKey.appKey - The KEY of one application on JPush.public JPushClient(java.lang.String masterSecret,
java.lang.String appKey,
cn.jiguang.common.connection.HttpProxy proxy,
cn.jiguang.common.ClientConfig conf)
masterSecret - API access secret of the appKey.appKey - The KEY of one application on JPush.proxy - The proxy, if there is no proxy, should be null.conf - The client configuration. Can use ClientConfig.getInstance() as default.@Deprecated
public JPushClient(java.lang.String masterSecret,
java.lang.String appKey,
int maxRetryTimes)
masterSecret - API access secret of the appKey.appKey - The KEY of one application on JPush.maxRetryTimes - The max retry times.@Deprecated
public JPushClient(java.lang.String masterSecret,
java.lang.String appKey,
int maxRetryTimes,
cn.jiguang.common.connection.HttpProxy proxy)
masterSecret - API access secret of the appKey.appKey - The KEY of one application on JPush.maxRetryTimes - The max retry times.proxy - The proxy, if there is no proxy, should be null.@Deprecated
public JPushClient(java.lang.String masterSecret,
java.lang.String appKey,
int maxRetryTimes,
cn.jiguang.common.connection.HttpProxy proxy,
cn.jiguang.common.ClientConfig conf)
masterSecret - API access secret of the appKey.appKey - The KEY of one application on JPush.maxRetryTimes - Client request retry times.proxy - The proxy, if there is no proxy, should be null.conf - The client configuration. Can use ClientConfig.getInstance() as default.@Deprecated
public JPushClient(java.lang.String masterSecret,
java.lang.String appKey,
int maxRetryTimes,
cn.jiguang.common.connection.HttpProxy proxy,
cn.jiguang.common.ClientConfig conf,
boolean apnsProduction,
long timeToLive)
masterSecret - API access secret of the appKey.appKey - The KEY of one application on JPush.maxRetryTimes - Client request retry times.proxy - The proxy, if there is no proxy, should be null.conf - The client configuration. Can use ClientConfig.getInstance() as default.apnsProduction - Global APNs environment setting. It will override PushPayload Options.timeToLive - Global time_to_live setting. It will override PushPayload Options.@Deprecated
public JPushClient(java.lang.String masterSecret,
java.lang.String appKey,
boolean apnsProduction,
long timeToLive)
masterSecret - API access secret of the appKey.appKey - The KEY of one application on JPush.apnsProduction - Global APNs environment setting. It will override PushPayload Options.timeToLive - Global time_to_live setting. It will override PushPayload Options.public PushClient getPushClient()
public PushResult sendPush(PushPayload pushPayload) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
pushPayload - payload object of a push.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendPush(java.lang.String payloadString) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
payloadString - payload of a push.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendPushValidate(PushPayload payload) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
payload - payload of a push.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendPushValidate(java.lang.String payloadString) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic CIDResult getCidList(int count, java.lang.String type) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
count - the count of cid list, from 1 to 1000. default is 1.type - default is push, option: schedulecn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionpublic ReceivedsResult getReportReceiveds(java.lang.String msgIds) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
msgIds - 100 msgids to batch getting is supported.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public UsersResult getReportUsers(cn.jiguang.common.TimeUnit timeUnit, java.lang.String start, int duration) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic MessagesResult getReportMessages(java.lang.String msgIds) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic java.util.Map<java.lang.String,MessageStatus> getMessageStatus(CheckMessagePayload payload) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendNotificationAll(java.lang.String alert) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendNotificationAll(java.lang.String alert, SMS sms) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The notification content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendAndroidNotificationWithAlias(java.lang.String title, java.lang.String alert, java.util.Map<java.lang.String,java.lang.String> extras, java.lang.String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendAndroidNotificationWithAlias(java.lang.String title, java.lang.String alert, SMS sms, java.util.Map<java.lang.String,java.lang.String> extras, java.lang.String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
title - The notification title.alert - The notification content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.extras - The extra parameter.alias - The users' alias.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendAndroidNotificationWithRegistrationID(java.lang.String title, java.lang.String alert, java.util.Map<java.lang.String,java.lang.String> extras, java.lang.String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendAndroidNotificationWithRegistrationID(java.lang.String title, java.lang.String alert, SMS sms, java.util.Map<java.lang.String,java.lang.String> extras, java.lang.String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
title - The notification title.alert - The notification content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.extras - The extra parameter.registrationID - The registration id generated by JPush.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithAlias(java.lang.String alert, java.util.Map<java.lang.String,java.lang.String> extras, java.lang.String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendIosNotificationWithAlias(java.lang.String alert, SMS sms, java.util.Map<java.lang.String,java.lang.String> extras, java.lang.String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The notification content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.extras - The extra parameter.alias - The users' alias.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithAlias(IosAlert alert, java.util.Map<java.lang.String,java.lang.String> extras, java.lang.String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The wrapper of APNs alert.extras - The extra params.alias - The alias list.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithAlias(IosAlert alert, SMS sms, java.util.Map<java.lang.String,java.lang.String> extras, java.lang.String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The wrapper of APNs alert.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.extras - The extra params.alias - The alias list.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithAlias(com.google.gson.JsonObject alert, java.util.Map<java.lang.String,java.lang.String> extras, java.lang.String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The JSON object of APNs alert.extras - The extra params.alias - The alias list.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithAlias(com.google.gson.JsonObject alert, SMS sms, java.util.Map<java.lang.String,java.lang.String> extras, java.lang.String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The JSON object of APNs alert.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.extras - The extra params.alias - The alias list.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithRegistrationID(java.lang.String alert, java.util.Map<java.lang.String,java.lang.String> extras, java.lang.String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendIosNotificationWithRegistrationID(java.lang.String alert, SMS sms, java.util.Map<java.lang.String,java.lang.String> extras, java.lang.String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The notification content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.extras - The extra params.registrationID - The alias list.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithRegistrationID(IosAlert alert, java.util.Map<java.lang.String,java.lang.String> extras, java.lang.String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The wrapper of APNs alert.extras - The extra params.registrationID - The registration ids.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithRegistrationID(IosAlert alert, SMS sms, java.util.Map<java.lang.String,java.lang.String> extras, java.lang.String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The wrapper of APNs alert.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.extras - The extra params.registrationID - The registration ids.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithRegistrationID(com.google.gson.JsonObject alert, java.util.Map<java.lang.String,java.lang.String> extras, java.lang.String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The wrapper of APNs alert.extras - The extra params.registrationID - The registration ids.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithRegistrationID(com.google.gson.JsonObject alert, SMS sms, java.util.Map<java.lang.String,java.lang.String> extras, java.lang.String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
alert - The JSON object of APNs alert.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.extras - The extra params.registrationID - The registration ids.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendMessageAll(java.lang.String msgContent) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendMessageAll(java.lang.String msgContent, SMS sms) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
msgContent - The message content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendAndroidMessageWithAlias(java.lang.String title, java.lang.String msgContent, java.lang.String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendAndroidMessageWithAlias(java.lang.String title, java.lang.String msgContent, SMS sms, java.lang.String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
title - The message title.msgContent - The message content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.alias - The alias list.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendAndroidMessageWithRegistrationID(java.lang.String title, java.lang.String msgContent, java.lang.String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendAndroidMessageWithRegistrationID(java.lang.String title, java.lang.String msgContent, SMS sms, java.lang.String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
title - The message title.msgContent - The message content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.registrationID - The registration id list.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosMessageWithAlias(java.lang.String title, java.lang.String msgContent, java.lang.String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendIosMessageWithAlias(java.lang.String title, java.lang.String msgContent, SMS sms, java.lang.String... alias) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
title - The message title.msgContent - The message content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.alias - The alias list.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendIosMessageWithRegistrationID(java.lang.String title, java.lang.String msgContent, java.lang.String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendIosMessageWithRegistrationID(java.lang.String title, java.lang.String msgContent, SMS sms, java.lang.String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
title - The message title.msgContent - The message content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.registrationID - The registrationIds generated by JPush.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public PushResult sendMessageWithRegistrationID(java.lang.String title, java.lang.String msgContent, java.lang.String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic PushResult sendMessageWithRegistrationID(java.lang.String title, java.lang.String msgContent, SMS sms, java.lang.String... registrationID) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
title - The message title.msgContent - The message content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.registrationID - The registrationIds generated by JPush.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public TagAliasResult getDeviceTagAlias(java.lang.String registrationId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult updateDeviceTagAlias(java.lang.String registrationId,
boolean clearAlias,
boolean clearTag)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult updateDeviceTagAlias(java.lang.String registrationId,
java.lang.String alias,
java.util.Set<java.lang.String> tagsToAdd,
java.util.Set<java.lang.String> tagsToRemove)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic TagListResult getTagList() throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.BooleanResult isDeviceInTag(java.lang.String theTag,
java.lang.String registrationID)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult addRemoveDevicesFromTag(java.lang.String theTag,
java.util.Set<java.lang.String> toAddUsers,
java.util.Set<java.lang.String> toRemoveUsers)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult deleteTag(java.lang.String theTag,
java.lang.String platform)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic AliasDeviceListResult getAliasDeviceList(java.lang.String alias, java.lang.String platform) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult deleteAlias(java.lang.String alias,
java.lang.String platform)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic java.util.Map<java.lang.String,OnlineStatus> getUserOnlineStatus(java.lang.String... registrationIds) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.DefaultResult bindMobile(java.lang.String registrationId,
java.lang.String mobile)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic ScheduleResult createSingleSchedule(java.lang.String name, java.lang.String time, PushPayload push) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
name - The schedule name.time - The push time, format is 'yyyy-MM-dd HH:mm:ss'push - The push payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult createDailySchedule(java.lang.String name, java.lang.String start, java.lang.String end, java.lang.String time, PushPayload push) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
name - The schedule name.start - The schedule comes into effect date, format 'yyyy-MM-dd HH:mm:ss'.end - The schedule expiration date, format 'yyyy-MM-dd HH:mm:ss'.time - The push time, format 'HH:mm:ss'push - The push payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult createDailySchedule(java.lang.String name, java.lang.String start, java.lang.String end, java.lang.String time, int frequency, PushPayload push) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
name - The schedule name.start - The schedule comes into effect date, format 'yyyy-MM-dd HH:mm:ss'.end - The schedule expiration date, format 'yyyy-MM-dd HH:mm:ss'.time - The push time, format 'HH:mm:ss'frequency - The custom frequency.push - The push payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult createWeeklySchedule(java.lang.String name, java.lang.String start, java.lang.String end, java.lang.String time, cn.jiguang.common.Week[] days, PushPayload push) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
name - The schedule name.start - The schedule comes into effect date, format 'yyyy-MM-dd HH:mm:ss'.end - The schedule expiration date, format 'yyyy-MM-dd HH:mm:ss'.time - The push time, format 'HH:mm:ss'days - The appointed days.push - The push payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult createWeeklySchedule(java.lang.String name, java.lang.String start, java.lang.String end, java.lang.String time, int frequency, cn.jiguang.common.Week[] days, PushPayload push) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
name - The schedule name.start - The schedule comes into effect date, format 'yyyy-MM-dd HH:mm:ss'.end - The schedule expiration date, format 'yyyy-MM-dd HH:mm:ss'.time - The push time, format 'HH:mm:ss'.frequency - The custom frequency.days - The appointed days.push - The push payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult createMonthlySchedule(java.lang.String name, java.lang.String start, java.lang.String end, java.lang.String time, java.lang.String[] points, PushPayload push) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
name - The schedule name.start - The schedule comes into effect date, format 'yyyy-MM-dd HH:mm:ss'.end - The schedule expiration date, format 'yyyy-MM-dd HH:mm:ss'.time - The push time, format 'HH:mm:ss'.points - The appointed days.push - The push payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult createMonthlySchedule(java.lang.String name, java.lang.String start, java.lang.String end, java.lang.String time, int frequency, java.lang.String[] points, PushPayload push) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
name - The schedule name.start - The schedule comes into effect date, format 'yyyy-MM-dd HH:mm:ss'.end - The schedule expiration date, format 'yyyy-MM-dd HH:mm:ss'.time - The push time, format 'HH:mm:ss'.frequency - The custom frequency.points - The appointed days.push - The push payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult getSchedule(java.lang.String scheduleId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
scheduleId - The schedule id.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleListResult getScheduleList() throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleListResult getScheduleList(int page) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
page - The page to search.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult updateScheduleName(java.lang.String scheduleId, java.lang.String name) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
scheduleId - The schedule id.name - The new name.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult enableSchedule(java.lang.String scheduleId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
scheduleId - The schedule id.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult disableSchedule(java.lang.String scheduleId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
scheduleId - The schedule id.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult updateScheduleTrigger(java.lang.String scheduleId, TriggerPayload trigger) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
scheduleId - The schedule id.trigger - The new trigger.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult updateSchedulePush(java.lang.String scheduleId, PushPayload push) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
scheduleId - The schedule id.push - The new push payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public ScheduleResult updateSchedule(java.lang.String scheduleId, SchedulePayload payload) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
scheduleId - The schedule id to update.payload - The new schedule payload.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public void deleteSchedule(java.lang.String scheduleId)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
scheduleId - The schedule id.cn.jiguang.common.resp.APIConnectionException - if a remote or network exception occurs.cn.jiguang.common.resp.APIRequestException - if a request exception occurs.public void close()
Copyright © 2018. All Rights Reserved.