How to use the the-camp-lib.sendMessage function in the-camp-lib

To help you get started, we’ve selected a few the-camp-lib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ParkSB / the-camp-lib / examples / send-message / index.js View on Github external
const [group] = await thecamp.fetchGroups(cookies, unitName, enterDate);

  const trainee = {
    birth,
    traineeName,
    unitCode: group.unitCode,
    groupId: group.groupId,
    relationship: thecamp.Relationship.FRIEND,
  };

  const message = {
    title: 'Test title',
    content: 'Test content',
  };

  await thecamp.sendMessage(cookies, trainee, message);
})();

the-camp-lib

대국민 국군 소통 서비스 더 캠프 비공식 라이브러리

MIT
Latest version published 3 years ago

Package Health Score

39 / 100
Full package analysis

Similar packages