.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 3.0.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.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 3.0.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.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 3.2.8

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 - Data Integration API

Step 1 - Add the Client with the NuGet Package Manager

Run this command in the Package Manager console:

Install-Package Cloudmersive.APIClient.NET.DataIntegration -Version 3.0.2

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 System;
using System.Diagnostics;
using Cloudmersive.APIClient.NET.DataIntegration.Api;
using Cloudmersive.APIClient.NET.DataIntegration.Client;
using Cloudmersive.APIClient.NET.DataIntegration.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 BackupConvertApi();
var tableName = tableName_example;  // string | Name of the table to return (optional) 
var inputFile = new System.IO.FileStream("C:\\temp\\inputfile", System.IO.FileMode.Open); // System.IO.Stream | Input file to perform the operation on (optional) 

try
{
	// Converts a SQL Server Backup (.BAK) file into CSV for a specified table
	byte[] result = apiInstance.DataintegrationBackupConvertMssqlBakToCsvPost(tableName, inputFile);
	Debug.WriteLine(result);
}
catch (Exception e)
{
	Debug.Print("Exception when calling BackupConvertApi.DataintegrationBackupConvertMssqlBakToCsvPost: " + e.Message );
}


.NET Framework Client - Currency API

Step 1 - Add the Client with the NuGet Package Manager

Run this command in the Package Manager console:

Install-Package Cloudmersive.APIClient.NET.Currency -Version 3.0.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 System;
using System.Diagnostics;
using Cloudmersive.APIClient.NET.Currency.Api;
using Cloudmersive.APIClient.NET.Currency.Client;
using Cloudmersive.APIClient.NET.Currency.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 CurrencyExchangeApi();
var source = source_example;  // string | Source currency three-digit code (ISO 4217), e.g. USD, EUR, etc.
var destination = destination_example;  // string | Destination currency three-digit code (ISO 4217), e.g. USD, EUR, etc.
var sourcePrice = 1.2;  // double? | Input price, such as 19.99 in source currency

try
{
	// Converts a price from the source currency into the destination currency
	ConvertedCurrencyResult result = apiInstance.CurrencyExchangeConvertCurrency(source, destination, sourcePrice);
	Debug.WriteLine(result);
}
catch (Exception e)
{
	Debug.Print("Exception when calling CurrencyExchangeApi.CurrencyExchangeConvertCurrency: " + 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 4.0.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.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 3.0.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 3.0.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.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 - Video and Media Services API

Step 1 - Add the Client with the NuGet Package Manager

Run this command in the Package Manager console:

Install-Package Cloudmersive.APIClient.NET.VideoAndMediaServices -Version 3.0.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 System;
using System.Diagnostics;
using Cloudmersive.APIClient.NET.VideoAndMediaServices.Api;
using Cloudmersive.APIClient.NET.VideoAndMediaServices.Client;
using Cloudmersive.APIClient.NET.VideoAndMediaServices.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 VideoApi();
var inputFile = new System.IO.FileStream("C:\\temp\\inputfile", System.IO.FileMode.Open); // System.IO.Stream | Input file to perform the operation on.
var fileUrl = fileUrl_example;  // string | Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB. (optional) 
var maxWidth = 56;  // int? | Optional; Maximum width of the output video, up to the original video width. Defaults to original video width. (optional) 
var maxHeight = 56;  // int? | Optional; Maximum height of the output video, up to the original video width. Defaults to original video height. (optional) 
var preserveAspectRatio = true;  // bool? | Optional; If false, the original video's aspect ratio will not be preserved, allowing customization of the aspect ratio using maxWidth and maxHeight, potentially skewing the video. Default is true. (optional) 
var frameRate = 56;  // int? | Optional; Specify the frame rate of the output video. Defaults to original video frame rate. (optional) 
var quality = 56;  // int? | Optional; Specify the quality of the output video, where 100 is lossless and 1 is the lowest possible quality with highest compression. Default is 50. (optional) 
var extendProcessingTime = true;  // bool? | Optional; If true, will allow additional processing time for the video file conversion, using one API call per additional minute over the 5 minute default processing time, up to a maximum of 25 total minutes. This is generally necessary for files larger than 500 MB or longer than 30 minutes. (optional) 

try
{
	// Convert Video to MP4 format.
	byte[] result = apiInstance.VideoConvertToMp4(inputFile, fileUrl, maxWidth, maxHeight, preserveAspectRatio, frameRate, quality, extendProcessingTime);
	Debug.WriteLine(result);
}
catch (Exception e)
{
	Debug.Print("Exception when calling VideoApi.VideoConvertToMp4: " + 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 3.0.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.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 );
}


800 free API calls/month, no credit card required

Get started now!