deleteConsent
Removes consent
Removes consent
/v1.0/accounts/v1.0/deleteConsent
Usage and SDK Samples
curl -X POST "https://localhost:443/v1.0/accounts/v1.0/deleteConsent"
import .*;
import .auth.*;
import .model.*;
import .api.AISApi;
import java.io.File;
import java.util.*;
public class AISApiExample {
public static void main(String[] args) {
AISApi apiInstance = new AISApi();
String acceptEncoding = acceptEncoding_example; // String | Gzip, deflate
String acceptLanguage = acceptLanguage_example; // String | Prefered language of response
String acceptCharset = acceptCharset_example; // String | UTF-8
DeleteConsentRequest deleteConsentRequest = ; // DeleteConsentRequest | Data for delete Consent Request
try {
apiInstance.deleteConsent(acceptEncoding, acceptLanguage, acceptCharset, deleteConsentRequest);
} catch (ApiException e) {
System.err.println("Exception when calling AISApi#deleteConsent");
e.printStackTrace();
}
}
}
import .api.AISApi;
public class AISApiExample {
public static void main(String[] args) {
AISApi apiInstance = new AISApi();
String acceptEncoding = acceptEncoding_example; // String | Gzip, deflate
String acceptLanguage = acceptLanguage_example; // String | Prefered language of response
String acceptCharset = acceptCharset_example; // String | UTF-8
DeleteConsentRequest deleteConsentRequest = ; // DeleteConsentRequest | Data for delete Consent Request
try {
apiInstance.deleteConsent(acceptEncoding, acceptLanguage, acceptCharset, deleteConsentRequest);
} catch (ApiException e) {
System.err.println("Exception when calling AISApi#deleteConsent");
e.printStackTrace();
}
}
}
String *acceptEncoding = acceptEncoding_example; // Gzip, deflate
String *acceptLanguage = acceptLanguage_example; // Prefered language of response
String *acceptCharset = acceptCharset_example; // UTF-8
DeleteConsentRequest *deleteConsentRequest = ; // Data for delete Consent Request
AISApi *apiInstance = [[AISApi alloc] init];
// Removes consent
[apiInstance deleteConsentWith:acceptEncoding
acceptLanguage:acceptLanguage
acceptCharset:acceptCharset
deleteConsentRequest:deleteConsentRequest
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var PolishApi = require('polish_api');
var api = new PolishApi.AISApi()
var acceptEncoding = acceptEncoding_example; // {String} Gzip, deflate
var acceptLanguage = acceptLanguage_example; // {String} Prefered language of response
var acceptCharset = acceptCharset_example; // {String} UTF-8
var deleteConsentRequest = ; // {DeleteConsentRequest} Data for delete Consent Request
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.deleteConsent(acceptEncoding, acceptLanguage, acceptCharset, deleteConsentRequest, callback);
using System;
using System.Diagnostics;
using .Api;
using .Client;
using .Model;
namespace Example
{
public class deleteConsentExample
{
public void main()
{
var apiInstance = new AISApi();
var acceptEncoding = acceptEncoding_example; // String | Gzip, deflate
var acceptLanguage = acceptLanguage_example; // String | Prefered language of response
var acceptCharset = acceptCharset_example; // String | UTF-8
var deleteConsentRequest = new DeleteConsentRequest(); // DeleteConsentRequest | Data for delete Consent Request
try
{
// Removes consent
apiInstance.deleteConsent(acceptEncoding, acceptLanguage, acceptCharset, deleteConsentRequest);
}
catch (Exception e)
{
Debug.Print("Exception when calling AISApi.deleteConsent: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\AISApi();
$acceptEncoding = acceptEncoding_example; // String | Gzip, deflate
$acceptLanguage = acceptLanguage_example; // String | Prefered language of response
$acceptCharset = acceptCharset_example; // String | UTF-8
$deleteConsentRequest = ; // DeleteConsentRequest | Data for delete Consent Request
try {
$api_instance->deleteConsent($acceptEncoding, $acceptLanguage, $acceptCharset, $deleteConsentRequest);
} catch (Exception $e) {
echo 'Exception when calling AISApi->deleteConsent: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use ::Configuration;
use ::AISApi;
my $api_instance = ::AISApi->new();
my $acceptEncoding = acceptEncoding_example; # String | Gzip, deflate
my $acceptLanguage = acceptLanguage_example; # String | Prefered language of response
my $acceptCharset = acceptCharset_example; # String | UTF-8
my $deleteConsentRequest = ::Object::DeleteConsentRequest->new(); # DeleteConsentRequest | Data for delete Consent Request
eval {
$api_instance->deleteConsent(acceptEncoding => $acceptEncoding, acceptLanguage => $acceptLanguage, acceptCharset => $acceptCharset, deleteConsentRequest => $deleteConsentRequest);
};
if ($@) {
warn "Exception when calling AISApi->deleteConsent: $@\n";
}
from __future__ import print_statement
import time
import
from .rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = .AISApi()
acceptEncoding = acceptEncoding_example # String | Gzip, deflate
acceptLanguage = acceptLanguage_example # String | Prefered language of response
acceptCharset = acceptCharset_example # String | UTF-8
deleteConsentRequest = # DeleteConsentRequest | Data for delete Consent Request
try:
# Removes consent
api_instance.delete_consent(acceptEncoding, acceptLanguage, acceptCharset, deleteConsentRequest)
except ApiException as e:
print("Exception when calling AISApi->deleteConsent: %s\n" % e)
Parameters
Name | Description |
---|---|
Accept-Encoding* |
String
Gzip, deflate
Required
|
Accept-Language* |
String
Prefered language of response
Required
|
Accept-Charset* |
String
UTF-8
Required
|
Name | Description |
---|---|
deleteConsentRequest * |
Responses
Status: 200 - Success
Name | Type | Format | Description |
---|---|---|---|
Content-Encoding | String | Gzip, deflate |