HabitRPG / habitica-zapier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

habitica-zapier

The CLI app for Habitica's Zapier integration.

Resources for More Information

NB the current production version of the Zapier integration does not use code in this repo. It was built using Zapier's Legacy Web Builder.

Information for Contributors to this Repo

Zapier does not use the most recent versions of node and npm. If you have node and npm installed for other projects, use nvm to switch between node versions. To find the required versions of node and npm, refer to Zapier's official documentation (although some of it is out of date) or look in the engines section of this repo's package.json file.

The tests in this repo connect to a Habitica account so that they can create tasks. To enable the connection, you need to declare environment variables called USER_ID and API_KEY to store your account's User ID and API Token respectively. If you don't want to use your normal Habitica account, you're welcome to create one or more test accounts. To run tests:

  1. Check that the correct version of node and nom is in use, especially if you use nvm.
  2. export USER_ID=12345678-90ab-416b-cdef-1234567890ab # this assumes you're using bash
  3. export API_KEY=87654321-90ab-416b-cdef-ba0987654321 # this assumes you're using bash
  4. zapier test

About


Languages

Language:JavaScript 100.0%