Need to send a file for an API endpoint and use the response

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

Moderator: Mr_Noodle

Hello fellow Hazlers!

I need to send a file to an OCR API endpoint which will process it and send me a response which I'll use to rename the file.

I know how to do it in cURL, but apparently Hazel can't use shell scripts' response later. Am I right? Do you have any suggestions on how to do it in another way?
martinewski
 
Posts: 28
Joined: Sat Jun 29, 2013 6:41 pm

Not sure what you mean. You can have a shellscript use curl and return a proper success or failure based on the response.
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

What I need is the response content (JSON), not only a success/failure.
martinewski
 
Posts: 28
Joined: Sat Jun 29, 2013 6:41 pm

You need to send the whole JSON back to Hazel? What would Hazel do with it after that?
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support