WWW::SwaggerClient::UserApi
Load the API package
use WWW::SwaggerClient::Object::UserApi;
All URIs are relative to https://api.estuary.tech
Method | HTTP request | Description |
---|---|---|
user_api_keys_get | GET /user/api-keys | Get API keys for a user |
user_api_keys_key_delete | DELETE /user/api-keys/{key} | Revoke a User API Key. |
user_api_keys_post | POST /user/api-keys | Create API keys for a user |
user_export_get | GET /user/export | Export user data |
user_stats_get | GET /user/stats | Create API keys for a user |
user_api_keys_get
ARRAY[MainGetApiKeysResp] user_api_keys_get()
Get API keys for a user
This endpoint is used to get API keys for a user. In estuary, each user can be given multiple API keys (tokens). This endpoint can be used to retrieve all available API keys for a given user.
Example
use Data::Dumper;
use WWW::SwaggerClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(
# Configure API key authorization: bearerAuth
api_key => {'Authorization' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Authorization' => 'Bearer'},
);
eval {
my $result = $api_instance->user_api_keys_get();
print Dumper($result);
};
if ($@) {
warn "Exception when calling UserApi->user_api_keys_get: $@\n";
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
user_api_keys_key_delete
user_api_keys_key_delete(key => $key)
Revoke a User API Key.
This endpoint is used to revoke a user API key. In estuary, every user is assigned with an API key, this API key is generated and issued for each user and is primarily use to access all estuary features. This endpoint can be used to revoke the API key thats assigned to the user.
Example
use Data::Dumper;
use WWW::SwaggerClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(
# Configure API key authorization: bearerAuth
api_key => {'Authorization' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Authorization' => 'Bearer'},
);
my $key = 'key_example'; # string | Key
eval {
$api_instance->user_api_keys_key_delete(key => $key);
};
if ($@) {
warn "Exception when calling UserApi->user_api_keys_key_delete: $@\n";
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
key | string | Key |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
user_api_keys_post
MainGetApiKeysResp user_api_keys_post(expiry => $expiry, perms => $perms)
Create API keys for a user
This endpoint is used to create API keys for a user. In estuary, each user is given an API key to access all features.
Example
use Data::Dumper;
use WWW::SwaggerClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(
# Configure API key authorization: bearerAuth
api_key => {'Authorization' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Authorization' => 'Bearer'},
);
my $expiry = 'expiry_example'; # string | Expiration - Expiration - Valid time units are ns, us (or µs), ms, s, m, h. for example 300h
my $perms = 'perms_example'; # string | Permissions -- currently unused
eval {
my $result = $api_instance->user_api_keys_post(expiry => $expiry, perms => $perms);
print Dumper($result);
};
if ($@) {
warn "Exception when calling UserApi->user_api_keys_post: $@\n";
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
expiry | string | Expiration - Expiration - Valid time units are ns, us (or µs), ms, s, m, h. for example 300h | [optional] |
perms | string | Permissions -- currently unused | [optional] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
user_export_get
string user_export_get()
Export user data
This endpoint is used to get API keys for a user.
Example
use Data::Dumper;
use WWW::SwaggerClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(
# Configure API key authorization: bearerAuth
api_key => {'Authorization' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Authorization' => 'Bearer'},
);
eval {
my $result = $api_instance->user_export_get();
print Dumper($result);
};
if ($@) {
warn "Exception when calling UserApi->user_export_get: $@\n";
}
Parameters
This endpoint does not need any parameter.
Return type
string
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
user_stats_get
MainUserStatsResponse user_stats_get()
Create API keys for a user
This endpoint is used to create API keys for a user.
Example
use Data::Dumper;
use WWW::SwaggerClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(
# Configure API key authorization: bearerAuth
api_key => {'Authorization' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Authorization' => 'Bearer'},
);
eval {
my $result = $api_instance->user_stats_get();
print Dumper($result);
};
if ($@) {
warn "Exception when calling UserApi->user_stats_get: $@\n";
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]