from requests.auth import AuthBase


class AccessTokenAuth(AuthBase):

    def __init__(self, access_token):
        self.token = access_token

    def __call__(self, req):
        if self.token:
            req.headers['access-token'] = self.token

824bb510dee16c62082d09726407a38f86eba042
<mask token>

<mask token>


class AccessTokenAuth(AuthBase):

    def __init__(self, access_token):
        self.token = access_token
    <mask token>

<mask token>


class AccessTokenAuth(AuthBase):

    def __init__(self, access_token):
        self.token = access_token

    def __call__(self, req):
        if self.token:
            req.headers['access-token'] = self.token

from requests.auth import AuthBase


class AccessTokenAuth(AuthBase):

    def __init__(self, access_token):
        self.token = access_token

    def __call__(self, req):
        if self.token:
            req.headers['access-token'] = self.token
