packages/api-client/InternalServiceNotificationInterfaceApi.md
All URIs are relative to http://backend/api/v1
| Method | HTTP request | Description |
|---|---|---|
| create4 | POST /internal/notification/create | send a message |
ResponseDataVoid create4(notificationCreateRo)
send a message
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .InternalServiceNotificationInterfaceApi(configuration);
let body:.InternalServiceNotificationInterfaceApiCreate4Request = {
// Array<NotificationCreateRo>
notificationCreateRo: [
{
toUserId: [
"toUserId_example",
],
toMemberId: [
"toMemberId_example",
],
toUnitId: [
"toUnitId_example",
],
fromUserId: "1261273764218",
nodeId: "nod10",
spaceId: "spcHKrd0liUcl",
templateId: "tplxx",
body:
key: {},
,
version: "v0.12.1.release",
expireAt: "1614587900000",
notifyId: "1614587900000",
},
],
};
apiInstance.create4(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| notificationCreateRo | Array<NotificationCreateRo> |
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]