|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcn.jpush.api.JPushClient
public class JPushClient
The global entrance of JPush API library.
| 构造方法摘要 | |
|---|---|
JPushClient(String masterSecret,
String appKey)
Create a JPush Client. |
|
JPushClient(String masterSecret,
String appKey,
boolean apnsProduction,
long timeToLive)
Create a JPush Client with global settings. |
|
JPushClient(String masterSecret,
String appKey,
int maxRetryTimes)
|
|
JPushClient(String masterSecret,
String appKey,
int maxRetryTimes,
HttpProxy proxy)
|
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
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,
int maxRetryTimes)
public JPushClient(String masterSecret,
String appKey,
int maxRetryTimes,
HttpProxy proxy)
public JPushClient(String masterSecret,
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 PushResult sendPush(PushPayload pushPayload)
throws APIConnectionException,
APIRequestException
pushPayload - payload object of a push.
APIConnectionException
APIRequestException
public PushResult sendPush(String payloadString)
throws APIConnectionException,
APIRequestException
payloadString - payload of a push.
APIConnectionException
APIRequestException
public PushResult sendPushValidate(PushPayload paylaod)
throws APIConnectionException,
APIRequestException
paylaod -
APIConnectionException
APIRequestException
public PushResult sendPushValidate(String payloadString)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public ReceivedsResult getReportReceiveds(String msgIds)
throws APIConnectionException,
APIRequestException
msgIds - 100 msgids to batch getting is supported.
APIConnectionException
APIRequestException
public UsersResult getReportUsers(TimeUnit timeUnit,
String start,
int duration)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public MessagesResult getReportMessages(String msgIds)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public PushResult sendNotificationAll(String alert)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public PushResult sendAndroidNotificationWithAlias(String title,
String alert,
Map<String,String> extras,
String... alias)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public PushResult sendAndroidNotificationWithRegistrationID(String title,
String alert,
Map<String,String> extras,
String... registrationID)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public PushResult sendIosNotificationWithAlias(String alert,
Map<String,String> extras,
String... alias)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public PushResult sendIosNotificationWithRegistrationID(String alert,
Map<String,String> extras,
String... registrationID)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public PushResult sendMessageAll(String msgContent)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public PushResult sendAndroidMessageWithAlias(String title,
String msgContent,
String... alias)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public PushResult sendAndroidMessageWithRegistrationID(String title,
String msgContent,
String... registrationID)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public PushResult sendIosMessageWithAlias(String title,
String msgContent,
String... alias)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public PushResult sendIosMessageWithRegistrationID(String title,
String msgContent,
String... registrationID)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public PushResult sendMessageWithRegistrationID(String title,
String msgContent,
String... registrationID)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public TagAliasResult getDeviceTagAlias(String registrationId)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public DefaultResult updateDeviceTagAlias(String registrationId,
boolean clearAlias,
boolean clearTag)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public DefaultResult updateDeviceTagAlias(String registrationId,
String alias,
Set<String> tagsToAdd,
Set<String> tagsToRemove)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public TagListResult getTagList()
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public BooleanResult isDeviceInTag(String theTag,
String registrationID)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public DefaultResult addRemoveDevicesFromTag(String theTag,
Set<String> toAddUsers,
Set<String> toRemoveUsers)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public DefaultResult deleteTag(String theTag,
String platform)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public AliasDeviceListResult getAliasDeviceList(String alias,
String platform)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
public DefaultResult deleteAlias(String alias,
String platform)
throws APIConnectionException,
APIRequestException
APIConnectionException
APIRequestException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||