1.0.9 • Published 7 months ago

@periskope/periskope-client v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

Periskope API TypeScript Client

This is the official TypeScript API client for the Periskope REST API.

Installation

npm install periskope-client

Usage

An example of initializing the API client and sending a message:

import { PeriskopeApi } from 'periskope-client';

const client = new PeriskopeApi({
  authToken: ' <Your token> ',
  phone: ' <Your phone number> ',
});

const test = async () => {
  try {
    const data = await client.message.send({
      chat_id: " < Receiver's chat ID > ",
      message: 'Hello from Periskope',
    });
  } catch (e) {
    console.log(e);
  }
};

test();

Documentation

For more detailed reference documentation, have a look at the API documentation with Node examples.

Feedback

Any feedback, such as bugs, questions, comments, etc. can be reported as Issues in this repository, and will be handled by us in Periskope.

1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago