Mini guides
- 05 Dec 2022
- 1 Minute to read
-
Print
-
DarkLight
Mini guides
- Updated on 05 Dec 2022
- 1 Minute to read
-
Print
-
DarkLight
This mini guides collection focuses on common Preset API use cases.
Before you start, make sure to generate your Preset API key for authentication. You can find detailed API key management and relevant endpoint information in the Preset API documentation.
Take a Fresh Chart Screenshot
Scenario
You want to programatically get an image of a Chart as up-to-date as possible - i.e., not from cache.
Steps
- Make a POST call to the Preset Refresh Chart endpoint.
Note: This might take up to a few minutes, so please wait at least 5 minutes before going to the next step. - After the chart is refreshed, make a GET call to the Get Chart Screenshot endpoint.
- This will return a screenshot of the most up to date chart.
Was this article helpful?