Example #1
0
        public async Task <IList <T> > AsListUnpaginated()
        {
            var resourceString = await Context.CallRaw(HttpMethod.Get, Context.GetRequestContentType(), Path(), parameters : FullParameters(), requestBody : null);

            var list = Context.TranslateObject <List <T> >(ShopifyAPIContext.Pluralize(Name), resourceString);

            foreach (var model in list)
            {
                PlaceResourceProxesOnModel(model);
            }
            return(list);
        }
Example #2
0
 public override string Path()
 {
     return(ShopifyAPIContext.UriPathJoin(ParentResource.InstanceOrVerbPath(ParentInstance.Id.ToString()), ShopifyAPIContext.Pluralize(Name)));
 }
Example #3
0
 public virtual string Path()
 {
     return(ShopifyAPIContext.UriPathJoin(Context.AdminPath(), ShopifyAPIContext.Pluralize(Name)));
 }