Esempio n. 1
0
        public UsersResult    getUsers(TimeUnit timeUnit, String start, int duration)
        {
            String url = REPORT_HOST_NAME + REPORT_USER_PATH
                         + "?time_unit=" + timeUnit.ToString()
                         + "&start=" + start + "&duration=" + duration;
            String          auth     = Base64.getBase64Encode(this.appKey + ":" + this.masterSecret);
            ResponseWrapper response = this.sendGet(url, auth, null);

            return(UsersResult.fromResponse(response));
        }
Esempio n. 2
0
 public UsersResult getUsers(TimeUnit timeUnit, string start, int duration)
 {
     return(UsersResult.fromResponse(this.sendGet("https://report.jpush.cn/v3/users?time_unit=" + timeUnit.ToString() + "&start=" + start + "&duration=" + (object)duration, Base64.getBase64Encode(this.appKey + ":" + this.masterSecret), (string)null)));
 }