Hi Team,
I have been trying to get sample data for the above API. IO keep getting error status 401 “The calling application is unauthenticated”
Can you help me out please
Hi Team,
I have been trying to get sample data for the above API. IO keep getting error status 401 “The calling application is unauthenticated”
Can you help me out please
Hi,
Please make sure to include the word ‘apikey ’ followed by a space before the token.
Regards,
Suraj
Hi @urmi,
have you registered for Open Data Hub and then created an API Key? If not you can following the instructions here: User Guide | Transport Open Data
Hi Marcie,
Yes i have registered and used the API key. I was able to access Live traffic hazards but was unable to use it. hence the query
I see now why I kept failing before.
What I still don’t get is the format apikey ${token}
which it feels so odd.
What’s the point of it, other than making things more confusing?
why not just use token
directly like most normal apps?
Hi,
This has been our authentication policy. We have been using this method for a considerable time, and changing the policy would mean inconveniencing users who have apps set up already that include API key in their request headers.
Regards,
Suraj