.NET Framework Client - Validate API

Step 1 - Add the Client with the NuGet Package Manager

Run this command in the Package Manager console:

Install-Package Cloudmersive.APIClient.NET.Validate -Version 1.2.4

Or install it using the NuGet gallery


Step 2 - Add using statements

Import the API Client by adding using statements at the top of your file:

using Cloudmersive.APIClient.NET.Validate.Api;
using Cloudmersive.APIClient.NET.Validate.Client;
using Cloudmersive.APIClient.NET.Validate.Model;
 

Step 3 - Make the API call

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");
				
var apiInstance = new EmailApi();
var email = email_example;  // string | Email address to validate, e.g. \"support@cloudmersive.com\".    The input is a string so be sure to enclose it in double-quotes.

try
{
	// Fully validate an email address
	FullEmailValidationResponse result = apiInstance.EmailFullValidation(email);
	Debug.WriteLine(result);
}
catch (Exception e)
{
	Debug.Print("Exception when calling EmailApi.EmailFullValidation: " + e.Message );
}


.NET Framework Client - Image API

Step 1 - Add the Client with the NuGet Package Manager

Run this command in the Package Manager console:

Install-Package Cloudmersive.APIClient.NET.ImageRecognition -Version 1.2.9

Or install it using the NuGet gallery

Step 2 - Add using statements

Import the API Client by adding using statements at the top of your file:

using Cloudmersive.APIClient.NET.ImageRecognition.Api;
using Cloudmersive.APIClient.NET.ImageRecognition.Client;
using Cloudmersive.APIClient.NET.ImageRecognition.Model;
 

Step 3 - Make the API call

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");

var apiInstance = new ArtisticApi();
var style = style_example;  // string | The style of the painting to apply.  To start, try \"udnie\" a modernist\" painting style.  Possible values are: \"udnie\", \"wave\", \"la_muse\", \"rain_princess\".
var imageFile = new System.IO.FileStream("C:\\temp\\inputfile", System.IO.FileMode.Open); // System.IO.Stream | Image file to perform the operation on.  Common file formats such as PNG, JPEG are supported.

try
{
	// Transform an image into an artistic painting automatically
	Object result = apiInstance.ArtisticPainting(style, imageFile);
	Debug.WriteLine(result);
}
catch (Exception e)
{
	Debug.Print("Exception when calling ArtisticApi.ArtisticPainting: " + e.Message );
}


.NET Framework Client - Convert API

Step 1 - Add the Client with the NuGet Package Manager

Run this command in the Package Manager console:

Install-Package Cloudmersive.APIClient.NET.DocumentAndDataConvert -Version 1.3.1

Or install it using the NuGet gallery


Step 2 - Add using statements

Import the API Client by adding using statements at the top of your file:

using Cloudmersive.APIClient.NET.DocumentAndDataConvert.Api;
using Cloudmersive.APIClient.NET.DocumentAndDataConvert.Client;
using Cloudmersive.APIClient.NET.DocumentAndDataConvert.Model;
 

Step 3 - Make the API call

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");

var apiInstance = new ConvertDocumentApi();
var inputFile = new System.IO.FileStream("C:\\temp\\inputfile", System.IO.FileMode.Open); // System.IO.Stream | Input file to perform the operation on.

try
{
	// Word DOCX to PDF
	Object result = apiInstance.ConvertDocumentDocxToPdf(inputFile);
	Debug.WriteLine(result);
}
catch (Exception e)
{
	Debug.Print("Exception when calling ConvertDocumentApi.ConvertDocumentDocxToPdf: " + e.Message );
}


.NET Framework Client - NLP API

Step 1 - Add the Client with the NuGet Package Manager

Run this command in the Package Manager console:

Install-Package Cloudmersive.APIClient.NET.NLP -Version 1.2.3

Or install it using the NuGet gallery


Step 2 - Add using statements

Import the API Client by adding using statements at the top of your file:

