packages/api-client/DeveloperConfigAPIApi.md
All URIs are relative to http://backend/api/v1
| Method | HTTP request | Description |
|---|---|---|
| createApiKey | POST /user/createApiKey | Create the developer access token |
| refreshApiKey | POST /user/refreshApiKey | Refresh the developer access token |
| validateApiKey | GET /user/valid/{apiKey} | Verify the access token |
ResponseDataDeveloperInfoVo createApiKey()
Create developer access tokens to access open platform functionality.
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .DeveloperConfigAPIApi(configuration);
let body:any = {};
apiInstance.createApiKey(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
This endpoint does not need any parameter.
ResponseDataDeveloperInfoVo
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataDeveloperInfoVo refreshApiKey(refreshApiKeyRo)
Refresh developer access token before verifying phone number.If there is no verification mailbox, skip verification.
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .DeveloperConfigAPIApi(configuration);
let body:.DeveloperConfigAPIApiRefreshApiKeyRequest = {
// RefreshApiKeyRo
refreshApiKeyRo: {
type: "sms_code",
code: "125484",
},
};
apiInstance.refreshApiKey(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| refreshApiKeyRo | RefreshApiKeyRo |
ResponseDataDeveloperInfoVo
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataBoolean validateApiKey()
Provides a mid-tier validation access token.
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .DeveloperConfigAPIApi(configuration);
let body:.DeveloperConfigAPIApiValidateApiKeyRequest = {
// string
apiKey: "apiKey_example",
};
apiInstance.validateApiKey(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| apiKey | [string] | defaults to undefined |
ResponseDataBoolean
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]