Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rubik-esputnik

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rubik-esputnik

Esputnik's Bot API kubik for the Rubik

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by400%
Maintainers
1
Weekly downloads
 
Created
Source

rubik-esputnik

Esputnik's Bot API kubik for the Rubik

Install

npm

npm i rubik-esputnik

yarn

yarn add rubik-esputnik

Use

const { App, Kubiks } = require('rubik-main');
const Esputnik = require('rubik-esputnik');
const path = require('path');

// create rubik app
const app = new App();
// config need for most modules
const config = new Kubiks.Config(path.join(__dirname, './config/'));

const esputnik = new Esputnik();

app.add([ config, esputnik ]);

app.up().
then(() => console.info('App started')).
catch(err => console.error(err));

Config

esputnik.js config example

module.exports = { host: 'https://esputnik.com/', // host version: 'v1', // api version username: 'username', // any value password: 'password', // api key

dictionaries: { default: { // matching the names of the fields passed to addContact and their id in esputnik birthday: '157725', gender: '157726', test: '157938' } } };


## Call

```js
...
const response = await app.esputnik.makeReq({ path: 'account/info' });
...
const createResponse = await app.esputnik.addContact({
  contacts: [{
    channels: [{
      type: 'email',
      value: 'example@example.com',
    }],
    fields: {
      test: 'test',
      gender: 'м',
      birthday: '1990-10-10'
    }
  }]
});

Extensions

Esputnik kubik doesn't has any extension.

Keywords

FAQs

Package last updated on 07 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc