chatwork-api-wrap
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

chatwork-api-wrap

This package just wraps the chatwork API.

Usage

Install

With npm:

npm install chatwork-api-wrap

With yarn:

yarn add chatwork-api-wrap

With pnpm:

pnpm add chatwork-api-wrap

SourceCode

const chatwork = require('chatwork-api-wrap');

chatwork.me.get('YourChatworkToken')
  .then((body) => console.log(body))
  .catch((error) => console.error(error));

or

import chatwork from 'chatwork-api-wrap';

try {
  const body = await chatwork.me.get('YourChatworkToken')
  console.log(body)
} catch (error) {
  console.error(error);
}

Properties

property description
me Your own account information.
my Your own relation data.
contacts Your own contact data.
rooms Chat room operation.
incomingRequests Contact approval request data operation.

Reference

chatwork API Reference

/chatwork-api-wrap/

    Package Sidebar

    Install

    npm i chatwork-api-wrap

    Weekly Downloads

    7

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    84.6 kB

    Total Files

    41

    Last publish

    Collaborators

    • shohei_ono