public getDeviceTagAlias ( String registrationId ) : cn.jpush.api.device.TagAliasResult | ||
registrationId | String | |
return | cn.jpush.api.device.TagAliasResult |
public TagAliasResult getDeviceTagAlias(String registrationId)
{
Preconditions.checkArgument(!String.IsNullOrEmpty(registrationId), "registrationId should be set");
String url = HOST_NAME_SSL + DEVICES_PATH + "/" + registrationId;
String auth = Base64.getBase64Encode(this.appKey + ":" + this.masterSecret);
ResponseWrapper response = this.sendGet(url, auth, null);
return TagAliasResult.fromResponse(response);
}
public void getDeviceTagAliasTest() { DeviceClient client = new DeviceClient(APP_KEY, MASTER_SECRET); client.getDeviceTagAlias(REGISTRATION_ID1); }