lxyu / weibo

Python sina weibo sdk. More simpler and cleaner than the official one.
http://lxyu.github.io/weibo/
236 stars 82 forks source link

如何不用通过浏览器请求获取到code #15

Closed hillerliao closed 7 years ago

hillerliao commented 8 years ago

如何不用通过浏览器请求获取到code,就像官方的sdk那样,最好能实现这个。

iewaij commented 7 years ago

使用账号认证方式即可跳过 code 获取。

>>> from weibo import Client
>>> c = Client(API_KEY, API_SECRET, REDIRECT_URI, username='admin', password='secret')
>>> c.get('users/show', uid=1282440983)