I need to send an image to an API every time motion is detected from a certain camera and parse the returned output, this is achieved in bash as a simple CURL request:
curl -F "upload=@/tmp/car.jpg" \
-F regions=gb \
-F camera_id=test \
-H "Authorization: Token MY-TOKEN-HERE" \
https://api.platerecognizer.com/v1/plate-reader/
Docs for this can be seen here: ALPR Snapshot API Documentation
How am I best achieving this in HA?