Hazel initiates script for REST API calls?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Hazel initiates script for REST API calls? Thu Sep 26, 2019 2:45 pm • by lnjustin
What’s the best way to use Hazel to execute a block of code for making REST API calls (specially the Google Photos API)? I am am a novice at these sorts of scripts, but understand I could use AppleScript to run a curl command for making the API call (and assigning the result of the calls to AppleScript variables). Or could I use Hazel to execute a Java program and pass the matched file path to it? Any other suggestions on how to do this?
lnjustin
 
Posts: 10
Joined: Sun Dec 23, 2018 3:43 pm

Either would work, though I suspect using curl might be a bit easier.
Mr_Noodle
Site Admin
 
Posts: 8365
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support