ianklatzco / atprototools

easy-to-use and ergonomic library for interacting with bluesky
MIT License
62 stars 11 forks source link

Added `Session.authedGet` and `Session.authedPost` #30

Open BSculfor opened 1 year ago

BSculfor commented 1 year ago

These two methods cut down on repeated code by adding {"Authorization": "Bearer " + self.ATP_AUTH_TOKEN} to the header of a GET or POST request, and prefixing self.ATP_HOST to the start if the URL doesn't start with "http".

ianklatzco commented 1 year ago

looks great! tests seem they might be failing?

image