GET-request: obtaining exchange rates: Difference between revisions
From Planfix
(Created page with "{{#seo: |title=GET-request: obtaining exchange rates |titlemode=append |keywords=planfix, post-requests, scripts, incoming webhooks, HTTP-requests, http, requests, POST, GET, PUT, DELETE, obtaining exchange rates, exchange rates |description=GET-request: obtaining exchange rates }} Get exchange rates from the Open Exchange Rates website directly in Planfix using an automation scripts.To set this up, sign up on the Open Exchange Rates website, the data will be...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
|description=GET-request: obtaining exchange rates | |description=GET-request: obtaining exchange rates | ||
}} | }} | ||
Get exchange rates from the Open Exchange Rates website directly in Planfix using an automation [[ | Get exchange rates from the Open Exchange Rates website directly in Planfix using an automation [[Scripts|scripts]].To set this up, sign up on the Open Exchange Rates website, the data will be available via this [https://openexchangerates.org/api/latest.json?app_id=YOUR_APP_ID link]. You will need to paste your App IDs instead of YOUR_APP_ID. | ||
*Setting up the button: | *Setting up the button: | ||
https://s.pfx.so/pf/ | https://s.pfx.so/pf/Ov/MM5ZwS.jpg | ||
*Parsing the website's response: | *Parsing the website's response: | ||
https://s.pfx.so/pf/ | https://s.pfx.so/pf/Y1/PSdO4G.jpg | ||
Here's how the response parsing works: | Here's how the response parsing works: | ||
Line 22: | Line 22: | ||
After clicking the button in the task, you'll see the following: | After clicking the button in the task, you'll see the following: | ||
https://s.pfx.so/pf/ | https://s.pfx.so/pf/hP/Ix5TPr.gif | ||
== Go To == | == Go To == | ||
[[Scripts]] | *[[Scripts]] | ||
[[API]] | *[[API]] |
Latest revision as of 10:23, 22 August 2024
Get exchange rates from the Open Exchange Rates website directly in Planfix using an automation scripts.To set this up, sign up on the Open Exchange Rates website, the data will be available via this link. You will need to paste your App IDs instead of YOUR_APP_ID.
- Setting up the button:
- Parsing the website's response:
Here's how the response parsing works:
- Extract the required data from the website's response and place it into info blocks.
- Add a Comment to the Current Task: This step is optional and is a control measure.
- Finally, duplicate the data from the info block into the corresponding task fields, ensuring the data can be used in further calculations.
After clicking the button in the task, you'll see the following: