AstronomyAPI / Samples

Examples for Astronomy API
https://astronomyapi.com
MIT License
31 stars 3 forks source link

Not able to call the api #15

Closed levydanqc closed 3 years ago

levydanqc commented 3 years ago

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

astroanu commented 3 years ago

probably similar to this issue on c# https://github.com/AstronomyAPI/Samples/issues/14#issuecomment-745199098

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

example curl code here should work with your hash too https://github.com/AstronomyAPI/Samples/issues/14#issuecomment-746074596

astroanu commented 3 years ago

closing due to inactivity