rdi-yandex-turbo

1.0.0 • Public • Published

rdi-yandex-turbo

Installation

npm i rdi-yandex-turbo

Usage

const YandexTurbo = require('rdi-yandex-turbo');
const service = new YandexTurbo({
  key: 'The authorization token',
  userId: 'User id',
  hostID: 'Host:id:80',
  mode: 'PRODUCTION', // or 'DEBUG'
  logger: console
});

First run

Need to pass the verification procedure.

const ok = await service.verify(
  'http://my.host',
  '/path/to/public/dir/for/create/verify/file'
);

if (ok) {
  // save this to config
  this.userID
  this.hostID
}

Send RSS

const fsReadStream = fs.createReadStream('/path/to/turbo-rss.xml');

await service.turbo.sendRSS(fsReadStream, {gzip: false});

Readme

Keywords

Package Sidebar

Install

npm i rdi-yandex-turbo

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

22.7 kB

Total Files

23

Last publish

Collaborators

  • rochnyak-d-i