2.1.0 • Published 9 months ago

rehive v2.1.0

Weekly downloads
20
License
MIT
Repository
github
Last release
9 months ago

Installation

via NPM:

npm install rehive

via CDN:

https://cdn.jsdelivr.net/npm/rehive@{version_number}/build/rehive.min.js

or use the minified file in the build folder

Getting started

Client Side

Initialize the SDK with:

window.rehive = new Rehive(config);

or

const rehive = new Rehive(config);(NodeJS)

Your config object should contain:

  • storageMethod - Options are session for sessionStorage and local for localStorage, the default is undefined which means the SDK will store the token in memory and not in persistent storage.

  • apiVersion - Default is 3 (Version 3 is the only currently supported version)

  • apiToken - Your Rehive API token

Example:

	var config = {
		apiVersion: 3, 
		storageMethod: "local",
		apiToken: "authenticationTokenHere"
	}

Server Side (NodeJS)

Initialize the sdk with: const rehive = new Rehive(config);

Your config object should contain:

  • apiVersion - Default is 3 (Version 3 is the only currently supported version)

  • apiToken - Your Rehive API token

Example:

	var config = {
		apiVersion: 3, 
		apiToken: "authenticationTokenHere"
	}

Custom API url

To use this SDK with a custom API url, your config object should contain customAPIURL

Example:

	var config = {
		...,
		customAPIURL: "https://whatever.stuff/
	}

Documentation and usage

For more detailed documentation and usage Docs.

License

MIT license.

2.1.0

9 months ago

2.0.0

10 months ago

1.37.0

2 years ago

1.36.0

2 years ago

1.35.0

2 years ago

1.34.2

2 years ago

1.34.0

2 years ago

1.34.1

2 years ago

1.33.1

3 years ago

1.33.0

3 years ago

1.32.0

3 years ago

1.31.1

3 years ago

1.31.0

3 years ago

1.30.0

3 years ago

1.29.0

4 years ago

1.29.1

4 years ago

1.27.0

4 years ago

1.27.1

4 years ago

1.28.0

4 years ago

1.26.2

4 years ago

1.26.1

4 years ago

1.26.0

4 years ago

1.25.1

5 years ago

1.25.0

5 years ago

1.24.0

5 years ago

1.23.1

5 years ago

1.23.0

5 years ago

1.22.1

5 years ago

1.22.0

6 years ago

1.21.1

6 years ago

1.21.0

6 years ago

1.20.32

6 years ago

1.20.30

6 years ago

1.20.29

6 years ago

1.20.28

6 years ago

1.20.27

6 years ago

1.20.26

6 years ago

1.20.25

6 years ago

1.20.24

7 years ago

1.20.23

7 years ago

1.20.22

7 years ago

1.20.21

7 years ago

1.20.20

7 years ago

1.20.19

7 years ago

1.20.18

7 years ago

1.20.17

7 years ago

1.20.16

7 years ago

1.20.15

7 years ago

1.20.14

7 years ago

1.20.13

7 years ago

1.20.12

7 years ago

1.20.11

7 years ago

1.20.10

7 years ago

1.20.9

7 years ago

1.20.8

7 years ago

1.20.7

7 years ago

1.20.6

7 years ago

1.20.5

7 years ago

1.20.4

7 years ago

1.20.3

7 years ago

1.20.2

7 years ago

1.20.1

7 years ago

1.20.0

7 years ago

1.19.0

7 years ago

1.18.0

7 years ago

1.17.0

7 years ago

1.16.0

7 years ago

1.15.0

7 years ago

1.14.0

7 years ago

1.13.0

7 years ago

1.12.0

7 years ago

1.11.0

7 years ago

1.10.0

7 years ago

1.9.0

7 years ago

1.8.0

7 years ago

1.7.0

7 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago