Package cn.jpush.api.common

Examples of cn.jpush.api.common.ResponseWrapper$ErrorObject


    public ReceivedsResult getReceiveds(String msgIds)
            throws APIConnectionException, APIRequestException {
        checkMsgids(msgIds);
       
        String url = REPORT_HOST_NAME + REPORT_RECEIVE_PATH + "?msg_ids=" + msgIds;
        ResponseWrapper response = _httpClient.sendGet(url, null);
       
        return ReceivedsResult.fromResponse(response);
  }
View Full Code Here


    public MessagesResult getMessages(String msgIds)
            throws APIConnectionException, APIRequestException {
        checkMsgids(msgIds);
       
        String url = REPORT_HOST_NAME + REPORT_MESSAGE_PATH + "?msg_ids=" + msgIds;
        ResponseWrapper response = _httpClient.sendGet(url, null);
       
        return MessagesResult.fromResponse(response);
    }
View Full Code Here

        }
       
        String url = REPORT_HOST_NAME + REPORT_USER_PATH
                + "?time_unit=" + timeUnit.toString()
                + "&start=" + startEncoded + "&duration=" + duration;
        ResponseWrapper response = _httpClient.sendGet(url, null);
       
        return UsersResult.fromResponse(response);
    }
View Full Code Here

        if (_globalSettingEnabled) {
            pushPayload.resetOptionsTimeToLive(_timeToLive);
            pushPayload.resetOptionsApnsProduction(_apnsProduction);
        }
       
        ResponseWrapper response = _httpClient.sendPost(_baseUrl, pushPayload.toString());
       
        return PushResult.fromResponse(response);
    }
View Full Code Here

            _jsonParser.parse(payloadString);
        } catch (JsonParseException e) {
            Preconditions.checkArgument(false, "payloadString should be a valid JSON string.");
        }
       
        ResponseWrapper response = _httpClient.sendPost(_baseUrl, payloadString);
       
        return PushResult.fromResponse(response);
    }
View Full Code Here

 
    public ReceivedsResult getResportReceived(String msgIds, String authCode) {
        checkMsgids(msgIds);
       
        String url = REPORT_HOST_NAME + REPORT_RECEIVE_PATH + "?msg_ids=" + msgIds;
        ResponseWrapper response = _httpClient.sendGet(url, null, authCode);
       
        return ReceivedsResult.fromResponse(response);
    }
View Full Code Here

        if (_globalSettingEnabled) {
            pushPayload.resetOptionsTimeToLive(_timeToLive);
            pushPayload.resetOptionsApnsProduction(_apnsProduction);
        }
       
        ResponseWrapper response = _httpClient.sendPost(_baseUrl, pushPayload.toString(), _authCode);
       
        return PushResult.fromResponse(response);
    }
View Full Code Here

       
        return PushResult.fromResponse(response);
    }
   
    public PushResult sendPush(String payloadString) {
        ResponseWrapper response = _httpClient.sendPost(_baseUrl, payloadString, _authCode);
       
        return PushResult.fromResponse(response);
    }
View Full Code Here

TOP

Related Classes of cn.jpush.api.common.ResponseWrapper$ErrorObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.