spamapi
Project description
cloudmersive_spam_api_client
Easily and directly scan and block phishing security threats.
This Python package provides a native API client for Cloudmersive Spam Detection API
- API version: v1
- Package version: 3.0.0
- 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
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:
import cloudmersive_spam_api_client
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import cloudmersive_spam_api_client
Getting Started
Please follow the installation procedure and then run the following:
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 | 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 | 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
- SpamDetectionAdvancedResponse
- SpamDetectionRequest
- SpamDetectionResponse
Documentation For Authorization
Apikey
- Type: API key
- API key parameter name: Apikey
- Location: HTTP header
Author
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cloudmersive_spam_api_client-3.0.0.tar.gz.
File metadata
- Download URL: cloudmersive_spam_api_client-3.0.0.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8454eb660514c2675b000e7c48e6bcad4d5bc61c5f6718a900ff7e40fa0b1af
|
|
| MD5 |
9969c5b5cfc45b94790bb00b6477117c
|
|
| BLAKE2b-256 |
c954d1937f2438236254afa64a0ca096b4402562e66651a8a82975fe5bb257d6
|