1.1.0 • Published 5 years ago

appfollow-api-js v1.1.0

Weekly downloads
72
License
ISC
Repository
github
Last release
5 years ago

AppFollow API js

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}`;
1.1.0

5 years ago

1.0.13

5 years ago

1.0.12

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago