subscription-create.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:lira 作者: HumanCellAtlas 项目源码 文件源码
def make_request(js, dss_url, key_file):
    scopes = ['https://www.googleapis.com/auth/userinfo.email']
    credentials = ServiceAccountCredentials.from_json_keyfile_name(key_file, scopes)
    h = credentials.authorize(Http())
    headers = {'Content-type': 'application/json'}
    response, content = h.request(dss_url, 'PUT', body=json.dumps(js), headers=headers)
    print(content)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号