streakify

1.0.0 • Public • Published

Streakify.co

NPM package to GET and POST data from Streakify.co APIs. Streakify can accept submissions from NPM package(mentioned in this README) or directly for HTML

tag(refer Streakify docs).

Installation

Use the package manager npm or yarn to install Streakify client.

npm install streakify

Or use Yarn

yarn add streakify

Usage

Register on streakify.co and get form Id.

import streakify from 'streakify'

const data = { name: 'John Doe', city: 'London' }

// Send form data to Streakify
streakify
	.post("YOUR_FORM_ID", data)
	.then(res => console.log(res))
	.catch(err => console.error("Error in streakify.post: ", err))


// Get data from Streakify
streakify
	.get("YOUR_FORM_ID")
	.then(res => console.log(res))
	.catch(err => console.error("Error in streakify.get: ", err))

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. You may also ping us from the Contact us section on Streakify.co.

License

ISC

Package Sidebar

Install

npm i streakify

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

4.33 kB

Total Files

5

Last publish

Collaborators

  • paansinghcoder