コード例 #1
0
        private void InitializeClient(DriverApiHelperConfiguration configuration)
        {
            _apiClient             = new HttpClient();
            _apiClient.BaseAddress = configuration.ApiBase;
            _apiClient.DefaultRequestHeaders.Accept.Clear();
            _apiClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

            _notifyOfSmsPaymentStatusChangedUri = configuration.NotifyOfSmsPaymentStatusChangedURI;
            _notifyOfFastDeliveryOrderAddedUri  = configuration.NotifyOfFastDeliveryOrderAddedURI;
        }
コード例 #2
0
 public DriverAPIHelper(DriverApiHelperConfiguration configuration)
 {
     InitializeClient(configuration);
 }