packages/api-client/SpaceInviteLinkApiApi.md
All URIs are relative to http://backend/api/v1
| Method | HTTP request | Description |
|---|---|---|
| delete6 | DELETE /space/link/delete | Delete link |
| generate | POST /space/link/generate | Generate or refresh link |
| join | POST /space/link/join | Join the space using the public link |
| list1 | GET /space/link/list | Get a list of links |
| valid | POST /space/link/valid | Valid invite link token |
ResponseDataVoid delete6(spaceLinkOpRo, )
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .SpaceInviteLinkApiApi(configuration);
let body:.SpaceInviteLinkApiApiDelete6Request = {
// SpaceLinkOpRo
spaceLinkOpRo: {
teamId: 1254,
nodeId: "dst***",
},
// string | space id
xSpaceId: "spcyQkKp9XJEl",
};
apiInstance.delete6(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| spaceLinkOpRo | SpaceLinkOpRo | ||
| xSpaceId | [string] | space id | defaults to undefined |
ResponseDataVoid
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]
ResponseDataString generate(spaceLinkOpRo, )
return token,the front end stitching $DOMAIN/invite/link?token=:token
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .SpaceInviteLinkApiApi(configuration);
let body:.SpaceInviteLinkApiApiGenerateRequest = {
// SpaceLinkOpRo
spaceLinkOpRo: {
teamId: 1254,
nodeId: "dst***",
},
// string | space id
xSpaceId: "spczJrh2i3tLW",
};
apiInstance.generate(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| spaceLinkOpRo | SpaceLinkOpRo | ||
| xSpaceId | [string] | space id | defaults to undefined |
ResponseDataString
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]
ResponseDataVoid join(inviteValidRo)
If return code status 201,the user redirects to the login page due to unauthorized.
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .SpaceInviteLinkApiApi(configuration);
let body:.SpaceInviteLinkApiApiJoinRequest = {
// InviteValidRo
inviteValidRo: {
token: "b10e5e36cd7249bdaeab3e424308deed",
nodeId: "dst****",
data: "FutureIsComing",
},
};
apiInstance.join(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| inviteValidRo | InviteValidRo |
ResponseDataVoid
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]
ResponseDataListSpaceLinkVo list1()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .SpaceInviteLinkApiApi(configuration);
let body:.SpaceInviteLinkApiApiList1Request = {
// string | space id
xSpaceId: "spczJrh2i3tLW",
};
apiInstance.list1(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| xSpaceId | [string] | space id | defaults to undefined |
ResponseDataListSpaceLinkVo
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]
ResponseDataSpaceLinkInfoVo valid(inviteValidRo)
After the verification is successful, it can obtain related invitation information
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .SpaceInviteLinkApiApi(configuration);
let body:.SpaceInviteLinkApiApiValidRequest = {
// InviteValidRo
inviteValidRo: {
token: "b10e5e36cd7249bdaeab3e424308deed",
nodeId: "dst****",
data: "FutureIsComing",
},
};
apiInstance.valid(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| inviteValidRo | InviteValidRo |
ResponseDataSpaceLinkInfoVo
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]