This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Home
什么是jQuery Douban
jQuery Douban是封装豆瓣API的jQuery插件。提供授权认证,操作豆瓣数据等功能
什么时候使用jQuery Douban
- 获取或操作豆瓣广播,日记等资源的时候
为什么不直接使用豆瓣API
- 更喜欢jQuery风格的代码
- 不愿人工处理诸如 {$t:“9787543632608”, @name:"isbn13"} 这样没有味道的JSON feed
怎样使用jQuery Douban
期望中应该是这样子的
// 创建豆瓣服务实例 var service = $.douban({ apiKey: "apiKey", apiSecret: "apiSecret" }); // 登录豆瓣帐户 var accessToken = { key: "accessKey", secret: "accessSecret"} service.login(accessToken); if (service.isAuthenticated()) { // 添加一条广播 var miniblog = service.miniblog.add("添加一条广播"); // 删除一条广播 service.miniblog.delete(miniblog); }






