0.17.6 • Published 5 years ago

@criptext/api v0.17.6

Weekly downloads
18
License
UNLICENSED
Repository
-
Last release
5 years ago

Module for sending HTTP request to the Criptext Email API. This is specifically designed to be used by our electron app and backend integration tests.

Install

Install with yarn:

yarn add @criptext/api

This module is private so make sure you have run npm login with the necessary credentials on your dev machine.

Usage

This module exports a class: {@link ClientAPI}, which you can instantiate and call its methods to send requests to the server.

const ClientAPI = require('@criptext/email-http-client');

const client = new ClientAPI();

const credentials = {
  username: 'tester',
  password: 'R3alS3cuREp@s$w0rd',
  deviceId: 1
};

client.login(credentials)
  .then(() => console.log('logged in!'))
  .catch((err) => console.error('something went wrong', err));

Documentation

Currently the only way to read documentation is to build it yourself. After you clone this repository navigate to the root of this package and run:

yarn --frozen-lockfile
yarn jsdoc

Now open out/index.html on a web browser.

0.17.6

5 years ago

0.17.5

5 years ago

0.17.2

5 years ago

0.17.1

5 years ago

0.17.0

5 years ago

0.16.0

5 years ago

0.15.37

5 years ago

0.15.36

5 years ago

0.15.35

5 years ago

0.15.34

5 years ago

0.15.33

5 years ago

0.15.28

5 years ago

0.15.27

5 years ago

0.15.25

5 years ago

0.15.24

5 years ago

0.15.23

6 years ago

0.15.22

6 years ago

0.15.21

6 years ago

0.15.20

6 years ago

0.15.19

6 years ago

0.15.18

6 years ago

0.15.17

6 years ago

0.15.15

6 years ago

0.15.14

6 years ago

0.15.13

6 years ago

0.15.12

6 years ago

0.15.11

6 years ago

0.15.10

6 years ago

0.15.9

6 years ago

0.15.8

6 years ago

0.15.7

6 years ago

0.15.6

6 years ago

0.15.5

6 years ago

0.15.4

6 years ago

0.15.3

6 years ago

0.15.2

6 years ago

0.15.1

6 years ago

0.15.0

6 years ago

0.14.16

6 years ago

0.14.15

7 years ago

0.14.14

7 years ago

0.14.13

7 years ago

0.14.11

7 years ago

0.14.10

7 years ago

0.14.9

7 years ago

0.14.8

7 years ago

0.14.7

7 years ago

0.14.6

7 years ago

0.14.5

7 years ago

0.14.4

7 years ago

0.14.3

7 years ago