public class JPushClient extends Object
| 构造器和说明 |
|---|
JPushClient(String masterSecret,
String appKey)
Create a JPush Client.
|
JPushClient(String masterSecret,
String appKey,
boolean apnsProduction,
long timeToLive)
已过时。
|
JPushClient(String masterSecret,
String appKey,
HttpProxy proxy,
ClientConfig conf)
Create a JPush Client by custom Client configuration.
|
JPushClient(String masterSecret,
String appKey,
int maxRetryTimes)
已过时。
|
JPushClient(String masterSecret,
String appKey,
int maxRetryTimes,
HttpProxy proxy)
已过时。
|
JPushClient(String masterSecret,
String appKey,
int maxRetryTimes,
HttpProxy proxy,
ClientConfig conf)
已过时。
|
JPushClient(String masterSecret,
String appKey,
int maxRetryTimes,
HttpProxy proxy,
ClientConfig conf,
boolean apnsProduction,
long timeToLive)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
DefaultResult |
addRemoveDevicesFromTag(String theTag,
Set<String> toAddUsers,
Set<String> toRemoveUsers) |
DefaultResult |
bindMobile(String registrationId,
String mobile) |
ScheduleResult |
createDailySchedule(String name,
String start,
String end,
String time,
int frequency,
PushPayload push)
Create a daily schedule push with a custom frequency.
|
ScheduleResult |
createDailySchedule(String name,
String start,
String end,
String time,
PushPayload push)
Create a daily schedule push everyday.
|
ScheduleResult |
createMonthlySchedule(String name,
String start,
String end,
String time,
int frequency,
String[] points,
PushPayload push)
Create a monthly schedule push with a custom frequency at the appointed days.
|
ScheduleResult |
createMonthlySchedule(String name,
String start,
String end,
String time,
String[] points,
PushPayload push)
Create a monthly schedule push every month at the appointed days.
|
ScheduleResult |
createSingleSchedule(String name,
String time,
PushPayload push)
Create a single schedule.
|
ScheduleResult |
createWeeklySchedule(String name,
String start,
String end,
String time,
int frequency,
Week[] days,
PushPayload push)
Create a weekly schedule push with a custom frequency at the appointed days.
|
ScheduleResult |
createWeeklySchedule(String name,
String start,
String end,
String time,
Week[] days,
PushPayload push)
Create a weekly schedule push every week at the appointed days.
|
DefaultResult |
deleteAlias(String alias,
String platform) |
void |
deleteSchedule(String scheduleId)
Delete a schedule by id.
|
DefaultResult |
deleteTag(String theTag,
String platform) |
ScheduleResult |
disableSchedule(String scheduleId)
Disable the schedule.
|
ScheduleResult |
enableSchedule(String scheduleId)
Enable the schedule.
|
AliasDeviceListResult |
getAliasDeviceList(String alias,
String platform) |
TagAliasResult |
getDeviceTagAlias(String registrationId) |
MessagesResult |
getReportMessages(String msgIds) |
ReceivedsResult |
getReportReceiveds(String msgIds)
Get received report.
|
UsersResult |
getReportUsers(TimeUnit timeUnit,
String start,
int duration) |
ScheduleResult |
getSchedule(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() |
Map<String,OnlineStatus> |
getUserOnlineStatus(String... registrationIds) |
BooleanResult |
isDeviceInTag(String theTag,
String registrationID) |
PushResult |
sendAndroidMessageWithAlias(String title,
String msgContent,
SMS sms,
String... alias)
Send an Android message with alias.
|
PushResult |
sendAndroidMessageWithAlias(String title,
String msgContent,
String... alias) |
PushResult |
sendAndroidMessageWithRegistrationID(String title,
String msgContent,
SMS sms,
String... registrationID)
Send an Android message with registration id.
|
PushResult |
sendAndroidMessageWithRegistrationID(String title,
String msgContent,
String... registrationID) |
PushResult |
sendAndroidNotificationWithAlias(String title,
String alert,
Map<String,String> extras,
String... alias) |
PushResult |
sendAndroidNotificationWithAlias(String title,
String alert,
SMS sms,
Map<String,String> extras,
String... alias)
Send a notification to Android with alias.
|
PushResult |
sendAndroidNotificationWithRegistrationID(String title,
String alert,
Map<String,String> extras,
String... registrationID) |
PushResult |
sendAndroidNotificationWithRegistrationID(String title,
String alert,
SMS sms,
Map<String,String> extras,
String... registrationID)
Send a notification to Android with RegistrationID.
|
PushResult |
sendIosMessageWithAlias(String title,
String msgContent,
SMS sms,
String... alias)
Send an iOS message with alias.
|
PushResult |
sendIosMessageWithAlias(String title,
String msgContent,
String... alias) |
PushResult |
sendIosMessageWithRegistrationID(String title,
String msgContent,
SMS sms,
String... registrationID)
Send an iOS message with registration id.
|
PushResult |
sendIosMessageWithRegistrationID(String title,
String msgContent,
String... registrationID) |
PushResult |
sendIosNotificationWithAlias(IosAlert alert,
Map<String,String> extras,
String... alias)
Send an iOS notification with alias.
|
PushResult |
sendIosNotificationWithAlias(IosAlert alert,
SMS sms,
Map<String,String> extras,
String... alias)
Send an iOS notification with alias.
|
PushResult |
sendIosNotificationWithAlias(com.google.gson.JsonObject alert,
Map<String,String> extras,
String... alias)
Send an iOS notification with alias.
|
PushResult |
sendIosNotificationWithAlias(com.google.gson.JsonObject alert,
SMS sms,
Map<String,String> extras,
String... alias)
Send an iOS notification with alias.
|
PushResult |
sendIosNotificationWithAlias(String alert,
Map<String,String> extras,
String... alias) |
PushResult |
sendIosNotificationWithAlias(String alert,
SMS sms,
Map<String,String> extras,
String... alias)
Send a notification to iOS with alias.
|
PushResult |
sendIosNotificationWithRegistrationID(IosAlert alert,
Map<String,String> extras,
String... registrationID)
Send an iOS notification with registrationIds.
|
PushResult |
sendIosNotificationWithRegistrationID(IosAlert alert,
SMS sms,
Map<String,String> extras,
String... registrationID)
Send an iOS notification with registrationIds.
|
PushResult |
sendIosNotificationWithRegistrationID(com.google.gson.JsonObject alert,
Map<String,String> extras,
String... registrationID)
Send an iOS notification with registrationIds.
|
PushResult |
sendIosNotificationWithRegistrationID(com.google.gson.JsonObject alert,
SMS sms,
Map<String,String> extras,
String... registrationID)
Send an iOS notification with registrationIds.
|
PushResult |
sendIosNotificationWithRegistrationID(String alert,
Map<String,String> extras,
String... registrationID) |
PushResult |
sendIosNotificationWithRegistrationID(String alert,
SMS sms,
Map<String,String> extras,
String... registrationID)
Send an iOS notification with registrationIds.
|
PushResult |
sendMessageAll(String msgContent) |
PushResult |
sendMessageAll(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(String title,
String msgContent,
SMS sms,
String... registrationID)
Send a message with registrationIds.
|
PushResult |
sendMessageWithRegistrationID(String title,
String msgContent,
String... registrationID) |
PushResult |
sendNotificationAll(String alert) |
PushResult |
sendNotificationAll(String alert,
SMS sms)
Send a notification to all.
|
PushResult |
sendPush(PushPayload pushPayload)
Send a push with PushPayload object.
|
PushResult |
sendPush(String payloadString)
Send a push with JSON string.
|
PushResult |
sendPushValidate(PushPayload payload)
Validate a push action, but do NOT send it actually.
|
PushResult |
sendPushValidate(String payloadString) |
DefaultResult |
updateDeviceTagAlias(String registrationId,
boolean clearAlias,
boolean clearTag) |
DefaultResult |
updateDeviceTagAlias(String registrationId,
String alias,
Set<String> tagsToAdd,
Set<String> tagsToRemove) |
ScheduleResult |
updateSchedule(String scheduleId,
SchedulePayload payload)
Update a schedule by the id.
|
ScheduleResult |
updateScheduleName(String scheduleId,
String name)
Update the schedule name
|
ScheduleResult |
updateSchedulePush(String scheduleId,
PushPayload push)
Update the push content of the schedule.
|
ScheduleResult |
updateScheduleTrigger(String scheduleId,
TriggerPayload trigger)
Update the trigger of the schedule.
|
public JPushClient(String masterSecret, String appKey)
masterSecret - API access secret of the appKey.appKey - The KEY of one application on JPush.public JPushClient(String masterSecret, String appKey, HttpProxy proxy, 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(String masterSecret, String appKey, int maxRetryTimes)
ClientConfig.setMaxRetryTimes(int) instead of this constructor.masterSecret - API access secret of the appKey.appKey - The KEY of one application on JPush.maxRetryTimes - The max retry times.@Deprecated public JPushClient(String masterSecret, String appKey, int maxRetryTimes, HttpProxy proxy)
ClientConfig.setMaxRetryTimes(int) instead of this constructor.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(String masterSecret, String appKey, int maxRetryTimes, HttpProxy proxy, ClientConfig conf)
ClientConfig.setMaxRetryTimes(int) instead of this constructor.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(String masterSecret, String appKey, int maxRetryTimes, HttpProxy proxy, ClientConfig conf, boolean apnsProduction, long timeToLive)
ClientConfig.setGlobalPushSetting(boolean, long) instead of this constructor.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(String masterSecret, String appKey, boolean apnsProduction, long timeToLive)
ClientConfig.setGlobalPushSetting(boolean, long) instead of this constructor.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 PushResult sendPush(PushPayload pushPayload) throws APIConnectionException, APIRequestException
pushPayload - payload object of a push.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendPush(String payloadString) throws APIConnectionException, APIRequestException
payloadString - payload of a push.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendPushValidate(PushPayload payload) throws APIConnectionException, APIRequestException
payload - payload of a push.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendPushValidate(String payloadString) throws APIConnectionException, APIRequestException
public ReceivedsResult getReportReceiveds(String msgIds) throws APIConnectionException, APIRequestException
msgIds - 100 msgids to batch getting is supported.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public UsersResult getReportUsers(TimeUnit timeUnit, String start, int duration) throws APIConnectionException, APIRequestException
public MessagesResult getReportMessages(String msgIds) throws APIConnectionException, APIRequestException
public PushResult sendNotificationAll(String alert) throws APIConnectionException, APIRequestException
public PushResult sendNotificationAll(String alert, SMS sms) throws APIConnectionException, APIRequestException
alert - The notification content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendAndroidNotificationWithAlias(String title, String alert, Map<String,String> extras, String... alias) throws APIConnectionException, APIRequestException
public PushResult sendAndroidNotificationWithAlias(String title, String alert, SMS sms, Map<String,String> extras, String... alias) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendAndroidNotificationWithRegistrationID(String title, String alert, Map<String,String> extras, String... registrationID) throws APIConnectionException, APIRequestException
public PushResult sendAndroidNotificationWithRegistrationID(String title, String alert, SMS sms, Map<String,String> extras, String... registrationID) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithAlias(String alert, Map<String,String> extras, String... alias) throws APIConnectionException, APIRequestException
public PushResult sendIosNotificationWithAlias(String alert, SMS sms, Map<String,String> extras, String... alias) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithAlias(IosAlert alert, Map<String,String> extras, String... alias) throws APIConnectionException, APIRequestException
alert - The wrapper of APNs alert.extras - The extra params.alias - The alias list.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithAlias(IosAlert alert, SMS sms, Map<String,String> extras, String... alias) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithAlias(com.google.gson.JsonObject alert, Map<String,String> extras, String... alias) throws APIConnectionException, APIRequestException
alert - The JSON object of APNs alert.extras - The extra params.alias - The alias list.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithAlias(com.google.gson.JsonObject alert, SMS sms, Map<String,String> extras, String... alias) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithRegistrationID(String alert, Map<String,String> extras, String... registrationID) throws APIConnectionException, APIRequestException
public PushResult sendIosNotificationWithRegistrationID(String alert, SMS sms, Map<String,String> extras, String... registrationID) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithRegistrationID(IosAlert alert, Map<String,String> extras, String... registrationID) throws APIConnectionException, APIRequestException
alert - The wrapper of APNs alert.extras - The extra params.registrationID - The registration ids.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithRegistrationID(IosAlert alert, SMS sms, Map<String,String> extras, String... registrationID) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithRegistrationID(com.google.gson.JsonObject alert, Map<String,String> extras, String... registrationID) throws APIConnectionException, APIRequestException
alert - The wrapper of APNs alert.extras - The extra params.registrationID - The registration ids.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendIosNotificationWithRegistrationID(com.google.gson.JsonObject alert, SMS sms, Map<String,String> extras, String... registrationID) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendMessageAll(String msgContent) throws APIConnectionException, APIRequestException
public PushResult sendMessageAll(String msgContent, SMS sms) throws APIConnectionException, APIRequestException
msgContent - The message content.sms - The SMS content and delay time. If null, sms doesn't work, no effect on Push feature.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendAndroidMessageWithAlias(String title, String msgContent, String... alias) throws APIConnectionException, APIRequestException
public PushResult sendAndroidMessageWithAlias(String title, String msgContent, SMS sms, String... alias) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendAndroidMessageWithRegistrationID(String title, String msgContent, String... registrationID) throws APIConnectionException, APIRequestException
public PushResult sendAndroidMessageWithRegistrationID(String title, String msgContent, SMS sms, String... registrationID) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendIosMessageWithAlias(String title, String msgContent, String... alias) throws APIConnectionException, APIRequestException
public PushResult sendIosMessageWithAlias(String title, String msgContent, SMS sms, String... alias) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendIosMessageWithRegistrationID(String title, String msgContent, String... registrationID) throws APIConnectionException, APIRequestException
public PushResult sendIosMessageWithRegistrationID(String title, String msgContent, SMS sms, String... registrationID) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public PushResult sendMessageWithRegistrationID(String title, String msgContent, String... registrationID) throws APIConnectionException, APIRequestException
public PushResult sendMessageWithRegistrationID(String title, String msgContent, SMS sms, String... registrationID) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public TagAliasResult getDeviceTagAlias(String registrationId) throws APIConnectionException, APIRequestException
public DefaultResult updateDeviceTagAlias(String registrationId, boolean clearAlias, boolean clearTag) throws APIConnectionException, APIRequestException
public DefaultResult updateDeviceTagAlias(String registrationId, String alias, Set<String> tagsToAdd, Set<String> tagsToRemove) throws APIConnectionException, APIRequestException
public TagListResult getTagList() throws APIConnectionException, APIRequestException
public BooleanResult isDeviceInTag(String theTag, String registrationID) throws APIConnectionException, APIRequestException
public DefaultResult addRemoveDevicesFromTag(String theTag, Set<String> toAddUsers, Set<String> toRemoveUsers) throws APIConnectionException, APIRequestException
public DefaultResult deleteTag(String theTag, String platform) throws APIConnectionException, APIRequestException
public AliasDeviceListResult getAliasDeviceList(String alias, String platform) throws APIConnectionException, APIRequestException
public DefaultResult deleteAlias(String alias, String platform) throws APIConnectionException, APIRequestException
public Map<String,OnlineStatus> getUserOnlineStatus(String... registrationIds) throws APIConnectionException, APIRequestException
public DefaultResult bindMobile(String registrationId, String mobile) throws APIConnectionException, APIRequestException
public ScheduleResult createSingleSchedule(String name, String time, PushPayload push) throws APIConnectionException, APIRequestException
name - The schedule name.time - The push time, format is 'yyyy-MM-dd HH:mm:ss'push - The push payload.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public ScheduleResult createDailySchedule(String name, String start, String end, String time, PushPayload push) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public ScheduleResult createDailySchedule(String name, String start, String end, String time, int frequency, PushPayload push) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public ScheduleResult createWeeklySchedule(String name, String start, String end, String time, Week[] days, PushPayload push) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public ScheduleResult createWeeklySchedule(String name, String start, String end, String time, int frequency, Week[] days, PushPayload push) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public ScheduleResult createMonthlySchedule(String name, String start, String end, String time, String[] points, PushPayload push) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public ScheduleResult createMonthlySchedule(String name, String start, String end, String time, int frequency, String[] points, PushPayload push) throws APIConnectionException, 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.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public ScheduleResult getSchedule(String scheduleId) throws APIConnectionException, APIRequestException
scheduleId - The schedule id.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public ScheduleListResult getScheduleList() throws APIConnectionException, APIRequestException
APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public ScheduleListResult getScheduleList(int page) throws APIConnectionException, APIRequestException
page - The page to search.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public ScheduleResult updateScheduleName(String scheduleId, String name) throws APIConnectionException, APIRequestException
scheduleId - The schedule id.name - The new name.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public ScheduleResult enableSchedule(String scheduleId) throws APIConnectionException, APIRequestException
scheduleId - The schedule id.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public ScheduleResult disableSchedule(String scheduleId) throws APIConnectionException, APIRequestException
scheduleId - The schedule id.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public ScheduleResult updateScheduleTrigger(String scheduleId, TriggerPayload trigger) throws APIConnectionException, APIRequestException
scheduleId - The schedule id.trigger - The new trigger.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public ScheduleResult updateSchedulePush(String scheduleId, PushPayload push) throws APIConnectionException, APIRequestException
scheduleId - The schedule id.push - The new push payload.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public ScheduleResult updateSchedule(String scheduleId, SchedulePayload payload) throws APIConnectionException, APIRequestException
scheduleId - The schedule id to update.payload - The new schedule payload.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.public void deleteSchedule(String scheduleId) throws APIConnectionException, APIRequestException
scheduleId - The schedule id.APIConnectionException - if a remote or network exception occurs.APIRequestException - if a request exception occurs.Copyright © 2016. All Rights Reserved.