public string RetrieveLocation(long id) { var path = $"/admin/api/2019-10/locations/{id}.json"; var response = _httpClient.Get(path); return(response.Body); }
public string Retrieve(long customerId) { var path = $"/admin/api/2019-10/customers/{customerId}.json"; var response = _httpClient.Get(path); return(response.Body); }
public virtual string RetrieveShops() { var path = "/admin/shop.json"; var clientResponse = _httpClient.Get(path); var output = clientResponse.Body; return(output); }
public ResponseEnvelope Retrieve(EventFilter filter, int limit = 250) { var querystring = new QueryStringBuilder() .Add("limit", limit) .Add(filter.ToQueryStringBuilder()) .ToString(); var url = "/admin/api/2019-10/events.json?" + querystring; return(_httpClient.Get(url)); }
public ResponseEnvelope RetrieveProducts(SearchFilter filter) { var querystring = filter.ToQueryString(); var path = "/admin/api/2019-10/products.json?" + querystring; var clientResponse = _httpClient.Get(path); return(clientResponse); }
public virtual string RetrievePayoutsHeaders( DateTime minDate, int page = 1, int limit = 50) { var queryString = new QueryStringBuilder() .Add("min_date", minDate.ToString("YYYY-mm-dd")) .Add("page", page) .Add("limit", limit) .ToString(); var path = $"/admin/shopify_payments/payouts.json?{queryString}"; var clientResponse = _httpClient.Get(path); var output = clientResponse.Body; return(output); }
public ResponseEnvelope Retrieve(SearchFilter filter) { var querystring = filter.ToQueryString(); var path = string.Format("/admin/api/2019-10/orders.json?" + querystring); var response = _httpClient.Get(path); return(response); }