Back to Apitable

.DeveloperConfigAPIApi

packages/api-client/DeveloperConfigAPIApi.md

1.13.0-beta.14.2 KB
Original Source

.DeveloperConfigAPIApi

All URIs are relative to http://backend/api/v1

MethodHTTP requestDescription
createApiKeyPOST /user/createApiKeyCreate the developer access token
refreshApiKeyPOST /user/refreshApiKeyRefresh the developer access token
validateApiKeyGET /user/valid/{apiKey}Verify the access token

createApiKey

ResponseDataDeveloperInfoVo createApiKey()

Create developer access tokens to access open platform functionality.

Example

typescript
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));

Parameters

This endpoint does not need any parameter.

Return type

ResponseDataDeveloperInfoVo

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

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

refreshApiKey

ResponseDataDeveloperInfoVo refreshApiKey(refreshApiKeyRo)

Refresh developer access token before verifying phone number.If there is no verification mailbox, skip verification.

Example

typescript
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));

Parameters

NameTypeDescriptionNotes
refreshApiKeyRoRefreshApiKeyRo

Return type

ResponseDataDeveloperInfoVo

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

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

validateApiKey

ResponseDataBoolean validateApiKey()

Provides a mid-tier validation access token.

Example

typescript
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));

Parameters

NameTypeDescriptionNotes
apiKey[string]defaults to undefined

Return type

ResponseDataBoolean

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

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