I've looked through the docs and can't really find an answer if this is possible.
I want a watcher job to fire every 5 minutes to hit an API.
First of all it must hit the API to gain an authorization token, then once it has the token it needs to use it in a subsequential api call to get what I need. Is this possible in watcher?
-
Step one, gain a token
https://www.arcgis.com/sharing/rest/oauth2/token?grant_type=client_credentials&client_id={{REDACTED}}&client_secret={{REDACTED}} -
Some how store the token for step 3.
-
Fire off the API call
http://wvdep.maps.arcgis.com/sharing/rest/portals/self?culture=en&f=json&token={{ TOKEN }}
I can use zabbix if not, but i'd like to use watcher.
