Skip to content

Latest commit

 

History

History

demonstration-fetch-an-external-configuration-file

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Demonstration: Fetch an external configuration file

Tags: Demonstration, External API

This task script demonstrates using the "http" action to retrieve external data, using a GET request. It also demonstrates saving the retrieved data to the Mechanic cache, where it can be used for future task runs.

Default options

{
  "save_data_to_cache__boolean": null
}

Learn about task options in Mechanic

Subscriptions

mechanic/user/trigger
mechanic/actions/perform

Learn about event subscriptions in Mechanic

Documentation

This task script demonstrates using the "http" action to retrieve external data, using a GET request. It also demonstrates saving the retrieved data to the Mechanic cache, where it can be used for future task runs.

Learn more about this technique: Can I load data from external sources?

Installing this task

Find this task in the library at tasks.mechanic.dev, and use the "Try this task" button. Or, import this task's JSON export – see Importing and exporting tasks to learn how imports work.

Contributions

Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.

Task requests

Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!