Run this command to install the SDK:
Or add this snippet to your package.json:
Run this command to install the SDK:
Or add this snippet to your package.json:
Run this command to install the SDK:
Run this command to install the SDK:
Run this command to install the SDK:
To install with Maven, add a reference to the repository in pom.xml:
And add a reference to the dependency in pom.xml:
To install with Gradle, add it in your root build.gradle at the end of repositories:
And add the dependency in build.gradle:
Run this command to install the SDK:
Add the Objective-C client to your Podfile:
CMDefaultConfiguration *apiConfig = [CMDefaultConfiguration sharedConfig];
// Configure API key authorization: (authentication scheme: Apikey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Apikey"];
NSString* model = @"Advanced"; // Model to use; default setting is Advanced (optional) (default to Advanced)
NSURL* inputFile = [NSURL fileURLWithPath:@"/path/to/file"]; // (optional)
CMSpamDetectionApi*apiInstance = [[CMSpamDetectionApi alloc] init];
// Perform AI spam detection and classification on an input image or document (PDF or DOCX). Analyzes input content as well as embedded URLs with AI deep learnign to detect spam, phishing and other unsafe content. Uses 100-125 API calls depending on model selected.
[apiInstance spamDetectFilePostWithModel:model
inputFile:inputFile
completionHandler: ^(CMSpamDetectionResponse* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling CMSpamDetectionApi->spamDetectFilePost: %@", error);
}
}];
Add the Ruby client to your Gemfile:
SwagSpamDetectionApi api = new SwagSpamDetectionApi();
SwagClient client = api.getClient();
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) client.getAuthentication('Apikey');
Apikey.setApiKey('YOUR API KEY');
Map<String, Object> params = new Map<String, Object>{
'model' => 'model_example',
'inputFile' => Blob.valueOf('Sample text file\nContents')
};
try {
// cross your fingers
SwagSpamDetectionResponse result = api.spamDetectFilePost(params);
System.debug(result);
} catch (Swagger.ApiException e) {
// ...handle your exceptions
}
Install libcurl in your C/C++ project:
libcurl/7.75.0
This code snippet uses the built-in JavaScript XHR request capability
Run this command to install jQuery:
bower install jquery