def __call__(self, r):
        """Standard auth hook on the "requests" request r"""
        access_token = self.get_auth()['access_token']
        r.headers['Authorization'] = 'OAuth %s' % access_token
        return r
def __call__ ( self , r ) : access_token = self . get_auth ( ) [ 'access_token' ] r . headers [ 'Authorization' ] = 'OAuth %s' % access_token return r
Standard auth hook on the "requests" request r