Objective-C Client - Validate API

Step 1 - Add the Client with the Cocoapods Package Manager

Add the Objective-C client to your Podfile:

pod 'CloudmersiveValidateApiClient', '~> 1.0'

Or you can install it manually by downloading it from our GitHub repo, and extracting to folder.


Step 2 - Create an API Client object with API Key

Add the imports to the top of the file:

#import <CloudmersiveValidateApiClient/CMApiClient.h>
#import <CloudmersiveValidateApiClient/CMDefaultConfiguration.h>
// load models
#import <CloudmersiveValidateApiClient/CMAddressGetServersResponse.h>
#import <CloudmersiveValidateApiClient/CMAddressVerifySyntaxOnlyResponse.h>
#import <CloudmersiveValidateApiClient/CMCheckResponse.h>
#import <CloudmersiveValidateApiClient/CMFullEmailValidationResponse.h>
#import <CloudmersiveValidateApiClient/CMGeolocateResponse.h>
#import <CloudmersiveValidateApiClient/CMPhoneNumberValidateRequest.h>
#import <CloudmersiveValidateApiClient/CMPhoneNumberValidationResponse.h>
#import <CloudmersiveValidateApiClient/CMVatLookupRequest.h>
#import <CloudmersiveValidateApiClient/CMVatLookupResponse.h>
#import <CloudmersiveValidateApiClient/CMWhoisResponse.h>
// load API classes for accessing endpoints
#import <CloudmersiveValidateApiClient/CMDomainApi.h>
#import <CloudmersiveValidateApiClient/CMEmailApi.h>
#import <CloudmersiveValidateApiClient/CMIPAddressApi.h>
#import <CloudmersiveValidateApiClient/CMPhoneNumberApi.h>
#import <CloudmersiveValidateApiClient/CMVatApi.h>

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

CMDefaultConfiguration *apiConfig = [CMDefaultConfiguration sharedConfig];

// Configure API key authorization: (authentication scheme: Apikey)
[apiConfig setApiKey:@&quot;YOUR_API_KEY&quot; forApiKeyIdentifier:@&quot;Apikey&quot;];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@&quot;Bearer&quot; forApiKeyIdentifier:@&quot;Apikey&quot;];


NSString *domain = domain_example; // Domain name to check, for example \&quot;cloudmersive.com\&quot;.  The input is a string so be sure to enclose it in double-quotes.

CMDomainApi *apiInstance = [[CMDomainApi alloc] init];

// Validate a domain name
[apiInstance domainCheckWithDomain:domain
				completionHandler: ^(CMCheckResponse* output, NSError* error) {
							if (output) {
								NSLog(@&quot;%@&quot;, output);
							}
							if (error) {
								NSLog(@&quot;Error: %@&quot;, error);
							}
						}];




Objective-C Client - Image Recognition and Processing API

Step 1 - Add the Client with the Cocoapods Package Manager

Add the Objective-C client to your Podfile:

pod 'CloudmersiveImageRecognitionApiClient', '~> 1.0'

Or you can install it manually by downloading it from our GitHub repo, and extracting to a folder.


Step 2 - Create an API Client object with API Key

Add the imports:

