# cloudmersive_spam_api_client
Easily and directly scan and block spam security threats in input.
This Python package provides a native API client for [Cloudmersive Spam Detection API](https://cloudmersive.com/spam-detection-api)
- API version: v1
- Package version: 3.0.3
- Build package: io.swagger.codegen.languages.PythonClientCodegen
## Requirements.
Python 2.7 and 3.4+
## Installation & Usage
### pip install
If the python package is hosted on Github, you can install directly from Github
```sh
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
```
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
Then import the package:
```python
import cloudmersive_spam_api_client
```
### Setuptools
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)
Then import the package:
```python
import cloudmersive_spam_api_client
```
## Getting Started
Please follow the [installation procedure](#installation--usage) and then run the following:
```python
from __future__ import print_function
import time
import cloudmersive_spam_api_client
from cloudmersive_spam_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Apikey
configuration = cloudmersive_spam_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Apikey'] = 'Bearer'
# create an instance of the API class
api_instance = cloudmersive_spam_api_client.SpamDetectionApi(cloudmersive_spam_api_client.ApiClient(configuration))
body = cloudmersive_spam_api_client.SpamDetectionAdvancedRequest() # SpamDetectionAdvancedRequest | Spam detection request (optional)
try:
# Perform advanced AI spam detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep learnign to detect spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
api_response = api_instance.spam_detect_text_string_advanced_post(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling SpamDetectionApi->spam_detect_text_string_advanced_post: %s\n" % e)
```
## Documentation for API Endpoints
All URIs are relative to *https://localhost*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*SpamDetectionApi* | [**spam_detect_text_string_advanced_post**](docs/SpamDetectionApi.md#spam_detect_text_string_advanced_post) | **POST** /spam/detect/text-string/advanced | Perform advanced AI spam detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep learnign to detect spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
*SpamDetectionApi* | [**spam_detect_text_string_post**](docs/SpamDetectionApi.md#spam_detect_text_string_post) | **POST** /spam/detect/text-string | Perform AI spam detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep learnign to detect spam, phishing and other unsafe content. Uses 25-75 API calls depending on model selected.
## Documentation For Models
- [SpamDetectionAdvancedRequest](docs/SpamDetectionAdvancedRequest.md)
- [SpamDetectionAdvancedResponse](docs/SpamDetectionAdvancedResponse.md)
- [SpamDetectionRequest](docs/SpamDetectionRequest.md)
- [SpamDetectionResponse](docs/SpamDetectionResponse.md)
## Documentation For Authorization
## Apikey
- **Type**: API key
- **API key parameter name**: Apikey
- **Location**: HTTP header
## Author
Raw data
{
"_id": null,
"home_page": "https://cloudmersive.com/spam-detection-api",
"name": "cloudmersive-spam-api-client",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "Swagger, spamapi",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/57/ec/97becbc0788fea11d1754ae296b1bf5e76821c6b47ae9ad9f49c4d85801d/cloudmersive_spam_api_client-3.0.3.tar.gz",
"platform": null,
"description": "# cloudmersive_spam_api_client\r\nEasily and directly scan and block spam security threats in input.\r\n\r\nThis Python package provides a native API client for [Cloudmersive Spam Detection API](https://cloudmersive.com/spam-detection-api)\r\n\r\n- API version: v1\r\n- Package version: 3.0.3\r\n- Build package: io.swagger.codegen.languages.PythonClientCodegen\r\n\r\n## Requirements.\r\n\r\nPython 2.7 and 3.4+\r\n\r\n## Installation & Usage\r\n### pip install\r\n\r\nIf the python package is hosted on Github, you can install directly from Github\r\n\r\n```sh\r\npip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git\r\n```\r\n(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)\r\n\r\nThen import the package:\r\n```python\r\nimport cloudmersive_spam_api_client \r\n```\r\n\r\n### Setuptools\r\n\r\nInstall via [Setuptools](http://pypi.python.org/pypi/setuptools).\r\n\r\n```sh\r\npython setup.py install --user\r\n```\r\n(or `sudo python setup.py install` to install the package for all users)\r\n\r\nThen import the package:\r\n```python\r\nimport cloudmersive_spam_api_client\r\n```\r\n\r\n## Getting Started\r\n\r\nPlease follow the [installation procedure](#installation--usage) and then run the following:\r\n\r\n```python\r\nfrom __future__ import print_function\r\nimport time\r\nimport cloudmersive_spam_api_client\r\nfrom cloudmersive_spam_api_client.rest import ApiException\r\nfrom pprint import pprint\r\n\r\n# Configure API key authorization: Apikey\r\nconfiguration = cloudmersive_spam_api_client.Configuration()\r\nconfiguration.api_key['Apikey'] = 'YOUR_API_KEY'\r\n# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed\r\n# configuration.api_key_prefix['Apikey'] = 'Bearer'\r\n\r\n# create an instance of the API class\r\napi_instance = cloudmersive_spam_api_client.SpamDetectionApi(cloudmersive_spam_api_client.ApiClient(configuration))\r\nbody = cloudmersive_spam_api_client.SpamDetectionAdvancedRequest() # SpamDetectionAdvancedRequest | Spam detection request (optional)\r\n\r\ntry:\r\n # Perform advanced AI spam detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep learnign to detect spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.\r\n api_response = api_instance.spam_detect_text_string_advanced_post(body=body)\r\n pprint(api_response)\r\nexcept ApiException as e:\r\n print(\"Exception when calling SpamDetectionApi->spam_detect_text_string_advanced_post: %s\\n\" % e)\r\n\r\n```\r\n\r\n## Documentation for API Endpoints\r\n\r\nAll URIs are relative to *https://localhost*\r\n\r\nClass | Method | HTTP request | Description\r\n------------ | ------------- | ------------- | -------------\r\n*SpamDetectionApi* | [**spam_detect_text_string_advanced_post**](docs/SpamDetectionApi.md#spam_detect_text_string_advanced_post) | **POST** /spam/detect/text-string/advanced | Perform advanced AI spam detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep learnign to detect spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.\r\n*SpamDetectionApi* | [**spam_detect_text_string_post**](docs/SpamDetectionApi.md#spam_detect_text_string_post) | **POST** /spam/detect/text-string | Perform AI spam detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep learnign to detect spam, phishing and other unsafe content. Uses 25-75 API calls depending on model selected.\r\n\r\n\r\n## Documentation For Models\r\n\r\n - [SpamDetectionAdvancedRequest](docs/SpamDetectionAdvancedRequest.md)\r\n - [SpamDetectionAdvancedResponse](docs/SpamDetectionAdvancedResponse.md)\r\n - [SpamDetectionRequest](docs/SpamDetectionRequest.md)\r\n - [SpamDetectionResponse](docs/SpamDetectionResponse.md)\r\n\r\n\r\n## Documentation For Authorization\r\n\r\n\r\n## Apikey\r\n\r\n- **Type**: API key\r\n- **API key parameter name**: Apikey\r\n- **Location**: HTTP header\r\n\r\n\r\n## Author\r\n\r\n\r\n\r\n",
"bugtrack_url": null,
"license": null,
"summary": "spamapi",
"version": "3.0.3",
"project_urls": {
"Homepage": "https://cloudmersive.com/spam-detection-api"
},
"split_keywords": [
"swagger",
" spamapi"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "57ec97becbc0788fea11d1754ae296b1bf5e76821c6b47ae9ad9f49c4d85801d",
"md5": "df6dfc755fb7724724cc66b4fdcf5ba8",
"sha256": "359825673b86e6373d6670229d5ecc430ecd048f9d22ee6ebd99ed15788d69c4"
},
"downloads": -1,
"filename": "cloudmersive_spam_api_client-3.0.3.tar.gz",
"has_sig": false,
"md5_digest": "df6dfc755fb7724724cc66b4fdcf5ba8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 22348,
"upload_time": "2025-07-13T23:02:09",
"upload_time_iso_8601": "2025-07-13T23:02:09.974751Z",
"url": "https://files.pythonhosted.org/packages/57/ec/97becbc0788fea11d1754ae296b1bf5e76821c6b47ae9ad9f49c4d85801d/cloudmersive_spam_api_client-3.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-13 23:02:09",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "cloudmersive-spam-api-client"
}