/// <summary> /// Gets a list of up to 250 of the shop's redirects. /// </summary> /// <param name="filter">An optional filter that restricts the results.</param> /// <returns>The list of <see cref="Redirect"/>.</returns> public virtual async Task <IEnumerable <Redirect> > ListAsync(RedirectFilter filter = null) { var req = PrepareRequest("redirects.json"); if (filter != null) { req.Url.QueryParams.AddRange(filter.ToParameters()); } return(await ExecuteRequestAsync <List <Redirect> >(req, HttpMethod.Get, rootElement : "redirects")); }