cloud_api.py 文件源码

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

项目:python-cozify 作者: Artanicus 项目源码 文件源码
def refreshsession(cloud_token):
    """1:1 implementation of user/refreshsession

    Args:
        cloud_token(str) Cloud remote authentication token.

    Returns:
        str: New cloud remote authentication token. Not automatically stored into state.
    """
    headers = {
            'Authorization': cloud_token
    }
    response = requests.get(cloudBase + 'user/refreshsession', headers=headers)
    if response.status_code == 200:
        return response.text
    else:
        raise APIError(response.status_code, response.text)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号