def getUserProfine(mid):
# midstr= ','.join(mids)
url = "https://api.line.me/v2/bot/profile/"+mid
result = urlfetch.fetch(
url=url,
method=urlfetch.GET,
headers={
'Authorization': 'Bearer '+const.ChannelAccessToken
}
)
if result.status_code == 200:
logging.debug(result.content)
else:
logging.debug(result.content)
jsonstr = result.content
jsonobj = json.loads(jsonstr)
return jsonobj
评论列表
文章目录