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 - 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 - 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
}




1,000 free API calls/month, no credit card required

Get started now!