Cloudmersive Client Configuration

Overview

When using the Cloudmersive API Clients, you may wish to configure which API endpoint to use. Cloudmersive Clients default to https://api.cloudmersive.com and paid plans include access to additional endpoints, such as the high-availability endpoint.

To get the endpoint URLs available for your plan, navigate to the Cloudmersive Management Portal, and click on API Endpoints in the navigation bar. You will see a list of endpoints available to you.

.NET Framework

To configure the .NET Framework client, simply add this line of code into your application:

Configuration.Default.BasePath = "https://api.cloudmersive.com";

In this example, we set the endpoint to the default; to get a list of available API Endpoints, navigate to the Cloudmersive Management Portal and click on API Endpoints in the navigation bar.

.NET Core

To configure the .NET Core client, simply add this line of code into your application:

Configuration.Default.BasePath = "https://api.cloudmersive.com";

In this example, we set the endpoint to the default; to get a list of available API Endpoints, navigate to the Cloudmersive Management Portal and click on API Endpoints in the navigation bar.

Python

To configure the Python client, simply add this line of code into your application:

api_instance.api_client.configuration.host = "https://api.cloudmersive.com"

In this example, we set the endpoint to the default; to get a list of available API Endpoints, navigate to the Cloudmersive Management Portal and click on API Endpoints in the navigation bar.

Ruby

To configure the Ruby client, simply add this line of code into your application:

config.host = 'https://api.cloudmersive.com'"

In this example, we set the endpoint to the default; to get a list of available API Endpoints, navigate to the Cloudmersive Management Portal and click on API Endpoints in the navigation bar.

Java

To configure the Java client, simply add this line of code into your application:

defaultClient.setBasePath("https://api.cloudmersive.com");

In this example, we set the endpoint to the default; to get a list of available API Endpoints, navigate to the Cloudmersive Management Portal and click on API Endpoints in the navigation bar.

Node.js

To configure the Node.js client, simply add this line of code into your application:

defaultClient.basePath = "https://api.cloudmersive.com";

In this example, we set the endpoint to the default; to get a list of available API Endpoints, navigate to the Cloudmersive Management Portal and click on API Endpoints in the navigation bar.

PHP

To configure the PHP client, simply add this line of code into your application:

$config->setHost("https://api.cloudmersive.com");

In this example, we set the endpoint to the default; to get a list of available API Endpoints, navigate to the Cloudmersive Management Portal and click on API Endpoints in the navigation bar.

Salesforce Apex

To configure the Apex client, simply add this line of code into your application:

client.basePath = "https://api.cloudmersive.com";

In this example, we set the endpoint to the default; to get a list of available API Endpoints, navigate to the Cloudmersive Management Portal and click on API Endpoints in the navigation bar.