Open BSculfor opened 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".
{"Authorization": "Bearer " + self.ATP_AUTH_TOKEN}
self.ATP_HOST
looks great! tests seem they might be failing?
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 prefixingself.ATP_HOST
to the start if the URL doesn't start with "http".