public class GroupClient extends BaseClient
_baseUrl, _httpClient| 构造器和说明 |
|---|
GroupClient(String appkey,
String masterSecret)
Create a Group Client with default parameters.
|
GroupClient(String appkey,
String masterSecret,
cn.jpush.api.common.connection.HttpProxy proxy)
Create a Group Client with a proxy.
|
GroupClient(String appkey,
String masterSecret,
cn.jpush.api.common.connection.HttpProxy proxy,
JMessageConfig config)
Create a Group Client by custom config.
|
| 限定符和类型 | 方法和说明 |
|---|---|
cn.jpush.api.common.resp.ResponseWrapper |
addOrRemoveMembers(long gid,
Members add,
Members remove) |
CreateGroupResult |
createGroup(GroupPayload payload) |
cn.jpush.api.common.resp.ResponseWrapper |
deleteGroup(long gid) |
GroupInfoResult |
getGroupInfo(long gid) |
GroupListResult |
getGroupListByAppkey(int start,
int count) |
MemberListResult |
getGroupMembers(long gid) |
cn.jpush.api.common.resp.ResponseWrapper |
updateGroupInfo(long gid,
String groupName,
String groupDesc) |
public GroupClient(String appkey, String masterSecret)
appkey - The key of one application on JPush.masterSecret - API access secret of the appKey.public GroupClient(String appkey, String masterSecret, cn.jpush.api.common.connection.HttpProxy proxy)
appkey - The key of one application on JPush.masterSecret - API access secret of the appKey.proxy - The proxy, if there is no proxy, should be null.public GroupClient(String appkey, String masterSecret, cn.jpush.api.common.connection.HttpProxy proxy, JMessageConfig config)
appkey - The key of one application on JPush.masterSecret - API access secret of the appKey.proxy - The proxy, if there is no proxy, should be null.config - The client configuration. Can use JMessageConfig.getInstance() as default.public GroupInfoResult getGroupInfo(long gid) throws cn.jpush.api.common.resp.APIConnectionException, cn.jpush.api.common.resp.APIRequestException
cn.jpush.api.common.resp.APIConnectionExceptioncn.jpush.api.common.resp.APIRequestExceptionpublic MemberListResult getGroupMembers(long gid) throws cn.jpush.api.common.resp.APIConnectionException, cn.jpush.api.common.resp.APIRequestException
cn.jpush.api.common.resp.APIConnectionExceptioncn.jpush.api.common.resp.APIRequestExceptionpublic GroupListResult getGroupListByAppkey(int start, int count) throws cn.jpush.api.common.resp.APIConnectionException, cn.jpush.api.common.resp.APIRequestException
cn.jpush.api.common.resp.APIConnectionExceptioncn.jpush.api.common.resp.APIRequestExceptionpublic CreateGroupResult createGroup(GroupPayload payload) throws cn.jpush.api.common.resp.APIConnectionException, cn.jpush.api.common.resp.APIRequestException
cn.jpush.api.common.resp.APIConnectionExceptioncn.jpush.api.common.resp.APIRequestExceptionpublic cn.jpush.api.common.resp.ResponseWrapper addOrRemoveMembers(long gid,
Members add,
Members remove)
throws cn.jpush.api.common.resp.APIConnectionException,
cn.jpush.api.common.resp.APIRequestException
cn.jpush.api.common.resp.APIConnectionExceptioncn.jpush.api.common.resp.APIRequestExceptionpublic cn.jpush.api.common.resp.ResponseWrapper deleteGroup(long gid)
throws cn.jpush.api.common.resp.APIConnectionException,
cn.jpush.api.common.resp.APIRequestException
cn.jpush.api.common.resp.APIConnectionExceptioncn.jpush.api.common.resp.APIRequestExceptionpublic cn.jpush.api.common.resp.ResponseWrapper updateGroupInfo(long gid,
String groupName,
String groupDesc)
throws cn.jpush.api.common.resp.APIConnectionException,
cn.jpush.api.common.resp.APIRequestException
cn.jpush.api.common.resp.APIConnectionExceptioncn.jpush.api.common.resp.APIRequestExceptionCopyright © 2016. All Rights Reserved.