client.py 文件源码

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

项目:python-netatmo-client 作者: antechrestos 项目源码 文件源码
def _is_token_expired(i):
        if i.status_code == httplib.FORBIDDEN and type(i.body) == dict and i.body.get('error') is not None:
            code = i.body['error'].get('code')
            return code == NetatmoClient.INVALID_ACCESS_TOKEN or code == NetatmoClient.ACCESS_TOKEN_EXPIRED
        else:
            return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号