1.1.0 • Published 2 years ago
chatwork-api-wrap v1.1.0
chatwork-api-wrap
This package just wraps the chatwork API.
Usage
Install
With npm:
npm install chatwork-api-wrapWith yarn:
yarn add chatwork-api-wrapWith pnpm:
pnpm add chatwork-api-wrapSourceCode
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. |