def prepare_token_uri(self, scope=list()):
q = Qry('token')
q.add_param('client_id', self.client_id)
q.add_param('client_secret', self.client_secret)
q.add_param('grant_type', 'client_credentials')
q.add_param('scope', ' '.join(scope))
return '?'.join([q.url, urlencode(q.params)])
clients.py 文件源码
python
阅读 30
收藏 0
点赞 0
评论 0
评论列表
文章目录