Salesforce Apex Client - Validate API

Step 1 - Download the Cloudmersive Client

Download Apex Client for Validate API

Once you download the client, extract the zip file into a folder.


Step 2 - Copy the Client into Your Project

Copy the extracted folder into your Apex project folder.

Step 3 - Try Calling the Cloudmersive API from Your Apex Project

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
}




Salesforce Apex Client - Image API

Step 1 - Download the Cloudmersive Client

Download Apex Client for Image API

Once you download the client, extract the zip file into a folder.


Step 2 - Copy the Client into Your Project

Copy the extracted folder into your Apex project folder.

Step 3 - Try Calling the Cloudmersive API from Your Apex Project

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
}




Salesforce Apex Client - Document Conversion API

Step 1 - Download the Cloudmersive Client

Download Apex Client for Document Conversion API

Once you download the client, extract the zip file into a folder.


Step 2 - Copy the Client into Your Project

Copy the extracted folder into your Apex project folder.

Step 3 - Try Calling the Cloudmersive API from Your Apex Project

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
}




Salesforce Apex Client - Data Integration API

Step 1 - Download the Cloudmersive Client

Download Apex Client for Data Integration API

Once you download the client, extract the zip file into a folder.


Step 2 - Copy the Client into Your Project

Copy the extracted folder into your Apex project folder.

Step 3 - Try Calling the Cloudmersive API from Your Apex Project

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
}




Salesforce Apex Client - Currency API

Step 1 - Download the Cloudmersive Client

Download Apex Client for Currency API

Once you download the client, extract the zip file into a folder.


Step 2 - Copy the Client into Your Project

Copy the extracted folder into your Apex project folder.

Step 3 - Try Calling the Cloudmersive API from Your Apex Project

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
}




Salesforce Apex Client - NLP API

Step 1 - Download the Cloudmersive Client

Download Apex Client for NLP API

Once you download the client, extract the zip file into a folder.


Step 2 - Copy the Client into Your Project

Copy the extracted folder into your Apex project folder.

Step 3 - Try Calling the Cloudmersive API from Your Apex Project

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
}




Salesforce Apex Client - OCR API

Step 1 - Download the Cloudmersive Client

Download Apex Client for OCR API

Once you download the client, extract the zip file into a folder.


Step 2 - Copy the Client into Your Project

Copy the extracted folder into your Apex project folder.

Step 3 - Try Calling the Cloudmersive API from Your Apex Project

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
}




Salesforce Apex Client - Barcode API

Step 1 - Download the Cloudmersive Client

Download Apex Client for Barcode API

Once you download the client, extract the zip file into a folder.


Step 2 - Copy the Client into Your Project

Copy the extracted folder into your Apex project folder.

Step 3 - Try Calling the Cloudmersive API from Your Apex Project

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
}




Salesforce Apex Client - Video and Media Services API

Step 1 - Download the Cloudmersive Client

Download Apex Client for Video and Media Services API

Once you download the client, extract the zip file into a folder.


Step 2 - Copy the Client into Your Project

Copy the extracted folder into your Apex project folder.

Step 3 - Try Calling the Cloudmersive API from Your Apex Project

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
}




Salesforce Apex Client - Virus Scan API

Step 1 - Download the Cloudmersive Client

Download Apex Client for Virus Scan API

Once you download the client, extract the zip file into a folder.


Step 2 - Copy the Client into Your Project

Copy the extracted folder into your Apex project folder.

Step 3 - Try Calling the Cloudmersive API from Your Apex Project

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
}




800 free API calls/month, no credit card required

Get started now!