Back to Apitable

.AuthorizationRelatedInterfaceApi

packages/api-client/AuthorizationRelatedInterfaceApi.md

1.13.0-beta.15.3 KB
Original Source

.AuthorizationRelatedInterfaceApi

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

MethodHTTP requestDescription
loginPOST /signInlogin
logoutGET /signOutsign out
logout1POST /signOutsign out
registerPOST /registerregister

login

ResponseDataLoginResultVO login(loginRo)

description:verifyType,available values: password sms_code email_code

Example

typescript
import {  } from '';
import * as fs from 'fs';

const configuration = .createConfiguration();
const apiInstance = new .AuthorizationRelatedInterfaceApi(configuration);

let body:.AuthorizationRelatedInterfaceApiLoginRequest = {
  // LoginRo
  loginRo: {
    username: "13829291111 | [email protected]",
    credential: "qwer1234 || 261527",
    type: "password",
    areaCode: "+86",
    data: "FutureIsComing",
    token: "this_is_token",
    spaceId: "spcaq8UwsxjAc",
  },
};

apiInstance.login(body).then((data:any) => {
  console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));

Parameters

NameTypeDescriptionNotes
loginRoLoginRo

Return type

ResponseDataLoginResultVO

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]

logout

ResponseDataLogoutVO logout()

log out of current user

Example

typescript
import {  } from '';
import * as fs from 'fs';

const configuration = .createConfiguration();
const apiInstance = new .AuthorizationRelatedInterfaceApi(configuration);

let body:any = {};

apiInstance.logout(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

ResponseDataLogoutVO

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]

logout1

ResponseDataLogoutVO logout1()

log out of current user

Example

typescript
import {  } from '';
import * as fs from 'fs';

const configuration = .createConfiguration();
const apiInstance = new .AuthorizationRelatedInterfaceApi(configuration);

let body:any = {};

apiInstance.logout1(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

ResponseDataLogoutVO

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]

register

ResponseDataVoid register(registerRO)

serving for community edition

Example

typescript
import {  } from '';
import * as fs from 'fs';

const configuration = .createConfiguration();
const apiInstance = new .AuthorizationRelatedInterfaceApi(configuration);

let body:.AuthorizationRelatedInterfaceApiRegisterRequest = {
  // RegisterRO
  registerRO: {
    username: "[email protected]",
    credential: "qwer1234 || 261527",
  },
};

apiInstance.register(body).then((data:any) => {
  console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));

Parameters

NameTypeDescriptionNotes
registerRORegisterRO

Return type

ResponseDataVoid

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]