public void getAllArticles() { ShopwareApi shopwareApi = ApiConnection.getDemoApi(); List <ArticleMain> articles = shopwareApi.getArticleRessource().getAll(); Console.WriteLine("Found articles: " + articles.Count); }
public void getArticleByOrdernumber() { ShopwareApi shopwareApi = ApiConnection.getDemoApi(); ArticleMain article = shopwareApi.getArticleRessource().getByOrdernumber("SW10151"); Console.WriteLine("Artikel: " + article.name); Console.WriteLine("- ID: " + article.id); }
public void getArticleById() { ShopwareApi shopwareApi = ApiConnection.getDemoApi(); ArticleMain article = shopwareApi.getArticleRessource().get(1); Console.WriteLine("Artikel: " + article.name); Console.WriteLine("- ID: " + article.id); }