Novices Performing Miracles

    This package has been deprecated

    Author message:

    This package is no longer maintained.

    chatwork-messages

    0.1.0 • Public • Published

    chatwork-messages

    npm Build Status Build Status Dependency Status devDependency Status

    Getting started

    $ yarn add chatwork-messages
    

    or

    $ npm i -S chatwork-messages
    

    Enjoy!

    const chatworkMessages = require('chatwork-messages')({ token: 'XXX' })
     
    chatworkMessages({ roomId: 40000000 })
      .then(messages => console.log(messages))
      .catch(err => console.error(err))

    References

    require('chatwork-messages')({ token: 'XXX', ... })

    Create fetch message function. Default values are following.

    {
      force: false,
      endpoint: 'https://api.chatwork.com/v2/rooms/<%= roomId %>/messages?force=<%= force %>',
    }

    chatworkMessages({ roomId: 1111111, ... })

    Fetch chatwork message function. The following parameters are usable.

    {
      token: 'XXX',
      force: false,
      endpoint: 'https://api.chatwork.com/v2/rooms/<%= roomId %>/messages?force=<%= force %>',
      roomId: 1234567,
    }

    License

    MIT © Pine Mizune

    Keywords

    none

    Install

    npm i chatwork-messages

    DownloadsWeekly Downloads

    9

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • pine613