This folder contains a working example API client for Minim's API written using NodeJS.
Use this project as a starting point for building a NodeJS application that interacts with Minim's API. The example.js
file serves as a starting point with a few example API calls. We recommend experimenting with basic API calls and useful functions provided in quick-guides.
Check the Minim API Documentation for a complete reference of available API calls.
-
Install a recent version of NodeJS and npm
-
Generate an Application ID and Secret Key for your account on Minim
-
Clone the repository or download the latest code as a zip
-
Open a terminal and enter the directory you cloned or extracted the project to then enter the
js/
directory -
Use npm to install the JavaScript dependencies
npm install
-
Create a new file in the project directory called
.env
and put your Application ID and Secret Key in itUse the text below and replace
<YOUR APPLICATION ID HERE>
with your Application ID and<YOUR SECRET KEY HERE>
with your Secret Key.APPLICATION_ID=<YOUR APPLICATION ID HERE> API_SECRET=<YOUR SECERT KEY HERE>
-
Run the example.js script with npm
npm start