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.