All URIs are relative to https://api.cloudmersive.com
Method | HTTP request | Description |
---|---|---|
editTextBase64Decode | POST /convert/edit/text/encoding/base64/decode | Base 64 decode, convert base 64 string to binary content |
editTextBase64Detect | POST /convert/edit/text/encoding/base64/detect | Detect, check if text string is base 64 encoded |
editTextBase64Encode | POST /convert/edit/text/encoding/base64/encode | Base 64 encode, convert binary or file data to a text string |
editTextChangeLineEndings | POST /convert/edit/text/line-endings/change | Set, change line endings of a text file |
editTextDetectLineEndings | POST /convert/edit/text/line-endings/detect | Detect line endings of a text file |
editTextFindRegex | POST /convert/edit/text/find/regex | Find a regular expression regex in text input |
editTextFindSimple | POST /convert/edit/text/find/string | Find a string in text input |
editTextRemoveAllWhitespace | POST /convert/edit/text/remove/whitespace/all | Remove whitespace from text string |
editTextRemoveHtml | POST /convert/edit/text/remove/html | Remove HTML from text string |
editTextReplaceRegex | POST /convert/edit/text/replace/regex | Replace a string in text with a regex regular expression string |
editTextReplaceSimple | POST /convert/edit/text/replace/string | Replace a string in text with another string value |
editTextTextEncodingDetect | POST /convert/edit/text/encoding/detect | Detect text encoding of file |
editTextTrimWhitespace | POST /convert/edit/text/remove/whitespace/trim | Trim leading and trailing whitespace from text string |
\Swagger\Client\Model\Base64DecodeResponse editTextBase64Decode($request)
Base 64 decode, convert base 64 string to binary content
Decodes / converts base 64 UTF-8 text string to binary content
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');
$apiInstance = new Swagger\Client\Api\EditTextApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$request = new \Swagger\Client\Model\Base64DecodeRequest(); // \Swagger\Client\Model\Base64DecodeRequest | Input request
try {
$result = $apiInstance->editTextBase64Decode($request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EditTextApi->editTextBase64Decode: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
request | \Swagger\Client\Model\Base64DecodeRequest | Input request |
\Swagger\Client\Model\Base64DecodeResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Base64DetectResponse editTextBase64Detect($request)
Detect, check if text string is base 64 encoded
Checks, detects if input string is base 64 encoded
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');
$apiInstance = new Swagger\Client\Api\EditTextApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$request = new \Swagger\Client\Model\Base64DetectRequest(); // \Swagger\Client\Model\Base64DetectRequest | Input request
try {
$result = $apiInstance->editTextBase64Detect($request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EditTextApi->editTextBase64Detect: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
request | \Swagger\Client\Model\Base64DetectRequest | Input request |
\Swagger\Client\Model\Base64DetectResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Base64EncodeResponse editTextBase64Encode($request)
Base 64 encode, convert binary or file data to a text string
Encodes / converts binary or file data to a text string
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');
$apiInstance = new Swagger\Client\Api\EditTextApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$request = new \Swagger\Client\Model\Base64EncodeRequest(); // \Swagger\Client\Model\Base64EncodeRequest | Input request
try {
$result = $apiInstance->editTextBase64Encode($request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EditTextApi->editTextBase64Encode: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
request | \Swagger\Client\Model\Base64EncodeRequest | Input request |
\Swagger\Client\Model\Base64EncodeResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ChangeLineEndingResponse editTextChangeLineEndings($line_ending_type, $input_file)
Set, change line endings of a text file
Sets the line ending type of a text file; set to Windows, Unix or Mac.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');
$apiInstance = new Swagger\Client\Api\EditTextApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$line_ending_type = "line_ending_type_example"; // string | Required; 'Windows' will use carriage return and line feed, 'Unix' will use newline, and 'Mac' will use carriage return
$input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on.
try {
$result = $apiInstance->editTextChangeLineEndings($line_ending_type, $input_file);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EditTextApi->editTextChangeLineEndings: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
line_ending_type | string | Required; 'Windows' will use carriage return and line feed, 'Unix' will use newline, and 'Mac' will use carriage return | |
input_file | \SplFileObject | Input file to perform the operation on. |
\Swagger\Client\Model\ChangeLineEndingResponse
- Content-Type: multipart/form-data
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\DetectLineEndingsResponse editTextDetectLineEndings($input_file)
Detect line endings of a text file
Detect line ending type (Windows, Unix or Mac) of an input file.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');
$apiInstance = new Swagger\Client\Api\EditTextApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on.
try {
$result = $apiInstance->editTextDetectLineEndings($input_file);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EditTextApi->editTextDetectLineEndings: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
input_file | \SplFileObject | Input file to perform the operation on. |
\Swagger\Client\Model\DetectLineEndingsResponse
- Content-Type: multipart/form-data
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\FindStringRegexResponse editTextFindRegex($request)
Find a regular expression regex in text input
Find all occurrences of the input regular expression in the input content, and returns the matches
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');
$apiInstance = new Swagger\Client\Api\EditTextApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$request = new \Swagger\Client\Model\FindStringRegexRequest(); // \Swagger\Client\Model\FindStringRegexRequest | Input request
try {
$result = $apiInstance->editTextFindRegex($request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EditTextApi->editTextFindRegex: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
request | \Swagger\Client\Model\FindStringRegexRequest | Input request |
\Swagger\Client\Model\FindStringRegexResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\FindStringSimpleResponse editTextFindSimple($request)
Find a string in text input
Finds all occurrences of the input string in the input content, and returns the matches
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');
$apiInstance = new Swagger\Client\Api\EditTextApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$request = new \Swagger\Client\Model\FindStringSimpleRequest(); // \Swagger\Client\Model\FindStringSimpleRequest | Input request
try {
$result = $apiInstance->editTextFindSimple($request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EditTextApi->editTextFindSimple: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
request | \Swagger\Client\Model\FindStringSimpleRequest | Input request |
\Swagger\Client\Model\FindStringSimpleResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\RemoveWhitespaceFromTextResponse editTextRemoveAllWhitespace($request)
Remove whitespace from text string
Removes all whitespace from text, leaving behind only non-whitespace characters. Whitespace includes newlines, spaces and other whitespace characters.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');
$apiInstance = new Swagger\Client\Api\EditTextApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$request = new \Swagger\Client\Model\RemoveWhitespaceFromTextRequest(); // \Swagger\Client\Model\RemoveWhitespaceFromTextRequest | Input request
try {
$result = $apiInstance->editTextRemoveAllWhitespace($request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EditTextApi->editTextRemoveAllWhitespace: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
request | \Swagger\Client\Model\RemoveWhitespaceFromTextRequest | Input request |
\Swagger\Client\Model\RemoveWhitespaceFromTextResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\RemoveHtmlFromTextResponse editTextRemoveHtml($request)
Remove HTML from text string
Removes HTML from text, leaving behind only text. Formatted text will become plain text. Important for protecting against HTML and Cross-Site-Scripting attacks.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');
$apiInstance = new Swagger\Client\Api\EditTextApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$request = new \Swagger\Client\Model\RemoveHtmlFromTextRequest(); // \Swagger\Client\Model\RemoveHtmlFromTextRequest | Input request
try {
$result = $apiInstance->editTextRemoveHtml($request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EditTextApi->editTextRemoveHtml: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
request | \Swagger\Client\Model\RemoveHtmlFromTextRequest | Input request |
\Swagger\Client\Model\RemoveHtmlFromTextResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ReplaceStringRegexResponse editTextReplaceRegex($request)
Replace a string in text with a regex regular expression string
Replaces all occurrences of the input regular expression regex string in the input content, and returns the result
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');
$apiInstance = new Swagger\Client\Api\EditTextApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$request = new \Swagger\Client\Model\ReplaceStringRegexRequest(); // \Swagger\Client\Model\ReplaceStringRegexRequest | Input request
try {
$result = $apiInstance->editTextReplaceRegex($request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EditTextApi->editTextReplaceRegex: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
request | \Swagger\Client\Model\ReplaceStringRegexRequest | Input request |
\Swagger\Client\Model\ReplaceStringRegexResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ReplaceStringSimpleResponse editTextReplaceSimple($request)
Replace a string in text with another string value
Replaces all occurrences of the input string in the input content, and returns the result
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');
$apiInstance = new Swagger\Client\Api\EditTextApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$request = new \Swagger\Client\Model\ReplaceStringSimpleRequest(); // \Swagger\Client\Model\ReplaceStringSimpleRequest | Input request
try {
$result = $apiInstance->editTextReplaceSimple($request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EditTextApi->editTextReplaceSimple: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
request | \Swagger\Client\Model\ReplaceStringSimpleRequest | Input request |
\Swagger\Client\Model\ReplaceStringSimpleResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\TextEncodingDetectResponse editTextTextEncodingDetect($input_file)
Detect text encoding of file
Checks text encoding of file
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');
$apiInstance = new Swagger\Client\Api\EditTextApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on.
try {
$result = $apiInstance->editTextTextEncodingDetect($input_file);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EditTextApi->editTextTextEncodingDetect: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
input_file | \SplFileObject | Input file to perform the operation on. |
\Swagger\Client\Model\TextEncodingDetectResponse
- Content-Type: multipart/form-data
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\RemoveWhitespaceFromTextResponse editTextTrimWhitespace($request)
Trim leading and trailing whitespace from text string
Trim leading and trailing whitespace from text, leaving behind a trimmed string. Whitespace includes newlines, spaces and other whitespace characters.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');
$apiInstance = new Swagger\Client\Api\EditTextApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$request = new \Swagger\Client\Model\RemoveWhitespaceFromTextRequest(); // \Swagger\Client\Model\RemoveWhitespaceFromTextRequest | Input request
try {
$result = $apiInstance->editTextTrimWhitespace($request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EditTextApi->editTextTrimWhitespace: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
request | \Swagger\Client\Model\RemoveWhitespaceFromTextRequest | Input request |
\Swagger\Client\Model\RemoveWhitespaceFromTextResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]