Sample code for 30+ languages & platforms
Unicode C++

Akeneo: Delete Product

See more HTTP Misc Examples

Demonstrates how to delete product.

Chilkat Unicode C++ Downloads

Unicode C++
#include <CkHttpW.h>

void ChilkatSample(void)
    {
    bool success = false;

    // This example requires the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    CkHttpW http;

    // Use your previously obtained access token.
    // See Get Akeneo Access Token
    http.put_AuthToken(L"access_token");

    http.SetUrlVar(L"productCode",L"123");

    const wchar_t *respStr = http.quickDeleteStr(L"http://pim.my-akeneo-site.com/api/rest/v1/products/{$productCode}");
    if (http.get_LastMethodSuccess() != true) {
        wprintf(L"%s\n",http.lastHeader());
        wprintf(L"%s\n",http.lastErrorText());
        return;
    }

    wprintf(L"Response Status Code: %d\n",http.get_LastStatus());
    wprintf(L"Response Body: %s\n",respStr);
    }