All URIs are relative to https://roketo-test-api.herokuapp.com
Method | HTTP request | Description |
---|---|---|
findOne | GET /users/{accountId} | |
getAvatarUrl | GET /users/{accountId}/avatar | |
resendVerificationEmail | POST /users/{accountId}/verifyEmail | |
update | PATCH /users/{accountId} | |
verifyEmail | GET /users/{accountId}/verifyEmail/{jwt} |
User findOne()
import { } from '@roketo/api-client';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .UsersApi(configuration);
let body:.UsersApiFindOneRequest = {
// string
accountId: "accountId_example",
};
apiInstance.findOne(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
accountId | [string] | defaults to undefined |
User
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - | |
401 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void getAvatarUrl()
import { } from '@roketo/api-client';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .UsersApi(configuration);
let body:.UsersApiGetAvatarUrlRequest = {
// string
accountId: "accountId_example",
};
apiInstance.getAvatarUrl(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
accountId | [string] | defaults to undefined |
void
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void resendVerificationEmail()
import { } from '@roketo/api-client';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .UsersApi(configuration);
let body:.UsersApiResendVerificationEmailRequest = {
// string
accountId: "accountId_example",
};
apiInstance.resendVerificationEmail(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
accountId | [string] | defaults to undefined |
void
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | - | |
401 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void update(updateUserDto)
import { } from '@roketo/api-client';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .UsersApi(configuration);
let body:.UsersApiUpdateRequest = {
// string
accountId: "accountId_example",
// UpdateUserDto
updateUserDto: {
name: "name_example",
email: "email_example",
allowNotifications: true,
},
};
apiInstance.update(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
updateUserDto | UpdateUserDto | ||
accountId | [string] | defaults to undefined |
void
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | - | |
401 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void verifyEmail()
import { } from '@roketo/api-client';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .UsersApi(configuration);
let body:.UsersApiVerifyEmailRequest = {
// string
accountId: "accountId_example",
// string
jwt: "jwt_example",
};
apiInstance.verifyEmail(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
accountId | [string] | defaults to undefined | |
jwt | [string] | defaults to undefined |
void
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]