Hi!
I’m trying to add an image via REST API (from a python script).
My plan was first to
- find the listing ID using the Title,
- set the image as the property of the listing.
In order to find the listing ID I was trying to access:
/wp-json/hivepress/v1/listings with
HTTPBasicAuth(wp_username, wp_password)
but I’m getting 406 response.
Any clue?
any other way to achieve the above?