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:



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"];




CMSpamDetectionAdvancedFormSubmissionRequest* body = [[CMSpamDetectionAdvancedFormSubmissionRequest alloc] init]; // Spam detection request (optional)

CMSpamDetectionApi*apiInstance = [[CMSpamDetectionApi alloc] init];

// Perform advanced AI spam detection and classification against a form submission.  Analyzes form 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.
[apiInstance spamDetectFormSubmissionAdvancedPostWithBody:body
          completionHandler: ^(CMSpamDetectionFormSubmissionAdvancedResponse* output, NSError* error) {
                        if (output) {
                            NSLog(@"%@", output);
                        }
                        if (error) {
                            NSLog(@"Error calling CMSpamDetectionApi->spamDetectFormSubmissionAdvancedPost: %@", error);
                        }
                    }];

Add the Ruby client to your Gemfile:



Download and copy the /client folder into your Apex project:

Download Apex Client

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>{
    'body' => SwagSpamDetectionAdvancedFormSubmiss.getExample()
};

try {
    // cross your fingers
    SwagSpamDetectionFormSubmissionAdvan result = api.spamDetectFormSubmissionAdvancedPost(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


Walkthrough Video