sample-callback-server-node
This is a simple callback server for Scale API, written in Node.js and backed by MongoDB.
You can deploy a callback server to Heroku in seconds and save all your tasks and responses to MongoDB.
Deploy to Heroku
- If you haven't already, sign up for a free Scale API account. Note your Scale
Callback Auth Key
, which you will use during deployment.
Using the Callback Server
Once your server is deployed, you can start using it as your callback_url
for your Scale tasks.
You should specify the callback_url
as https://[YOUR_APP_NAME].herokuapp.com/
, where [YOUR_APP_NAME]
is replaced with your Heroku app name.
Accessing the Responses
Your tasks will be saved to the tasks
collection of the provided MongoDB database. The schema will be identical to the schema specified in our docs. By default, it will provision a new mLab instance, which you can access through your Heroku dashboard.
Contact
Chat with us on Scale's Slack channel :)