Пример #1
0
        public BaseResponse <ListUsagesResponse> ListUsages(ListUsagesRequest request)
        {
            var method   = HttpMethod.Get;
            var endpoint = $"/subscriptions/{request.SubscriptionId}/items/{request.ItemId}/usages";
            var query    = request.ToDictionary();

            return(this.HttpClientUtil.SendRequest <ListUsagesResponse>(method, endpoint, null, query));
        }
        public BaseResponse <PagingResponse <GetUsageResponse>, MundipaggErrorsResponse> ListUsages(ListUsagesRequest request)
        {
            var method   = HttpMethod.Get;
            var endpoint = $"/subscriptions/{request.SubscriptionId}/items/{request.ItemId}/usages";
            var query    = request.ToDictionary();

            return(this.SendRequest <PagingResponse <GetUsageResponse> >(method, endpoint, null, query));
        }