AgentPushKit::Client::AuthenticationApi
Load the API package
use AgentPushKit::Client::Object::AuthenticationApi;
All URIs are relative to https://api.chatdna.co/agent-push-kit/v1
Method | HTTP request | Description ------------- | ------------- | ------------- complete_password_reset | POST /auth/password-reset/complete | Choose a new password and log in login_with_apple | POST /auth/apple | Log in or attach an account using a Sign in with Apple identity token login_with_google | POST /auth/google | Log in or attach an account using a verified Google ID token login_with_password | POST /auth/login | Log in with email and password register | POST /auth/register | Create a user and first customer account request_password_reset | POST /auth/password-reset/request | Email a single-use password reset token
complete_password_reset
AuthResponse complete_password_reset(password_reset_complete_input => $password_reset_complete_input)
Choose a new password and log in
Example
use Data::Dumper;
use AgentPushKit::Client::AuthenticationApi;
my $api_instance = AgentPushKit::Client::AuthenticationApi->new(
);
my $password_reset_complete_input = AgentPushKit::Client::Object::PasswordResetCompleteInput->new(); # PasswordResetCompleteInput |
eval {
my $result = $api_instance->complete_password_reset(password_reset_complete_input => $password_reset_complete_input);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AuthenticationApi->complete_password_reset: $@\n";
}
Parameters
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- password_reset_complete_input | PasswordResetCompleteInput| |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
login_with_apple
AuthResponse login_with_apple(provider_login_input => $provider_login_input)
Log in or attach an account using a Sign in with Apple identity token
Example
use Data::Dumper;
use AgentPushKit::Client::AuthenticationApi;
my $api_instance = AgentPushKit::Client::AuthenticationApi->new(
);
my $provider_login_input = AgentPushKit::Client::Object::ProviderLoginInput->new(); # ProviderLoginInput |
eval {
my $result = $api_instance->login_with_apple(provider_login_input => $provider_login_input);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AuthenticationApi->login_with_apple: $@\n";
}
Parameters
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- provider_login_input | ProviderLoginInput| |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
login_with_google
AuthResponse login_with_google(provider_login_input => $provider_login_input)
Log in or attach an account using a verified Google ID token
Example
use Data::Dumper;
use AgentPushKit::Client::AuthenticationApi;
my $api_instance = AgentPushKit::Client::AuthenticationApi->new(
);
my $provider_login_input = AgentPushKit::Client::Object::ProviderLoginInput->new(); # ProviderLoginInput |
eval {
my $result = $api_instance->login_with_google(provider_login_input => $provider_login_input);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AuthenticationApi->login_with_google: $@\n";
}
Parameters
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- provider_login_input | ProviderLoginInput| |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
login_with_password
AuthResponse login_with_password(password_login_input => $password_login_input)
Log in with email and password
Example
use Data::Dumper;
use AgentPushKit::Client::AuthenticationApi;
my $api_instance = AgentPushKit::Client::AuthenticationApi->new(
);
my $password_login_input = AgentPushKit::Client::Object::PasswordLoginInput->new(); # PasswordLoginInput |
eval {
my $result = $api_instance->login_with_password(password_login_input => $password_login_input);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AuthenticationApi->login_with_password: $@\n";
}
Parameters
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- password_login_input | PasswordLoginInput| |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
register
AuthResponse register(register_input => $register_input)
Create a user and first customer account
Example
use Data::Dumper;
use AgentPushKit::Client::AuthenticationApi;
my $api_instance = AgentPushKit::Client::AuthenticationApi->new(
);
my $register_input = AgentPushKit::Client::Object::RegisterInput->new(); # RegisterInput |
eval {
my $result = $api_instance->register(register_input => $register_input);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AuthenticationApi->register: $@\n";
}
Parameters
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- register_input | RegisterInput| |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
request_password_reset
AcceptedResponse request_password_reset(password_reset_request_input => $password_reset_request_input)
Email a single-use password reset token
Example
use Data::Dumper;
use AgentPushKit::Client::AuthenticationApi;
my $api_instance = AgentPushKit::Client::AuthenticationApi->new(
);
my $password_reset_request_input = AgentPushKit::Client::Object::PasswordResetRequestInput->new(); # PasswordResetRequestInput |
eval {
my $result = $api_instance->request_password_reset(password_reset_request_input => $password_reset_request_input);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AuthenticationApi->request_password_reset: $@\n";
}
Parameters
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- password_reset_request_input | PasswordResetRequestInput| |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]