Back to Apitable

.InternalServiceNotificationInterfaceApi

packages/api-client/InternalServiceNotificationInterfaceApi.md

1.13.0-beta.12.0 KB
Original Source

.InternalServiceNotificationInterfaceApi

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

MethodHTTP requestDescription
create4POST /internal/notification/createsend a message

create4

ResponseDataVoid create4(notificationCreateRo)

send a message

Example

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

Parameters

NameTypeDescriptionNotes
notificationCreateRoArray<NotificationCreateRo>

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]