The included files are two tasks for Webtask (https://webtask.io/edit). The linode-mgmt task is the manager, and linode-profile an example of calling the Linode API from behind a task.
Getting started:
- Create the two tasks.
- Set the ACCESS_KEY secret on both tasks to the same value as each other, chosen at random.
- Create an API Client in your Linode profile (https://cloud.linode.com/profile/clients) that sets the Redirect URI to "https://*.run.webtask.io/linode-mgmt/login", filling in the appropriate domain for your Webtask.
- Set the CLIENT_ID and CLIENT_SECRET secrets in the linode-mgmt task to the appropriate values for your new API Client.
Limitations:
- Linode documentation (as of last edit) directs the use of a parameter called "scope" to specify scopes, but in practice "scopes" appears to be the correct parameter name.