Download Apex Client for Validate API
Once you download the client, extract the zip file into a folder.
Copy the extracted folder into your Apex project folder.
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
SwagEmailApi api = new SwagEmailApi();
SwagClient client = api.getClient();
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) client.getAuthentication('Apikey');
Apikey.setApiKey('YOUR API KEY');
Map params = new Map{
'email' => 'youremail@yourdomain.com'
};
try {
// cross your fingers
SwagFullEmailValidationResponse result = api.emailFullValidation(params);
System.debug(result);
} catch (Swagger.ApiException e) {
// ...handle your exceptions
}
Download Apex Client for Security API
Once you download the client, extract the zip file into a folder.
Copy the extracted folder into your Apex project folder.
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
SwagContentThreatDetectionApi api = new SwagContentThreatDetectionApi();
SwagClient client = api.getClient();
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) client.getAuthentication('Apikey');
Apikey.setApiKey('YOUR API KEY');
Map params = new Map{
'value' => 'value_example'
};
try {
// cross your fingers
SwagStringAutomaticThreatDetection result = api.contentThreatDetectionAutomaticThreatDetectionString(params);
System.debug(result);
} catch (Swagger.ApiException e) {
// ...handle your exceptions
}
Download Apex Client for Image API
Once you download the client, extract the zip file into a folder.
Copy the extracted folder into your Apex project folder.
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
SwagConvertApi api = new SwagConvertApi();
SwagClient client = api.getClient();
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) client.getAuthentication('Apikey');
Apikey.setApiKey('YOUR API KEY');
Map params = new Map{
'imageFile' => Blob.valueOf('Sample text file\nContents')
};
try {
// cross your fingers
Blob result = api.convertToPng(params);
System.debug(result);
} catch (Swagger.ApiException e) {
// ...handle your exceptions
}
Download Apex Client for Document Conversion API
Once you download the client, extract the zip file into a folder.
Copy the extracted folder into your Apex project folder.
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
SwagConvertDocumentApi api = new SwagConvertDocumentApi();
SwagClient client = api.getClient();
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) client.getAuthentication('Apikey');
Apikey.setApiKey('YOUR API KEY');
Map params = new Map{
'inputFile' => Blob.valueOf('Sample text file\nContents')
};
try {
// cross your fingers
Blob result = api.convertDocumentAutodetectToPdf(params);
System.debug(result);
} catch (Swagger.ApiException e) {
// ...handle your exceptions
}
Download Apex Client for Data Integration API
Once you download the client, extract the zip file into a folder.
Copy the extracted folder into your Apex project folder.
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
SwagBackupConvertApi api = new SwagBackupConvertApi();
SwagClient client = api.getClient();
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) client.getAuthentication('Apikey');
Apikey.setApiKey('YOUR API KEY');
Map params = new Map{
'inputFile' => Blob.valueOf('Sample text file\nContents')
};
try {
// cross your fingers
SwagMssqlBakEnumerateTablesResult result = api.dataintegrationBackupConvertMssqlBakGetTablesPost(params);
System.debug(result);
} catch (Swagger.ApiException e) {
// ...handle your exceptions
}
Download Apex Client for Currency API
Once you download the client, extract the zip file into a folder.
Copy the extracted folder into your Apex project folder.
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
SwagCurrencyExchangeApi api = new SwagCurrencyExchangeApi();
SwagClient client = api.getClient();
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) client.getAuthentication('Apikey');
Apikey.setApiKey('YOUR API KEY');
Map params = new Map{
'source' => 'source_example',
'destination' => 'destination_example',
'sourcePrice' => 1.2
};
try {
// cross your fingers
SwagConvertedCurrencyResult result = api.currencyExchangeConvertCurrency(params);
System.debug(result);
} catch (Swagger.ApiException e) {
// ...handle your exceptions
}
Download Apex Client for NLP API
Once you download the client, extract the zip file into a folder.
Copy the extracted folder into your Apex project folder.
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
SwagSegmentationApi api = new SwagSegmentationApi();
SwagClient client = api.getClient();
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) client.getAuthentication('Apikey');
Apikey.setApiKey('YOUR API KEY');
Map params = new Map{
'input' => SwagSentenceSegmentationRequest.getExample()
};
try {
// cross your fingers
SwagSentenceSegmentationResponse result = api.segmentationGetSentences(params);
System.debug(result);
} catch (Swagger.ApiException e) {
// ...handle your exceptions
}
Download Apex Client for OCR API
Once you download the client, extract the zip file into a folder.
Copy the extracted folder into your Apex project folder.
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
SwagImageOcrApi api = new SwagImageOcrApi();
SwagClient client = api.getClient();
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) client.getAuthentication('Apikey');
Apikey.setApiKey('YOUR API KEY');
Map params = new Map{
'imageFile' => Blob.valueOf('Sample text file\nContents'),
'recognitionMode' => 'recognitionMode_example',
'language' => 'language_example'
};
try {
// cross your fingers
SwagImageToTextResponse result = api.imageOcrPhotoToText(params);
System.debug(result);
} catch (Swagger.ApiException e) {
// ...handle your exceptions
}
Download Apex Client for Barcode API
Once you download the client, extract the zip file into a folder.
Copy the extracted folder into your Apex project folder.
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
SwagBarcodeScanApi api = new SwagBarcodeScanApi();
SwagClient client = api.getClient();
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) client.getAuthentication('Apikey');
Apikey.setApiKey('YOUR API KEY');
Map params = new Map{
'imageFile' => Blob.valueOf('Sample text file\nContents')
};
try {
// cross your fingers
SwagBarcodeScanResult result = api.barcodeScanImage(params);
System.debug(result);
} catch (Swagger.ApiException e) {
// ...handle your exceptions
}
Download Apex Client for Video and Media Services API
Once you download the client, extract the zip file into a folder.
Copy the extracted folder into your Apex project folder.
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
SwagVideoApi api = new SwagVideoApi();
SwagClient client = api.getClient();
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) client.getAuthentication('Apikey');
Apikey.setApiKey('YOUR API KEY');
Map params = new Map{
'inputFile' => Blob.valueOf('Sample text file\nContents'),
'fileUrl' => 'fileUrl_example',
'maxWidth' => 56,
'maxHeight' => 56,
'preserveAspectRatio' => true,
'frameRate' => 56,
'quality' => 56,
'extendProcessingTime' => true
};
try {
// cross your fingers
Blob result = api.videoConvertToMp4(params);
System.debug(result);
} catch (Swagger.ApiException e) {
// ...handle your exceptions
}
Download Apex Client for Virus Scan API
Once you download the client, extract the zip file into a folder.
Copy the extracted folder into your Apex project folder.
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
SwagScanApi api = new SwagScanApi();
SwagClient client = api.getClient();
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) client.getAuthentication('Apikey');
Apikey.setApiKey('YOUR API KEY');
Map params = new Map{
'inputFile' => Blob.valueOf('Sample text file\nContents')
};
try {
// cross your fingers
SwagVirusScanResult result = api.scanFile(params);
System.debug(result);
} catch (Swagger.ApiException e) {
// ...handle your exceptions
}