コード例 #1
0
 public async Task <BringShipmentResponse> GetShipmentPrices(BringShipmentRequest request) => await GetResponse("price.json", request);
コード例 #2
0
 public async Task <BringShipmentResponse> GetAllShipmentInfo(BringShipmentRequest request) => await GetResponse("all.json", request);
コード例 #3
0
        private static async Task <BringShipmentResponse> GetResponse(string relativeUrl, BringShipmentRequest request)
        {
            var response = await ApiHelper.GetAsync(ShippingGuideBaseUrl + relativeUrl, request);

            return(JsonConvert.DeserializeObject <BringShipmentResponse>(response));
        }
コード例 #4
0
 public async Task <BringShipmentResponse> GetEstimatedDeliveryTime(BringShipmentRequest request) => await GetResponse("expectedDelivery.json", request);