All URIs are relative to https://partner-api.stg-myteksi.com/grabfood-sandbox
Method | HTTP request | Description |
---|---|---|
deleteCampaign | DELETE /partner/v1/campaigns/{campaign_id} | Delete campaigns |
deleteCampaign(authorization, campaignId)
Delete campaigns
// Import classes:
import com.grab.grabfood.client.ApiClient;
import com.grab.grabfood.client.ApiException;
import com.grab.grabfood.client.Configuration;
import com.grab.grabfood.client.models.*;
import com.grab.grabfood.client.api.DeleteCampaignApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://partner-api.stg-myteksi.com/grabfood-sandbox");
DeleteCampaignApi apiInstance = new DeleteCampaignApi(defaultClient);
String authorization = "Bearer <ACCESS_TOKEN_HERE>"; // String | Specify the generated authorization token of the bearer type.
String campaignId = "campaignId_example"; // String |
try {
apiInstance.deleteCampaign(authorization, campaignId);
} catch (ApiException e) {
System.err.println("Exception when calling DeleteCampaignApi#deleteCampaign");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | Specify the generated authorization token of the bearer type. | |
campaignId | String |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | The API request is successfully processed. | - |