Discussions
Fetch tasks by property and redirect/timeout issue on API level
about 2 months ago by null
We are trying to fetch tasks for specific property:
curl -H "Accept: application/json" -H "Authorization: JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmF....yuIxKq4z2IE" "<https://api.breezeway.io/public/inventory/v1/task?limit=50reference_property_id=66a3d898af825e00132391f3">
This is what we see in response:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to target URL: <a href="http://api.breezeway.io/public/inventory/v1/task/?limit=50&reference_property_id=66a3d898af825e00132391f3">http://api.breezeway.io/public/inventory/v1/task/?limit=50&reference_property_id=66a3d898af825e00132391f3</a>. If not click the link.%
I tried accessing API via HTTP (not HTTPS) -> this again resulted with timeout error.
Any idea what could be wrong with curl?