Smartcat::Client::CallbackApi

Load the API package

use Smartcat::Client::Object::CallbackApi;

All URIs are relative to https://smartcat.ai

Method | HTTP request | Description ------------- | ------------- | ------------- callback_delete | DELETE /api/integration/v1/callback | Resetting the configuration of notifications reception callback_get | GET /api/integration/v1/callback | Reading configurations of notifications reception of the account callback_get_last_errors | GET /api/integration/v1/callback/lastErrors | Reading the recent sending errors callback_update | POST /api/integration/v1/callback |

callback_delete

callback_delete()

Resetting the configuration of notifications reception

Example

use Data::Dumper;
use Smartcat::Client::CallbackApi;
my $api_instance = Smartcat::Client::CallbackApi->new(
);


eval { 
    $api_instance->callback_delete();
};
if ($@) {
    warn "Exception when calling CallbackApi->callback_delete: $@\n";
}

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]

callback_get

CallbackPropertyModel callback_get()

Reading configurations of notifications reception of the account

Example

use Data::Dumper;
use Smartcat::Client::CallbackApi;
my $api_instance = Smartcat::Client::CallbackApi->new(
);


eval { 
    my $result = $api_instance->callback_get();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CallbackApi->callback_get: $@\n";
}

Parameters

This endpoint does not need any parameter.

Return type

CallbackPropertyModel

Authorization

No authorization required

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]

callback_get_last_errors

ARRAY[CallbackErrorModel] callback_get_last_errors(limit => $limit)

Reading the recent sending errors

Example

use Data::Dumper;
use Smartcat::Client::CallbackApi;
my $api_instance = Smartcat::Client::CallbackApi->new(
);

my $limit = 56; # int | Limit on the number of returned errors (no more than 100)

eval { 
    my $result = $api_instance->callback_get_last_errors(limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CallbackApi->callback_get_last_errors: $@\n";
}

Parameters

Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- limit | int| Limit on the number of returned errors (no more than 100) | [optional]

Return type

ARRAY[CallbackErrorModel]

Authorization

No authorization required

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]

callback_update

callback_update(callback_property => $callback_property)

Example

use Data::Dumper;
use Smartcat::Client::CallbackApi;
my $api_instance = Smartcat::Client::CallbackApi->new(
);

my $callback_property = Smartcat::Client::Object::CallbackPropertyModel->new(); # CallbackPropertyModel | 

eval { 
    $api_instance->callback_update(callback_property => $callback_property);
};
if ($@) {
    warn "Exception when calling CallbackApi->callback_update: $@\n";
}

Parameters

Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- callback_property | CallbackPropertyModel| |

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]