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