示例#1
0
        public void getAllArticles()
        {
            ShopwareApi        shopwareApi = ApiConnection.getDemoApi();
            List <ArticleMain> articles    = shopwareApi.getArticleRessource().getAll();

            Console.WriteLine("Found articles: " + articles.Count);
        }
示例#2
0
        public void getArticleByOrdernumber()
        {
            ShopwareApi shopwareApi = ApiConnection.getDemoApi();
            ArticleMain article     = shopwareApi.getArticleRessource().getByOrdernumber("SW10151");

            Console.WriteLine("Artikel: " + article.name);
            Console.WriteLine("- ID: " + article.id);
        }
示例#3
0
        public void getArticleById()
        {
            ShopwareApi shopwareApi = ApiConnection.getDemoApi();
            ArticleMain article     = shopwareApi.getArticleRessource().get(1);

            Console.WriteLine("Artikel: " + article.name);
            Console.WriteLine("- ID: " + article.id);
        }