public class AdminClient extends Object
| Constructor and Description |
|---|
AdminClient(String appKey,
String masterSecret)
Create a Push Client.
|
AdminClient(String appKey,
String masterSecret,
cn.jiguang.common.connection.HttpProxy proxy) |
AdminClient(String appKey,
String masterSecret,
cn.jiguang.common.connection.HttpProxy proxy,
JPushConfig conf) |
| Modifier and Type | Method and Description |
|---|---|
CreateAppResult |
createApp(String appName,
String packageName,
String groupName)
Create an app under developer account
|
AppResult |
deleteApp(String appKey)
Delete app by app key
|
void |
setHttpClient(cn.jiguang.common.connection.IHttpClient client) |
public AdminClient(String appKey, String masterSecret)
appKey - The KEY of one application on JPush.masterSecret - API access secret of the appKey.public AdminClient(String appKey, String masterSecret, cn.jiguang.common.connection.HttpProxy proxy)
public AdminClient(String appKey, String masterSecret, cn.jiguang.common.connection.HttpProxy proxy, JPushConfig conf)
public void setHttpClient(cn.jiguang.common.connection.IHttpClient client)
public CreateAppResult createApp(String appName, String packageName, String groupName) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
appName - app namepackageName - android package namegroupName - developer app group nameCreateAppResultcn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionpublic AppResult deleteApp(String appKey) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
appKey - app keyAppResultcn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionCopyright © 2020. All rights reserved.