Example #1
0
"""
Avaliable API:
api.user.info
api.user.otherinfo
api.user.update
api.user.updatehead
api.user.userinfo
NOTE:
api.me
api.info
api.user.info
功能相同
"""

me = api.info()

print me.name, me.nick, me.location, me.introduction

print me.self                           # is this user myself?

me.introduction = 'modify from pyqqweibo!!!'
me.update()                             # update infomation

me = api.info()
print me.introduction

api.user.updatehead('/path/to/your/head/img.fmt')

ret = api.user.otherinfo('NBA')