#import <CloudmersiveImageRecognitionApiClient/CMApiClient.h>
#import <CloudmersiveImageRecognitionApiClient/CMDefaultConfiguration.h>
// load models
#import <CloudmersiveImageRecognitionApiClient/CMAgeDetectionResult.h>
#import <CloudmersiveImageRecognitionApiClient/CMDetectedLicensePlate.h>
#import <CloudmersiveImageRecognitionApiClient/CMDetectedObject.h>
#import <CloudmersiveImageRecognitionApiClient/CMDrawRectangleInstance.h>
#import <CloudmersiveImageRecognitionApiClient/CMDrawRectangleRequest.h>
#import <CloudmersiveImageRecognitionApiClient/CMDrawTextInstance.h>
#import <CloudmersiveImageRecognitionApiClient/CMDrawTextRequest.h>
#import <CloudmersiveImageRecognitionApiClient/CMFace.h>
#import <CloudmersiveImageRecognitionApiClient/CMFaceLocateResponse.h>
#import <CloudmersiveImageRecognitionApiClient/CMImageDescriptionResponse.h>
#import <CloudmersiveImageRecognitionApiClient/CMNsfwResult.h>
#import <CloudmersiveImageRecognitionApiClient/CMObjectDetectionResult.h>
#import <CloudmersiveImageRecognitionApiClient/CMPersonWithAge.h>
#import <CloudmersiveImageRecognitionApiClient/CMRecognitionOutcome.h>
#import <CloudmersiveImageRecognitionApiClient/CMVehicleLicensePlateDetectionResult.h>
// load API classes for accessing endpoints
#import <CloudmersiveImageRecognitionApiClient/CMArtisticApi.h>
#import <CloudmersiveImageRecognitionApiClient/CMEditApi.h>
#import <CloudmersiveImageRecognitionApiClient/CMFaceApi.h>
#import <CloudmersiveImageRecognitionApiClient/CMNsfwApi.h>
#import <CloudmersiveImageRecognitionApiClient/CMRecognizeApi.h>
#import <CloudmersiveImageRecognitionApiClient/CMResizeApi.h>

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

CMDefaultConfiguration *apiConfig = [CMDefaultConfiguration sharedConfig];

// Configure API key authorization: (authentication scheme: Apikey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Apikey"];


NSString *style = @"style_example"; // The style of the painting to apply.  To start, try \"udnie\" a painting style.  Possible values are: \"udnie\", \"wave\", \"la_muse\", \"rain_princess\".
NSURL* *imageFile = [NSURL fileURLWithPath:@"/path/to/file.txt"]; // Image file to perform the operation on.  Common file formats such as PNG, JPEG are supported.

CMArtisticApi *apiInstance = [[CMArtisticApi alloc] init];

// Transform an image into an artistic painting automatically
[apiInstance artisticPaintingWithStyle:style
	imageFile:imageFile
				completionHandler: ^(NSData* output, NSError* error) {
							if (output) {
								NSLog(@"%@", output);
							}
							if (error) {
								NSLog(@"Error: %@", error);
							}
						}];




PHP Objective-C - Document and Data Convert API

Step 1 - Add the Client with the Cocoapods Package Manager

Add the Objective-C client to your Podfile:

pod 'CloudmersiveDocumentAndDataConvertApiClient', '~> 1.0'

Or you can install it manually by downloading it from our GitHub repo, and extracting to a folder.


Step 2 - Create an API Client object with API Key

Add the imports to the top of the file:

#import <CloudmersiveDocumentAndDataConvertApiClient/CMApiClient.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDefaultConfiguration.h>
// load models
#import <CloudmersiveDocumentAndDataConvertApiClient/CMConvertedPngPage.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocumentValidationError.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocumentValidationResult.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxBody.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxCellStyle.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxFooter.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxHeader.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxImage.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxInsertImageRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxInsertImageResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxParagraph.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxRemoveObjectRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxRemoveObjectResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxRun.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxSection.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxSetFooterRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxSetFooterResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxSetHeaderRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxSetHeaderResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxStyle.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxTable.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxTableCell.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxTableRow.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMDocxText.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMExifValue.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMFinishEditingRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetDocxBodyRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetDocxBodyResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetDocxHeadersAndFootersRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetDocxHeadersAndFootersResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetDocxImagesRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetDocxImagesResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetDocxSectionsRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetDocxSectionsResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetDocxStylesRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetDocxStylesResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetDocxTablesRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetDocxTablesResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetImageInfoResult.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetXlsxColumnsRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetXlsxColumnsResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetXlsxImagesRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetXlsxImagesResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetXlsxRowsAndCellsRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetXlsxRowsAndCellsResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetXlsxStylesRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetXlsxStylesResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetXlsxWorksheetsRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMGetXlsxWorksheetsResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMHtmlMdResult.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMHtmlTemplateApplicationRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMHtmlTemplateApplicationResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMHtmlTemplateOperation.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMHtmlToOfficeRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMHtmlToPdfRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMInsertDocxInsertParagraphRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMInsertDocxInsertParagraphResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMInsertDocxTablesRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMInsertDocxTablesResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMInsertXlsxWorksheetRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMInsertXlsxWorksheetResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMPdfToPngResult.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMRemoveDocxHeadersAndFootersRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMRemoveDocxHeadersAndFootersResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMReplaceStringRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMScreenshotRequest.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMViewerResponse.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMXlsxImage.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMXlsxSpreadsheetCell.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMXlsxSpreadsheetColumn.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMXlsxSpreadsheetRow.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMXlsxWorksheet.h>
// load API classes for accessing endpoints
#import <CloudmersiveDocumentAndDataConvertApiClient/CMCompareDocumentApi.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMConvertDataApi.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMConvertDocumentApi.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMConvertImageApi.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMConvertTemplateApi.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMConvertWebApi.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMEditDocumentApi.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMMergeDocumentApi.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMValidateDocumentApi.h>
#import <CloudmersiveDocumentAndDataConvertApiClient/CMViewerToolsApi.h>

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

