/// <summary>
        /// Gets a list of up to 250 of the shop's themes.
        /// </summary>
        /// <returns></returns>
        public async Task<IEnumerable<ShopifyTheme>> ListAsync(ShopifyListOptions options = null)
        {
            IRestRequest req = RequestEngine.CreateRequest("themes.json", Method.GET, "themes");

            //Add optional parameters to request
            if (options != null) req.Parameters.AddRange(options.ToParameters(ParameterType.GetOrPost));

            return await RequestEngine.ExecuteRequestAsync<List<ShopifyTheme>>(_RestClient, req);
        }
Esempio n. 2
0
        /// <summary>
        /// Gets a list of up to 250 of the shop's customers.
        /// </summary>
        /// <returns></returns>
        public async Task <IEnumerable <ShopifyCustomer> > ListAsync(ShopifyListOptions options = null)
        {
            IRestRequest req = RequestEngine.CreateRequest("customers.json", Method.GET, "customers");

            //Add optional parameters to request
            if (options != null)
            {
                req.Parameters.AddRange(options.ToParameters(ParameterType.GetOrPost));
            }

            return(await RequestEngine.ExecuteRequestAsync <List <ShopifyCustomer> >(_RestClient, req));
        }