AgentPushKit::Client::AccountApi

Load the API package

use AgentPushKit::Client::Object::AccountApi;

All URIs are relative to https://api.chatdna.co/agent-push-kit/v1

Method | HTTP request | Description ------------- | ------------- | ------------- delete_current_account | DELETE /me | Delete the current user and customer accounts they own get_current_account | GET /me | Get the current user and customer accounts

delete_current_account

DeletedResponse delete_current_account()

Delete the current user and customer accounts they own

Example

use Data::Dumper;
use AgentPushKit::Client::AccountApi;
my $api_instance = AgentPushKit::Client::AccountApi->new(

    # Configure bearer access token for authorization: UserOrAgent
    access_token => 'YOUR_BEARER_TOKEN',
    
);


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

Parameters

This endpoint does not need any parameter.

Return type

DeletedResponse

Authorization

UserOrAgent

HTTP request headers

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

get_current_account

CurrentAccount get_current_account()

Get the current user and customer accounts

Example

use Data::Dumper;
use AgentPushKit::Client::AccountApi;
my $api_instance = AgentPushKit::Client::AccountApi->new(

    # Configure bearer access token for authorization: UserOrAgent
    access_token => 'YOUR_BEARER_TOKEN',
    
);


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

Parameters

This endpoint does not need any parameter.

Return type

CurrentAccount

Authorization

UserOrAgent

HTTP request headers

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