Example #1
0
        public string RetrieveLocation(long id)
        {
            var path     = $"/admin/api/2019-10/locations/{id}.json";
            var response = _httpClient.Get(path);

            return(response.Body);
        }
Example #2
0
        public string Retrieve(long customerId)
        {
            var path     = $"/admin/api/2019-10/customers/{customerId}.json";
            var response = _httpClient.Get(path);

            return(response.Body);
        }
Example #3
0
        public virtual string RetrieveShops()
        {
            var path           = "/admin/shop.json";
            var clientResponse = _httpClient.Get(path);

            var output = clientResponse.Body;

            return(output);
        }
Example #4
0
        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));
        }
Example #5
0
        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);
        }
Example #6
0
        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);
        }
Example #7
0
        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);
        }