示例#1
0
        async public Task <ReportsListResponse> ListReportsSince(long unixTimestamp, int page = 1)
        {
            var parameterised = string.Format(API_REPORTS_PAGE_SINCE, page, unixTimestamp);

            return(JSON.GetObject <ReportsListResponse>(await SendGet(parameterised)));
        }
示例#2
0
        async public Task <DetailedReportResponse> ReportDetails(int id)
        {
            var json = await SendGet($"{API_REPORTS}/{id}");

            return(JSON.GetObject <DetailedReportResponse>(json));
        }
示例#3
0
        async public Task <ReportsListResponse> ListReports(int page = 1)
        {
            var json = await SendGet(string.Format(API_REPORTS_PAGE, page));

            return(JSON.GetObject <ReportsListResponse>(json));
        }