Class ReportClient


  • public class ReportClient
    extends java.lang.Object
    • Constructor Detail

      • ReportClient

        public ReportClient​(java.lang.String masterSecret,
                            java.lang.String appKey)
      • ReportClient

        @Deprecated
        public ReportClient​(java.lang.String masterSecret,
                            java.lang.String appKey,
                            int maxRetryTimes)
        Deprecated.
        This will be removed in the future. Please use ClientConfig{jiguang-common cn.jiguang.common.ClientConfig#setMaxRetryTimes} instead of this constructor.
        Parameters:
        masterSecret - API access secret of the appKey.
        appKey - The KEY of one application on JPush.
        maxRetryTimes - max retry times.
      • ReportClient

        @Deprecated
        public ReportClient​(java.lang.String masterSecret,
                            java.lang.String appKey,
                            int maxRetryTimes,
                            cn.jiguang.common.connection.HttpProxy proxy)
        Deprecated.
        This will be removed in the future. Please use ClientConfig{jiguang-common cn.jiguang.common.ClientConfig#setMaxRetryTimes} instead of this constructor.
        Parameters:
        masterSecret - API access secret of the appKey.
        appKey - The KEY of one application on JPush.
        maxRetryTimes - max retry times
        proxy - The max retry times.
      • ReportClient

        public ReportClient​(java.lang.String masterSecret,
                            java.lang.String appKey,
                            cn.jiguang.common.connection.HttpProxy proxy,
                            cn.jiguang.common.ClientConfig conf)
    • Method Detail

      • getReceiveds

        public ReceivedsResult getReceiveds​(java.lang.String[] msgIdArray)
                                     throws cn.jiguang.common.resp.APIConnectionException,
                                            cn.jiguang.common.resp.APIRequestException
        Throws:
        cn.jiguang.common.resp.APIConnectionException
        cn.jiguang.common.resp.APIRequestException
      • getReceiveds

        public ReceivedsResult getReceiveds​(java.lang.String msgIds)
                                     throws cn.jiguang.common.resp.APIConnectionException,
                                            cn.jiguang.common.resp.APIRequestException
        Throws:
        cn.jiguang.common.resp.APIConnectionException
        cn.jiguang.common.resp.APIRequestException
      • getMessages

        public MessagesResult getMessages​(java.lang.String msgIds)
                                   throws cn.jiguang.common.resp.APIConnectionException,
                                          cn.jiguang.common.resp.APIRequestException
        Throws:
        cn.jiguang.common.resp.APIConnectionException
        cn.jiguang.common.resp.APIRequestException
      • getMessagesStatus

        public java.util.Map<java.lang.String,​MessageStatus> getMessagesStatus​(CheckMessagePayload payload)
                                                                              throws cn.jiguang.common.resp.APIConnectionException,
                                                                                     cn.jiguang.common.resp.APIRequestException
        Throws:
        cn.jiguang.common.resp.APIConnectionException
        cn.jiguang.common.resp.APIRequestException
      • getUsers

        public UsersResult getUsers​(cn.jiguang.common.TimeUnit timeUnit,
                                    java.lang.String start,
                                    int duration)
                             throws cn.jiguang.common.resp.APIConnectionException,
                                    cn.jiguang.common.resp.APIRequestException
        Throws:
        cn.jiguang.common.resp.APIConnectionException
        cn.jiguang.common.resp.APIRequestException
      • checkMsgids

        public static void checkMsgids​(java.lang.String msgIds)