using Cloudmersive.APIClient.NET.NLP.Api;
using Cloudmersive.APIClient.NET.NLP.Client;
using Cloudmersive.APIClient.NET.NLP.Model;
 

Step 3 - Make the API call

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");

var apiInstance = new LanguageDetectionApi();
var textToDetect = textToDetect_example;  // string | Text to detect language of

try
{
	// Detect language of text
	LanguageDetectionResponse result = apiInstance.LanguageDetectionPost(textToDetect);
	Debug.WriteLine(result);
}
catch (Exception e)
{
	Debug.Print("Exception when calling LanguageDetectionApi.LanguageDetectionPost: " + e.Message );
}


.NET Framework Client - OCR API

Step 1 - Add the Client with the NuGet Package Manager

Run this command in the Package Manager console:

Install-Package Cloudmersive.APIClient.NET.OCR -Version 1.2.5

Or install it using the NuGet gallery


Step 2 - Add using statements

Import the API Client by adding using statements at the top of your file:

using Cloudmersive.APIClient.NET.OCR.Api;
using Cloudmersive.APIClient.NET.OCR.Client;
using Cloudmersive.APIClient.NET.OCR.Model;
 

Step 3 - Make the API call

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");

var apiInstance = new ImageOcrApi();
var imageFile = new System.IO.FileStream("C:\\temp\\inputfile", System.IO.FileMode.Open); // System.IO.Stream | Image file to perform OCR on.  Common file formats such as PNG, JPEG are supported.

try
{
	// Converts an uploaded image in common formats such as JPEG, PNG into text via Optical Character Recognition.
	ImageToTextResponse result = apiInstance.ImageOcrPost(imageFile);
	Debug.WriteLine(result);
}
catch (Exception e)
{
	Debug.Print("Exception when calling ImageOcrApi.ImageOcrPost: " + e.Message );
}


.NET Framework Client - Barcode API

Step 1 - Add the Client with the NuGet Package Manager

Run this command in the Package Manager console:

Install-Package Cloudmersive.APIClient.NET.Barcode -Version 1.2.3

Or install it using the NuGet gallery


Step 2 - Add using statements

Import the API Client by adding using statements at the top of your file:

using Cloudmersive.APIClient.NET.Barcode.Api;
using Cloudmersive.APIClient.NET.Barcode.Client;
using Cloudmersive.APIClient.NET.Barcode.Model;
 

Step 3 - Make the API call

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");

var apiInstance = new BarcodeLookupApi();
var value = value_example;  // string | Barcode value

try
{
	// Lookup a barcode value and return product data
	BarcodeLookupResponse result = apiInstance.BarcodeLookupEanLookup(value);
	Debug.WriteLine(result);
}
catch (Exception e)
{
	Debug.Print("Exception when calling BarcodeLookupApi.BarcodeLookupEanLookup: " + e.Message );
}


.NET Framework Client - Virus Scan API

Step 1 - Add the Client with the NuGet Package Manager

Run this command in the Package Manager console:

Install-Package Cloudmersive.APIClient.NET.VirusScan -Version 1.2.6

Or install it using the NuGet gallery


Step 2 - Add using statements

Import the API Client by adding using statements at the top of your file:

using Cloudmersive.APIClient.NET.VirusScan.Api;
using Cloudmersive.APIClient.NET.VirusScan.Client;
using Cloudmersive.APIClient.NET.VirusScan.Model;
 

Step 3 - Make the API call

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Apikey", "Bearer");

var apiInstance = new ScanApi();
var inputFile = new System.IO.FileStream("C:\\temp\\inputfile", System.IO.FileMode.Open); // System.IO.Stream | Input file to perform the operation on.

try
{
	// Scan a file for viruses
	VirusScanResult result = apiInstance.ScanFile(inputFile);
	Debug.WriteLine(result);
}
catch (Exception e)
{
	Debug.Print("Exception when calling ScanApi.ScanFile: " + e.Message );
}


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

Get started now!