This package has been deprecated

Author message:

Package no longer supported. Use API instead https://appfollow.docs.apiary.io

appfollow-api-js

1.1.0 • Public • Published

AppFollow API js

version ISC license downloads

Install

npm install appfollow-api-js
# or 
yarn add appfollow-api-js
Download
CDN

Functions and parameters

  • BASE_URL: API url
  • sortObject(obj): The function of sorting the properties of the object in alphabetical order
  • sign(message): Function for hashing a string
  • makeSign(params, endpoint, apiSecret): Function for get a signature, parameters: object of params, end point, api secret

Example

Get a list of all collections:

import {makeSign, BASE_URL} from 'appfollow-api-js';

const cid = 777;
const apiSecret = 'appfollow';
const endpoint = '/apps';
const sign = makeSign({cid}, endpoint, apiSecret);
const url = `${BASE_URL}${endpoint}?cid=${cid}&sign=${sign}`;

Package Sidebar

Install

npm i appfollow-api-js

Weekly Downloads

9

Version

1.1.0

License

ISC

Unpacked Size

160 kB

Total Files

3

Last publish

Collaborators

  • markovskiy
  • dmitrygo
  • maxsmrnv