Node.js wrapper for the Tepez HTTP API
const Tepez = require('node-tepez');
const tepez = new Tepez({
email: '< EMAIL >',
password: '< PASSWORD >'
});
Both email and password can be given when constructor the client instance as email
and password
respectively.
If either option is not given, the TEPEZ_EMAIL
and TEPEZ_PASSWORD
environment variables will be used, if present.
If neither is given, an exception will be thrown when creating the client instance.
Set the DEBUG
environment variable to tepez:api
to get each request and response made by the client printed to the console.
- getForm
- listForms
- getEntry
- listEntries
- saveNewEntry
- submitEntry
- editEntry
- optionsSetDeleteOptions
- optionsSetAddOptions
- docsSetAddDocs