def _is_token_expired(response):
if response.status_code == httplib.UNAUTHORIZED:
try:
json_data = response.json()
return json_data.get('message', '') == 'Invalid credentials'
except:
return False
else:
return False
评论列表
文章目录