CMDefaultConfiguration *apiConfig = [CMDefaultConfiguration sharedConfig];

// Configure API key authorization: (authentication scheme: Apikey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Apikey"];


NSURL *inputFile1 = [NSURL fileURLWithPath:@"/path/to/file.txt"]; // First input file to perform the operation on.
NSURL *inputFile2 = [NSURL fileURLWithPath:@"/path/to/file.txt"]; // Second input file to perform the operation on (more than 2 can be supplied).

CMCompareDocumentApi *apiInstance = [[CMCompareDocumentApi alloc] init];

// Compare Two Word DOCX
[apiInstance compareDocumentDocxWithInputFile1:inputFile1
	inputFile2:inputFile2
				completionHandler: ^(NSData* output, NSError* error) {
							if (output) {
								NSLog(@"%@", output);
							}
							if (error) {
								NSLog(@"Error: %@", error);
							}
						}];




Objective-C Client - Natural Language Processing API

Step 1 - Add the Client with the Cocoapods Package Manager

Add the Objective-C client to your Podfile:

pod 'CloudmersiveNLPApiClient', '~> 1.0'

Or you can install it manually by downloading it from our GitHub repo, and extracting to a folder.


Step 2 - Create an API Client object with API Key

Add the imports to the top of the file:

#import <CloudmersiveNLPApiClient/CMApiClient.h>
#import <CloudmersiveNLPApiClient/CMDefaultConfiguration.h>
// load models
#import <CloudmersiveNLPApiClient/CMCheckJsonResponse.h>
#import <CloudmersiveNLPApiClient/CMCheckSentenceJsonResponse.h>
#import <CloudmersiveNLPApiClient/CMCorrectJsonResponse.h>
#import <CloudmersiveNLPApiClient/CMCorrectWordInSentenceJsonResponse.h>
#import <CloudmersiveNLPApiClient/CMGetWordsJsonResponse.h>
#import <CloudmersiveNLPApiClient/CMLanguageDetectionResponse.h>
#import <CloudmersiveNLPApiClient/CMPosRequest.h>
#import <CloudmersiveNLPApiClient/CMPosResponse.h>
#import <CloudmersiveNLPApiClient/CMPosSentence.h>
#import <CloudmersiveNLPApiClient/CMPosTaggedWord.h>
#import <CloudmersiveNLPApiClient/CMWordPosition.h>
// load API classes for accessing endpoints
#import <CloudmersiveNLPApiClient/CMExtractEntitiesStringApi.h>
#import <CloudmersiveNLPApiClient/CMLanguageDetectionApi.h>
#import <CloudmersiveNLPApiClient/CMParseStringApi.h>
#import <CloudmersiveNLPApiClient/CMPosTaggerJsonApi.h>
#import <CloudmersiveNLPApiClient/CMPosTaggerStringApi.h>
#import <CloudmersiveNLPApiClient/CMSentencesApi.h>
#import <CloudmersiveNLPApiClient/CMSpellCheckApi.h>
#import <CloudmersiveNLPApiClient/CMWordsApi.h>

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

