/// <summary> /// Gets a list of up to 250 of the shop's redirects. /// </summary> /// <param name="options">An optional filter that restricts the results.</param> /// <returns>The list of <see cref="ShopifyRedirect"/>.</returns> public async Task<IEnumerable<ShopifyRedirect>> ListAsync(ShopifyRedirectFilterOptions options = null) { IRestRequest req = RequestEngine.CreateRequest("redirects.json", Method.GET, "redirects"); //Add optional parameters to request if (options != null) req.Parameters.AddRange(options.ToParameters(ParameterType.GetOrPost)); return await RequestEngine.ExecuteRequestAsync<List<ShopifyRedirect>>(_RestClient, req); }
/// <summary> /// Gets a list of up to 250 of the shop's redirects. /// </summary> /// <param name="options">An optional filter that restricts the results.</param> /// <returns>The list of <see cref="ShopifyRedirect"/>.</returns> public async Task <IEnumerable <ShopifyRedirect> > ListAsync(ShopifyRedirectFilterOptions options = null) { IRestRequest req = RequestEngine.CreateRequest("redirects.json", Method.GET, "redirects"); //Add optional parameters to request if (options != null) { req.Parameters.AddRange(options.ToParameters(ParameterType.GetOrPost)); } return(await RequestEngine.ExecuteRequestAsync <List <ShopifyRedirect> >(_RestClient, req)); }