Chilkat HOME .NET Core C# Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi ActiveX Delphi DLL Go Java Lianja Mono C# Node.js Objective-C PHP ActiveX PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift 2 Swift 3,4,5... Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(C) Shopware 6 - List CategoriesSee more Shopware 6 ExamplesGet a list of categories. For more information, see https://docs.shopware.com/en/shopware-platform-dev-en/store-api-guide/navigation?category=shopware-platform-dev-en/store-api-guide
#include <C_CkHttp.h> #include <C_CkJsonObject.h> #include <C_CkHttpResponse.h> #include <C_CkStringBuilder.h> void ChilkatSample(void) { HCkHttp http; BOOL success; HCkJsonObject json; HCkHttpResponse resp; HCkStringBuilder sbResponseBody; HCkJsonObject jResp; int respStatusCode; const char *id; const char *name; int total; const char *apiAlias; int i; int count_i; // This example assumes the Chilkat API to have been previously unlocked. // See Global Unlock Sample for sample code. http = CkHttp_Create(); // Sends the following POST // POST /store-api/v3/category // { // "includes": { // "category": ["id", "name"] // } // } // Use this online tool to generate code from sample JSON: // Generate Code to Create JSON json = CkJsonObject_Create(); CkJsonObject_UpdateString(json,"includes.category[0]","id"); CkJsonObject_UpdateString(json,"includes.category[1]","name"); // This request simply authenticate with the sw-access-key you can interactively copy from your // sales channel in the Shopware 6 administration web portal. |
© 2000-2024 Chilkat Software, Inc. All Rights Reserved.