2022.3.1 • Published 2 years ago

aroflo-node v2022.3.1

Weekly downloads
58
License
MIT
Repository
github
Last release
2 years ago

AroFlo logo Node.js Library

The AroFlo Node library provides convenient access to the AroFlo API from applications written in server-side JavaScript.


Documentation

You can access the AroFlo API documentation at

Please note that this API Library is still under active development and is subject to change over time.

Installation

NPM

npm install aroflo-node

Yarn

yarn add aroflo-node

Usage

The package needs to be configured with your AroFlo Extended API credentials.

const AroFlo = require('aroflo-node');
const aroflo = new AroFlo({
    publicPersonalToken: "YOUR_PUBLIC_PERSONAL_TOKEN"
    , secretSigningKey: "YOUR_SECRET_SIGNING_KEY"
});

Or using ES modules, this looks more like:

import AroFlo from 'aroflo-node';
const aroflo = new AroFlo({
    publicPersonalToken: "YOUR_PUBLIC_PERSONAL_TOKEN"
    , secretSigningKey: "YOUR_SECRET_SIGNING_KEY"
});

Using Promises

Every method returns a chainable promise which can be used instead of a regular callback:

const aroflo = require('aroflo-node')({
    publicPersonalToken: "YOUR_PUBLIC_PERSONAL_TOKEN"
    , secretSigningKey: "YOUR_SECRET_SIGNING_KEY"
});

// Create a new message board post:
aroflo.messageBoard
    .messages
    .list(({
        expiry: {
            from: "2021-01-01",
            until: "2021-01-31"
        }
    }))
    .then((messages) => {
        // list of messages
    })
    .catch((err) => {
        // Deal with an error
    });

Using async/await

On versions of Node.js since to v7.9:

const aroflo = require('aroflo-node')({
    publicPersonalKey: "YOUR_PUBLIC_PERSONAL_KEY"
    , secretSigningKey: "YOUR_SECRET_SIGNING_KEY"
});

const response = await aroflo.messageBoard
    .messages
    .list({
    	  expiry: {
          from: "2021-01-01",
          until: "2021-01-31"
        }
    });
2022.3.1

2 years ago

2021.12.1

2 years ago

2021.12.2

2 years ago

2021.12.4

2 years ago

2021.10.1

3 years ago

2021.9.10

3 years ago

2021.9.9

3 years ago

2021.9.8

3 years ago

2021.9.7

3 years ago

2021.9.6

3 years ago

2021.9.3

3 years ago

2021.8.13

3 years ago

2021.9.1

3 years ago

2021.8.10

3 years ago

2021.8.11

3 years ago

2021.8.9

3 years ago

2021.8.8

3 years ago

2021.8.6

3 years ago

2021.7.31

3 years ago

2021.6.50

3 years ago

2021.6.10

3 years ago

2021.6.7

3 years ago

2021.4.63

3 years ago

2021.5.20

3 years ago

2021.4.59

3 years ago

2021.5.7

3 years ago

2021.5.6

3 years ago

2021.5.3

3 years ago

2021.4.45

3 years ago

2021.5.16

3 years ago

2021.5.15

3 years ago

2021.5.13

3 years ago

2021.4.39

3 years ago

2021.4.36

3 years ago

2021.4.37

3 years ago

2021.4.29

3 years ago

2021.4.27

3 years ago

2021.4.28

3 years ago

2021.4.23

3 years ago

2021.4.20

3 years ago

2021.4.21

3 years ago

2021.4.17

3 years ago

2021.4.12

3 years ago

2021.4.10

3 years ago

2021.4.8

3 years ago

2021.4.1

3 years ago

2021.3.61

3 years ago

2021.3.62

3 years ago

2021.3.60

3 years ago

2021.3.56

3 years ago

2021.3.58

3 years ago

2021.3.49

3 years ago

2021.3.35

3 years ago

2021.3.40

3 years ago

2021.3.41

3 years ago

2021.3.42

3 years ago

2021.3.43

3 years ago

2021.3.28

3 years ago

2021.3.30

3 years ago

2021.3.31

3 years ago

2021.3.32

3 years ago

2021.3.26

3 years ago

2021.3.19

3 years ago

2021.3.20

3 years ago

2021.3.21

3 years ago

2021.3.17

3 years ago

2021.3.18

3 years ago

2021.3.15

3 years ago

2021.3.14

3 years ago

0.15.2

3 years ago