'Move Request Params to Body from URL
I want to use Imagga API to recognise what is shown in the photo.
I read the documentation and learned that I can use POST or GET request with endpoint like https://api.imagga.com/v2/tags?image_url=<imageUrl>.
In this example I set the image url directly in my URL.
This API also allow to use base64 images (with image_base64 param) to do the search, but base64 format is too long to use it directly in query.
I tried to move my params to the request body, so I used endpoint https://api.imagga.com/v2/tags and request body in format:
{ "image_url": "<imageUrl>" } but whet I tried this way I received status Bad Request and JSON result like {"status":{"text":"Please provide content for processing.","type":"error"}.
So, can I move my request params from URL to request body, and if not, is there another way I can use URL with base64 format?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
