AstronomyAPI/Samples

Not able to call the api

Closed this issue · 2 comments

Hi, I'm using a python script to call your astronomy api and I think I've tried every possible way to requests the data, but nothing seems to work.
This error I get is 'User is not authorized to access this ressource with an explicit deny'

I think something is wrong with the headers :
headers = {
'Authorization': 'Basic {}'.format(key)
}
My key is :
key = b64.b64encode(keystr.encode())
And my key string is equal to my Application ID + ':' + Application Secret

Hope we'll find a solution.
Thanks

probably similar to this issue on c# #14 (comment)

you're not passing the basic header correctly or the hash is not correct?

example curl code here should work with your hash too #14 (comment)

closing due to inactivity