All Apps and Add-ons

REST API Token Configuration

erbeard04
Engager

Hello all,

Just updated the REST API Modular app to version 1.9.8 to take advantage of the ability to pass a token for multiple requests. I know I need to update tokens.py, but Im unsure of the syntax for my situation.

Im looking to replace pass longitude & latitude values for multiple cities:

https://api.openweathermap.org/data/2.5/onecall?lat=$lat$&lon=$lon$&exclude={part}&appid={API key}

How would I configure the tokens.py? 

Thanks in advance?

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...