CMDefaultConfiguration *apiConfig = [CMDefaultConfiguration sharedConfig];

// Configure API key authorization: (authentication scheme: Apikey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Apikey"];


NSString *value = value_example; // Input string

CMExtractEntitiesStringApi *apiInstance = [[CMExtractEntitiesStringApi alloc] init];

// Extract entities from string
[apiInstance extractEntitiesStringPostWithValue:value
				completionHandler: ^(NSString* output, NSError* error) {
							if (output) {
								NSLog(@"%@", output);
							}
							if (error) {
								NSLog(@"Error: %@", error);
							}
						}];




Objective-C Client - Optical Character Recognition (OCR) API

Step 1 - Add the Client with the Cocoapods Package Manager

Add the Objective-C client to your Podfile:

pod 'CloudmersiveOCRApiClient', '~> 1.0'

Or you can install it manually by downloading it from our GitHub repo, and extracting to a folder.


Step 2 - Create an API Client object with API Key

Add the imports:

#import <CloudmersiveOCRApiClient/CMApiClient.h>
#import <CloudmersiveOCRApiClient/CMDefaultConfiguration.h>
// load models
#import <CloudmersiveOCRApiClient/CMImageToTextResponse.h>
#import <CloudmersiveOCRApiClient/CMOcrPageResult.h>
#import <CloudmersiveOCRApiClient/CMPdfToTextResponse.h>
// load API classes for accessing endpoints
#import <CloudmersiveOCRApiClient/CMImageOcrApi.h>
#import <CloudmersiveOCRApiClient/CMPdfOcrApi.h>
#import <CloudmersiveOCRApiClient/CMPreprocessingApi.h>

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

CMDefaultConfiguration *apiConfig = [CMDefaultConfiguration sharedConfig];

// Configure API key authorization: (authentication scheme: Apikey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Apikey"];


NSURL *imageFile = [NSURL fileURLWithPath:@"/path/to/file.txt"]; // Image file to perform OCR on.  Common file formats such as PNG, JPEG are supported.
NSString* *language = @"language_example"; // Optional, language of the input document, default is English (ENG).  Possible values are ENG (English), ARA (Arabic), ZHO (Chinese - Simplified), ZHO-HANT (Chinese - Traditional), ASM (Assamese), AFR (Afrikaans), AMH (Amharic), AZE (Azerbaijani), AZE-CYRL (Azerbaijani - Cyrillic), BEL (Belarusian), BEN (Bengali), BOD (Tibetan), BOS (Bosnian), BUL (Bulgarian), CAT (Catalan; Valencian), CEB (Cebuano), CES (Czech), CHR (Cherokee), CYM (Welsh), DAN (Danish), DEU (German), DZO (Dzongkha), ELL (Greek), ENM (Archaic/Middle English), EPO (Esperanto), EST (Estonian), EUS (Basque), FAS (Persian), FIN (Finnish), FRA (French), FRK (Frankish), FRM (Middle-French), GLE (Irish), GLG (Galician), GRC (Ancient Greek), HAT (Hatian), HEB (Hebrew), HIN (Hindi), HRV (Croatian), HUN (Hungarian), IKU (Inuktitut), IND (Indonesian), ISL (Icelandic), ITA (Italian), ITA-OLD (Old - Italian), JAV (Javanese), JPN (Japanese), KAN (Kannada), KAT (Georgian), KAT-OLD (Old-Georgian), KAZ (Kazakh), KHM (Central Khmer), KIR (Kirghiz), KOR (Korean), KUR (Kurdish), LAO (Lao), LAT (Latin), LAV (Latvian), LIT (Lithuanian), MAL (Malayalam), MAR (Marathi), MKD (Macedonian), MLT (Maltese), MSA (Malay), MYA (Burmese), NEP (Nepali), NLD (Dutch), NOR (Norwegian), ORI (Oriya), PAN (Panjabi), POL (Polish), POR (Portuguese), PUS (Pushto), RON (Romanian), RUS (Russian), SAN (Sanskrit), SIN (Sinhala), SLK (Slovak), SLV (Slovenian), SPA (Spanish), SPA-OLD (Old Spanish), SQI (Albanian), SRP (Serbian), SRP-LAT (Latin Serbian), SWA (Swahili), SWE (Swedish), SYR (Syriac), TAM (Tamil), TEL (Telugu), TGK (Tajik), TGL (Tagalog), THA (Thai), TIR (Tigrinya), TUR (Turkish), UIG (Uighur), UKR (Ukrainian), URD (Urdu), UZB (Uzbek), UZB-CYR (Cyrillic Uzbek), VIE (Vietnamese), YID (Yiddish) (optional)

CMImageOcrApi *apiInstance = [[CMImageOcrApi alloc] init];

// Convert a photo of a document into text
[apiInstance imageOcrPhotoToTextWithImageFile:imageFile
	language:language
				completionHandler: ^(CMImageToTextResponse* output, NSError* error) {
							if (output) {
								NSLog(@"%@", output);
							}
							if (error) {
								NSLog(@"Error: %@", error);
							}
						}];




Objective-C Client - Barcode API

Step 1 - Add the Client with the Cocoapods Package Manager

Add the Objective-C client to your Podfile:

pod 'CloudmersiveBarcodeApiClient', '~> 1.0'

Or you can install it manually by downloading it from our GitHub repo, and extracting to folder.


Step 2 - Create an API Client object with API Key

Add the imports to the top of the file:

#import <CloudmersiveBarcodeApiClient/CMApiClient.h>
#import <CloudmersiveBarcodeApiClient/CMDefaultConfiguration.h>
// load models
#import <CloudmersiveBarcodeApiClient/CMBarcodeLookupResponse.h>
#import <CloudmersiveBarcodeApiClient/CMProductMatch.h>
// load API classes for accessing endpoints
#import <CloudmersiveBarcodeApiClient/CMBarcodeLookupApi.h>
#import <CloudmersiveBarcodeApiClient/CMGenerateBarcodeApi.h>

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

CMDefaultConfiguration *apiConfig = [CMDefaultConfiguration sharedConfig];

// Configure API key authorization: (authentication scheme: Apikey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Apikey"];


NSString* *value = value_example; // Barcode value

CMBarcodeLookupApi *apiInstance = [[CMBarcodeLookupApi alloc] init];

// Lookup a barcode value and return product data
[apiInstance barcodeLookupEanLookupWithValue:value
				completionHandler: ^(CMBarcodeLookupResponse* output, NSError* error) {
							if (output) {
								NSLog(@"%@", output);
							}
							if (error) {
								NSLog(@"Error: %@", error);
							}
						}];




Objective-C Client - Virus Scan API

Step 1 - Add the Client with the Cocoapods Package Manager

Add the Objective-C client to your Podfile:

pod 'CloudmersiveVirusApiClient', '~> 1.0'

Or you can install it manually by downloading it from our GitHub repo, and extracting to folder.


Step 2 - Create an API Client object with API Key

Add the imports to the top of the file:

#import <CloudmersiveVirusApiClient/CMApiClient.h>
#import <CloudmersiveVirusApiClient/CMDefaultConfiguration.h>
// load models
#import <CloudmersiveVirusApiClient/CMVirusFound.h>
#import <CloudmersiveVirusApiClient/CMVirusScanResult.h>
// load API classes for accessing endpoints
#import <CloudmersiveVirusApiClient/CMScanApi.h>

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

CMDefaultConfiguration *apiConfig = [CMDefaultConfiguration sharedConfig];

// Configure API key authorization: (authentication scheme: Apikey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Apikey"];


NSURL *inputFile = [NSURL fileURLWithPath:@"/path/to/file"]; // Input file to perform the operation on.

CMScanApi *apiInstance = [[CMScanApi alloc] init];

// Scan a file for viruses
[apiInstance scanFileWithInputFile:inputFile
				completionHandler: ^(CMVirusScanResult* output, NSError* error) {
							if (output) {
								NSLog(@"%@", output);
							}
							if (error) {
								NSLog(@"Error: %@", error);
							}
						}];




800 free API calls/month, no credit card required

Get started now!