Sample code for 30+ languages & platforms
Objective-C

Akeneo: Delete Product

See more HTTP Misc Examples

Demonstrates how to delete product.

Chilkat Objective-C Downloads

Objective-C
#import <CkoHttp.h>
#import <NSString.h>

BOOL success = NO;

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

CkoHttp *http = [[CkoHttp alloc] init];

// Use your previously obtained access token.
// See Get Akeneo Access Token
http.AuthToken = @"access_token";

[http SetUrlVar: @"productCode" value: @"123"];

NSString *respStr = [http QuickDeleteStr: @"http://pim.my-akeneo-site.com/api/rest/v1/products/{$productCode}"];
if (http.LastMethodSuccess != YES) {
    NSLog(@"%@",http.LastHeader);
    NSLog(@"%@",http.LastErrorText);
    return;
}

NSLog(@"%@%d",@"Response Status Code: ",[http.LastStatus intValue]);
NSLog(@"%@%@",@"Response Body: ",respStr);