iAuth python client
============================
北航iAuth2.0系统python客户端,包含WSC(Web Site Client)和UAC(User Agent Client)的实现,我用它来从ihome收消息。。。
**iauth is a protocal which allows third part APPs to acess user data on a Resource Provider**
iAuth is corrently used in [BUAA ihome](http://i.buaa.edu.cn "i北航").
Corrently there is only one script in this project. You can extend or reuse it in your code---- it's under GPLv2 or later.
Thought the main purpose is teaching you how to implent a minimum but fully functional UAC, but you can still use this script to recieve messages in IHOME. Here is a [hand by hand toturial](http://git.oschina.net/songjinghe/iauth_python_client/wikis/手把手教你用iAuth的python客户端查看ihome新通知(新消息) "手把手教你用iAuth的python客户端查看ihome新通知(新消息)") to help you use this script....
There are 2 kinds of iauth app client: **UAC(User Agent Client)** and WSC(Web Site Client). And this python project mainly aimed at acting as an UAC. Also UAC is the easiest client type to be developed.
#### PPS:我在代码里放了一些调试用的输出,你可以把它去掉。。。
# How to use
### STEP 1 Get Verifier
get verifier code from http://i.buaa.edu.cn/plugin.php?pluginid=apps&ac=detail&appsid=50 or http://i.buaa.edu.cn/plugin.php?pluginid=apps&ac=detail&appsid=52
OK, here you get a verifier. Say, dRV6jM90jAkYg766 for example.
### STEP 2 Get Access token and secret
in the terminal, type:
```shell
==>python iauth.py auth dRV6jM90jAkYg766
```
if everything is OK, you should get something like this:
```shell
==>python iauth.py auth dRV6jM90jAkYg766
uid=8888&access_token=b44df1c0249f8b2c5d1d1340071193f94531cae8&access_secret=88699276c01fca1234146fb557f7bea3
==>
```
### STEP 3 Call API with Access token and secret
```shell
==>python iauth.py b44df1c0249f8b2c5d1d1340071193f94531cae8 88699276c01fca1234146fb557f7bea3
```
OK, now we got the data from http://i.buaa.edu.cn/plugin/iauthClient/api/do_getallthings.php (by default)
# Notes
For more detailed information about iAuth, please read this blog on ihome.
If you are interested in building a productive APP, read this blog.
没有合适的资源?快使用搜索试试~ 我知道了~
北航iAuth2.0系统python客户端.rar
共4个文件
py:1个
pdf:1个
md:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 31 浏览量
2024-04-15
12:08:21
上传
评论
收藏 650KB RAR 举报
温馨提示
北航iAuth2.0系统python客户端,包含WSC(Web Site Client)和UAC(User Agent Client)的实现,我用它来从ihome收消息。。。 iauth is a protocal which allows third part APPs to acess user data on a Resource Provider iAuth is corrently used in BUAA ihome. Corrently there is only one script in this project. You can extend or reuse it in your code---- it's under GPLv2 or later. Thought the main purpose is teaching you how to implent a minimum but fully functional UAC, but you can still use this script to recieve messages in IHOME.
资源推荐
资源详情
资源评论
收起资源包目录
北航iAuth2.0系统python客户端.rar (4个子文件)
北航iAuth2.0系统python客户端
计算机毕业总结.pdf 647KB
iauth_python_client-master
iauth.py 6KB
.gitignore 315B
README.md 2KB
共 4 条
- 1
资源评论
野生的狒狒
- 粉丝: 2773
- 资源: 2222
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功