├── nodeweibo.js ├── doc ├── pak.png ├── weibo.jpg ├── generate_api_doc.js └── api.md ├── examples ├── setting.json └── example.js ├── .project ├── .gitignore ├── package.json ├── lib ├── Weibo.js └── config │ └── config.json └── README.md /nodeweibo.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/Weibo.js'); -------------------------------------------------------------------------------- /doc/pak.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vczero/node-weibo/HEAD/doc/pak.png -------------------------------------------------------------------------------- /doc/weibo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vczero/node-weibo/HEAD/doc/weibo.jpg -------------------------------------------------------------------------------- /examples/setting.json: -------------------------------------------------------------------------------- 1 | { 2 | "appKey":"4263807830", 3 | "appSecret":"f314a703b2586510ae62a8baaef1570e", 4 | "redirectUrl":"127.0.0.1:3000" 5 | } -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | nodeweibo 4 | 5 | 6 | 7 | 8 | 9 | com.aptana.ide.core.unifiedBuilder 10 | 11 | 12 | 13 | 14 | 15 | com.aptana.projects.webnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Runtime data 6 | pids 7 | *.pid 8 | *.seed 9 | 10 | # Directory for instrumented libs generated by jscoverage/JSCover 11 | lib-cov 12 | 13 | # Coverage directory used by tools like istanbul 14 | coverage 15 | 16 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 17 | .grunt 18 | 19 | # Compiled binary addons (http://nodejs.org/api/addons.html) 20 | build/Release 21 | 22 | # Dependency directory 23 | # Commenting this out is preferred by some people, see 24 | # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- 25 | node_modules 26 | 27 | # Users Environment Variables 28 | .lock-wscript 29 | -------------------------------------------------------------------------------- /doc/generate_api_doc.js: -------------------------------------------------------------------------------- 1 | var urlconfig = require('../lib/config/config.json'); 2 | 3 | console.log('## nodeweibo Supported API'); 4 | console.log(''); 5 | console.log('generated on ' + new Date()); 6 | console.log(''); 7 | 8 | for(var name in urlconfig) { 9 | var funcBody = urlconfig[name]; 10 | console.log('### ' + name + ' class'); 11 | console.log('| function name | doc |'); 12 | console.log('| ------------- | --- |'); 13 | for(var index in funcBody){ 14 | var func_full_name = 'Weibo.' + name + '.' + funcBody[index].func; 15 | var func_short_path = funcBody[index].path; 16 | if (func_short_path.indexOf('.json') == func_short_path.length - 5) 17 | func_short_path = func_short_path.substring(0, func_short_path.length - 5); 18 | var doc_url = 'http://open.weibo.com/wiki' + func_short_path; 19 | console.log('| ' + func_full_name + ' | [' + func_short_path + '](' + doc_url + ') | ' ); 20 | } 21 | console.log(''); 22 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nodeweibo", 3 | "version": "2.0.4", 4 | "description": "新浪微博OAuth2接口封装,基于Node.js平台(package Weibo API base on Node.js)", 5 | "main": "nodeweibo.js", 6 | "directories": { 7 | "doc": "doc", 8 | "example": "examples" 9 | }, 10 | "scripts": { 11 | "test": "example.js" 12 | }, 13 | "repository": { 14 | "type": "git", 15 | "url": "https://github.com/vczero/node-weibo.git" 16 | }, 17 | "author": "vczero, xizhonghua", 18 | "license": "Apache Licence 2.0", 19 | "bugs": { 20 | "url": "https://github.com/vczero/node-weibo/issues" 21 | }, 22 | "keywords": [ 23 | "weibo", 24 | "weibo oauth2", 25 | "OAuth2", 26 | "Node.js", 27 | "Node-weibo", 28 | "nodeweibo", 29 | "node-weibo", 30 | "node weibo", 31 | "weibo node", 32 | "weibo-node", 33 | "weibonode", 34 | "weiboNode" 35 | ], 36 | "homepage": "https://github.com/vczero/node-weibo", 37 | "dependencies": { 38 | "open": "*" 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /examples/example.js: -------------------------------------------------------------------------------- 1 | 2 | var Weibo = require('../nodeweibo'); // require('nodeweibo') also works if you have installed nodeweibo via npm 3 | var setting = require('./setting.json'); // get setting (appKey, appSecret, etc.) 4 | 5 | /* 6 | +------------------------------------------------- 7 | (1)注册账号:http://open.weibo.com/ 8 | (2)在./setting.json中配置您的开发账号。 9 | (3)搞清楚微博的认证机制即oauth2.0认证原理。 10 | (4)第3点很重要,确保你理解这种开放方式。 11 | +------------------------------------------------- 12 | */ 13 | 14 | /* 15 | initialize weibo before using it 16 | */ 17 | Weibo.init(setting); 18 | 19 | 20 | /* 21 | +------------------------------------------------- 22 | 例1:开启微博认证 23 | 启动认证后,将在浏览器器打开一个窗口,url中含有code参数 24 | 注意:运行其中一个例子时,须注释掉另一个例子。 25 | +------------------------------------------------- 26 | */ 27 | 28 | Weibo.authorize(); 29 | 30 | 31 | /* 32 | +-------------------------------------------------- 33 | 例2:需要获取access_token 34 | (1)阅读微博开放平台API 35 | 如:http://open.weibo.com/wiki/OAuth2/access_token, 36 | 将必要的参数写进jsonParas对象。 37 | (2)在回调中打印出获取的数据 38 | (3)code是您浏览器窗口获得的code。 39 | (4)注意:如运行本例子,请注释掉第1个例子,且code职能调用一次, 40 | 会随着认证不断更新。一个用户一个access_token。 41 | +--------------------------------------------------- 42 | */ 43 | // var jsonParas = { 44 | // code:"the value of your browser's parameter code", 45 | // grant_type:"authorization_code" 46 | // }; 47 | 48 | // Weibo.OAuth2.access_token(jsonParas,function(data){ 49 | // console.log(data); 50 | // }); 51 | 52 | 53 | /* 54 | example 3, get public timeline 55 | */ 56 | 57 | // // set parameters 58 | // var para = { 59 | // "source": Weibo.appKey.appKey, 60 | // "access_token": 'your access_token here' 61 | // }; 62 | 63 | // // get public timeline 64 | // Weibo.Statuses.public_timeline(para, function(data){ 65 | // console.log(data); 66 | // }); 67 | -------------------------------------------------------------------------------- /lib/Weibo.js: -------------------------------------------------------------------------------- 1 | var open = require('open'), 2 | https = require('https'), 3 | querystring = require('querystring'), 4 | urlconfig = require('./config/config.json'); 5 | 6 | var Weibo = {}; 7 | 8 | //Weito添加类 9 | (function(){ 10 | var paras = urlconfig; 11 | 12 | // must initialize before using Weibo Object 13 | Weibo.init = function(setting) { 14 | Weibo.appKey = { 15 | "appKey":setting.appKey, 16 | "appSecret":setting.appSecret, 17 | "redirectUrl":setting.redirectUrl 18 | }; 19 | }; 20 | 21 | Weibo.getGetURL = function(paras){ 22 | var arr = []; 23 | for(var key in paras){ 24 | arr.push(key + '=' + paras[key]); 25 | } 26 | var path = '?client_id=' + Weibo.appKey.appKey + '&redirect_uri=' + Weibo.appKey.redirectUrl 27 | + '&client_secret=' + Weibo.appKey.appSecret; 28 | if(arr) 29 | return path + '&' + arr.join('&'); 30 | return path + arr.join('&'); 31 | }; 32 | 33 | Weibo.getPostURL = function(paras){ 34 | if(!paras) 35 | paras = {}; 36 | paras.client_id = Weibo.appKey.appKey; 37 | paras.redirect_uri = Weibo.appKey.redirectUrl; 38 | paras.client_secret = Weibo.appKey.appSecret; 39 | return paras; 40 | }; 41 | 42 | Weibo.authorize = function(){ 43 | var path = 'https://api.weibo.com/oauth2/authorize' + Weibo.getGetURL(); 44 | open(path); 45 | }; 46 | 47 | for(var name in urlconfig){ 48 | var funcBody = urlconfig[name]; 49 | Weibo[name] = {}; 50 | for(var index in funcBody){ 51 | //Weibo命名空间下的类添加静态函数 52 | Weibo[name][funcBody[index].func] = createFunc(funcBody[index]); 53 | } 54 | } 55 | 56 | function createFunc(urlParas){ 57 | return function(pJson, callback){ 58 | var options = {}; 59 | var post_data = ''; 60 | options.hostname = urlParas.host.replace('https://',''); 61 | options.port = 443; 62 | options.path = urlParas.path; 63 | 64 | if(urlParas.rmethod[0] === 'GET'){ 65 | options.path = options.path + Weibo.getGetURL(arguments[0]); 66 | options.method = 'GET'; 67 | }else{ 68 | options.method = 'POST'; 69 | options.rejectUnauthorized = false; 70 | var jsonAgrs = Weibo.getPostURL(arguments[0]); 71 | post_data = querystring.stringify(jsonAgrs); 72 | options.headers = { 73 | 'Content-Type': 'application/x-www-form-urlencoded', 74 | 'Content-Length': post_data.length 75 | }; 76 | } 77 | 78 | var req = https.request(options, function(res) { 79 | var full_data = ""; 80 | res.on('data', function(data) { 81 | full_data += data; 82 | }); 83 | 84 | res.on('end', function(){ 85 | var buf = new Buffer(full_data); 86 | var jsonData = {}; 87 | if(buf){ 88 | try{ 89 | var jsonData = JSON.parse(buf); 90 | }catch(e){ 91 | console.log('服务器请求数据失败'); 92 | } 93 | } 94 | callback(jsonData); 95 | }); 96 | }); 97 | 98 | req.end(post_data); 99 | req.on('error', function(e) { 100 | console.error(e); 101 | }); 102 | }; 103 | } 104 | })(); 105 | 106 | module.exports = Weibo; -------------------------------------------------------------------------------- /doc/api.md: -------------------------------------------------------------------------------- 1 | ## nodeweibo Supported API 2 | 3 | generated on Fri Nov 28 2014 14:24:16 GMT-0500 (EST) 4 | 5 | ### OAuth2 class 6 | | function name | doc | 7 | | ------------- | --- | 8 | | Weibo.OAuth2.access_token | [/oauth2/access_token](http://open.weibo.com/wiki/oauth2/access_token) | 9 | | Weibo.OAuth2.get_token_info | [/oauth2/get_token_info](http://open.weibo.com/wiki/oauth2/get_token_info) | 10 | 11 | ### Statuses class 12 | | function name | doc | 13 | | ------------- | --- | 14 | | Weibo.Statuses.public_timeline | [/2/statuses/public_timeline](http://open.weibo.com/wiki/2/statuses/public_timeline) | 15 | | Weibo.Statuses.friends_timeline | [/2/statuses/friends_timeline](http://open.weibo.com/wiki/2/statuses/friends_timeline) | 16 | | Weibo.Statuses.home_timeline | [/2/statuses/home_timeline](http://open.weibo.com/wiki/2/statuses/home_timeline) | 17 | | Weibo.Statuses.friends_timeline_ids | [/2/statuses/friends_timeline/ids](http://open.weibo.com/wiki/2/statuses/friends_timeline/ids) | 18 | | Weibo.Statuses.user_timeline | [/2/statuses/user_timeline](http://open.weibo.com/wiki/2/statuses/user_timeline) | 19 | | Weibo.Statuses.user_timeline_ids | [/2/statuses/user_timeline/ids](http://open.weibo.com/wiki/2/statuses/user_timeline/ids) | 20 | | Weibo.Statuses.timeline_batch | [/2/statuses/timeline_batch](http://open.weibo.com/wiki/2/statuses/timeline_batch) | 21 | | Weibo.Statuses.repost_timeline | [/2/statuses/repost_timeline](http://open.weibo.com/wiki/2/statuses/repost_timeline) | 22 | | Weibo.Statuses.repost_timeline_ids | [/2/statuses/repost_timeline/ids](http://open.weibo.com/wiki/2/statuses/repost_timeline/ids) | 23 | | Weibo.Statuses.mentions | [/2/statuses/mentions](http://open.weibo.com/wiki/2/statuses/mentions) | 24 | | Weibo.Statuses.mentions_ids | [/2/statuses/mentions/ids](http://open.weibo.com/wiki/2/statuses/mentions/ids) | 25 | | Weibo.Statuses.bilateral_timeline | [/2/statuses/bilateral_timeline](http://open.weibo.com/wiki/2/statuses/bilateral_timeline) | 26 | | Weibo.Statuses.show | [/2/statuses/show](http://open.weibo.com/wiki/2/statuses/show) | 27 | | Weibo.Statuses.show_batch | [/2/statuses/show_batch](http://open.weibo.com/wiki/2/statuses/show_batch) | 28 | | Weibo.Statuses.querymid | [/2/statuses/querymid](http://open.weibo.com/wiki/2/statuses/querymid) | 29 | | Weibo.Statuses.queryid | [/2/statuses/queryid](http://open.weibo.com/wiki/2/statuses/queryid) | 30 | | Weibo.Statuses.count | [/2/statuses/count](http://open.weibo.com/wiki/2/statuses/count) | 31 | | Weibo.Statuses.to_me | [/2/statuses/to_me](http://open.weibo.com/wiki/2/statuses/to_me) | 32 | | Weibo.Statuses.to_me_ids | [/2/statuses/to_me/ids](http://open.weibo.com/wiki/2/statuses/to_me/ids) | 33 | | Weibo.Statuses.go | [/2/statuses/go](http://open.weibo.com/wiki/2/statuses/go) | 34 | | Weibo.Statuses.emotions | [/2/emotions](http://open.weibo.com/wiki/2/emotions) | 35 | | Weibo.Statuses.repost | [/2/statuses/repost](http://open.weibo.com/wiki/2/statuses/repost) | 36 | | Weibo.Statuses.destroy | [/2/statuses/destroy](http://open.weibo.com/wiki/2/statuses/destroy) | 37 | | Weibo.Statuses.update | [/2/statuses/update](http://open.weibo.com/wiki/2/statuses/update) | 38 | | Weibo.Statuses.upload | [/2/statuses/upload](http://open.weibo.com/wiki/2/statuses/upload) | 39 | | Weibo.Statuses.upload_url_text | [/2/statuses/upload_url_text](http://open.weibo.com/wiki/2/statuses/upload_url_text) | 40 | | Weibo.Statuses.filter_create | [/2/statuses/filter/create](http://open.weibo.com/wiki/2/statuses/filter/create) | 41 | | Weibo.Statuses.mentions_shield | [/2/statuses/mentions/shield](http://open.weibo.com/wiki/2/statuses/mentions/shield) | 42 | | Weibo.Statuses.tags | [/2/statuses/tags](http://open.weibo.com/wiki/2/statuses/tags) | 43 | | Weibo.Statuses.tags_show_batch | [/2/statuses/tags/show_batch](http://open.weibo.com/wiki/2/statuses/tags/show_batch) | 44 | | Weibo.Statuses.tag_timeline_ids | [/2/statuses/tag_timeline/ids](http://open.weibo.com/wiki/2/statuses/tag_timeline/ids) | 45 | | Weibo.Statuses.tags_create | [/2/statuses/tags/create](http://open.weibo.com/wiki/2/statuses/tags/create) | 46 | | Weibo.Statuses.tags_destroy | [/2/statuses/tags/destroy](http://open.weibo.com/wiki/2/statuses/tags/destroy) | 47 | | Weibo.Statuses.tags_update | [/2/statuses/tags/update](http://open.weibo.com/wiki/2/statuses/tags/update) | 48 | | Weibo.Statuses.update_tags | [/2/statuses/update_tags](http://open.weibo.com/wiki/2/statuses/update_tags) | 49 | 50 | ### Comments class 51 | | function name | doc | 52 | | ------------- | --- | 53 | | Weibo.Comments.show | [/2/comments/show](http://open.weibo.com/wiki/2/comments/show) | 54 | | Weibo.Comments.by_me | [/2/comments/by_me](http://open.weibo.com/wiki/2/comments/by_me) | 55 | | Weibo.Comments.to_me | [/2/comments/to_me](http://open.weibo.com/wiki/2/comments/to_me) | 56 | | Weibo.Comments.timeline | [/2/comments/timeline](http://open.weibo.com/wiki/2/comments/timeline) | 57 | | Weibo.Comments.mentions | [/2/comments/mentions](http://open.weibo.com/wiki/2/comments/mentions) | 58 | | Weibo.Comments.show_batch | [/2/comments/show_batch](http://open.weibo.com/wiki/2/comments/show_batch) | 59 | | Weibo.Comments.create | [/2/comments/create](http://open.weibo.com/wiki/2/comments/create) | 60 | | Weibo.Comments.destroy | [/2/comments/destroy](http://open.weibo.com/wiki/2/comments/destroy) | 61 | | Weibo.Comments.destroy_batch | [/2/comments/destroy_batch](http://open.weibo.com/wiki/2/comments/destroy_batch) | 62 | | Weibo.Comments.reply | [/2/comments/reply](http://open.weibo.com/wiki/2/comments/reply) | 63 | 64 | ### Users class 65 | | function name | doc | 66 | | ------------- | --- | 67 | | Weibo.Users.show | [/2/users/show](http://open.weibo.com/wiki/2/users/show) | 68 | | Weibo.Users.domain_show | [/2/users/domain_show](http://open.weibo.com/wiki/2/users/domain_show) | 69 | | Weibo.Users.counts | [/2/users/counts](http://open.weibo.com/wiki/2/users/counts) | 70 | | Weibo.Users.get_top_status | [/2/users/get_top_status](http://open.weibo.com/wiki/2/users/get_top_status) | 71 | | Weibo.Users.set_top_status | [/2/users/set_top_status](http://open.weibo.com/wiki/2/users/set_top_status) | 72 | | Weibo.Users.cancel_top_status | [/2/users/cancel_top_status](http://open.weibo.com/wiki/2/users/cancel_top_status) | 73 | 74 | ### Friendships class 75 | | function name | doc | 76 | | ------------- | --- | 77 | | Weibo.Friendships.friends | [/2/friendships/friends](http://open.weibo.com/wiki/2/friendships/friends) | 78 | | Weibo.Friendships.friends_remark_batch | [/2/friendships/friends/remark_batch](http://open.weibo.com/wiki/2/friendships/friends/remark_batch) | 79 | | Weibo.Friendships.friends_in_common | [/2/friendships/friends/in_common](http://open.weibo.com/wiki/2/friendships/friends/in_common) | 80 | | Weibo.Friendships.friends_bilateral | [/2/friendships/friends/bilateral](http://open.weibo.com/wiki/2/friendships/friends/bilateral) | 81 | | Weibo.Friendships.friends_bilateral_ids | [/2/friendships/friends/bilateral/ids](http://open.weibo.com/wiki/2/friendships/friends/bilateral/ids) | 82 | | Weibo.Friendships.friends_ids | [/2/friendships/friends/ids](http://open.weibo.com/wiki/2/friendships/friends/ids) | 83 | | Weibo.Friendships.followers | [/2/friendships/followers](http://open.weibo.com/wiki/2/friendships/followers) | 84 | | Weibo.Friendships.followers_ids | [/2/friendships/followers/ids](http://open.weibo.com/wiki/2/friendships/followers/ids) | 85 | | Weibo.Friendships.followers_active | [/2/friendships/followers/active](http://open.weibo.com/wiki/2/friendships/followers/active) | 86 | | Weibo.Friendships.friends_chain_followers | [/2/friendships/friends_chain/followers](http://open.weibo.com/wiki/2/friendships/friends_chain/followers) | 87 | | Weibo.Friendships.show | [/2/friendships/show](http://open.weibo.com/wiki/2/friendships/show) | 88 | | Weibo.Friendships.create | [/2/friendships/create](http://open.weibo.com/wiki/2/friendships/create) | 89 | | Weibo.Friendships.destroy | [/2/friendships/destroy](http://open.weibo.com/wiki/2/friendships/destroy) | 90 | | Weibo.Friendships.followers_destroy | [/2/friendships/followers/destroy](http://open.weibo.com/wiki/2/friendships/followers/destroy) | 91 | | Weibo.Friendships.followers_destroy | [/2/friendships/followers/destroy](http://open.weibo.com/wiki/2/friendships/followers/destroy) | 92 | | Weibo.Friendships.remark_update | [/2/friendships/remark/update](http://open.weibo.com/wiki/2/friendships/remark/update) | 93 | | Weibo.Friendships.groups | [/2/friendships/groups](http://open.weibo.com/wiki/2/friendships/groups) | 94 | | Weibo.Friendships.groups_timeline | [/2/friendships/groups/timeline](http://open.weibo.com/wiki/2/friendships/groups/timeline) | 95 | | Weibo.Friendships.groups_timeline_ids | [/2/friendships/groups/timeline/ids](http://open.weibo.com/wiki/2/friendships/groups/timeline/ids) | 96 | | Weibo.Friendships.groups_members | [/2/friendships/groups/members](http://open.weibo.com/wiki/2/friendships/groups/members) | 97 | | Weibo.Friendships.groups_members_ids | [/2/friendships/groups/members/ids](http://open.weibo.com/wiki/2/friendships/groups/members/ids) | 98 | | Weibo.Friendships.groups_members_description | [/2/friendships/groups/members/description](http://open.weibo.com/wiki/2/friendships/groups/members/description) | 99 | | Weibo.Friendships.groups_is_member | [/2/friendships/groups/is_member](http://open.weibo.com/wiki/2/friendships/groups/is_member) | 100 | | Weibo.Friendships.groups_listed | [/2/friendships/groups/listed](http://open.weibo.com/wiki/2/friendships/groups/listed) | 101 | | Weibo.Friendships.groups_show | [/2/friendships/groups/show](http://open.weibo.com/wiki/2/friendships/groups/show) | 102 | | Weibo.Friendships.groups_show_batch | [/2/friendships/groups/show_batch](http://open.weibo.com/wiki/2/friendships/groups/show_batch) | 103 | | Weibo.Friendships.groups_create | [/2/friendships/groups/create](http://open.weibo.com/wiki/2/friendships/groups/create) | 104 | | Weibo.Friendships.groups_update | [/2/friendships/groups/update](http://open.weibo.com/wiki/2/friendships/groups/update) | 105 | | Weibo.Friendships.groups_destroy | [/2/friendships/groups/destroy](http://open.weibo.com/wiki/2/friendships/groups/destroy) | 106 | | Weibo.Friendships.groups_members_add | [/2/friendships/groups/members/add](http://open.weibo.com/wiki/2/friendships/groups/members/add) | 107 | | Weibo.Friendships.groups_members_add_batch | [/2/friendships/groups/members/add_batch](http://open.weibo.com/wiki/2/friendships/groups/members/add_batch) | 108 | | Weibo.Friendships.groups_members_update | [/2/friendships/groups/members/update](http://open.weibo.com/wiki/2/friendships/groups/members/update) | 109 | | Weibo.Friendships.groups_members_destroy | [/2/friendships/groups/members/destroy](http://open.weibo.com/wiki/2/friendships/groups/members/destroy) | 110 | | Weibo.Friendships.groups_order | [/2/friendships/groups/order](http://open.weibo.com/wiki/2/friendships/groups/order) | 111 | 112 | ### Account class 113 | | function name | doc | 114 | | ------------- | --- | 115 | | Weibo.Account.get_privacy | [/2/account/get_privacy](http://open.weibo.com/wiki/2/account/get_privacy) | 116 | | Weibo.Account.profile_school_list | [/2/account/profile/school_list](http://open.weibo.com/wiki/2/account/profile/school_list) | 117 | | Weibo.Account.rate_limit_status | [/2/account/rate_limit_status](http://open.weibo.com/wiki/2/account/rate_limit_status) | 118 | | Weibo.Account.profile_email | [/2/account/profile/email](http://open.weibo.com/wiki/2/account/profile/email) | 119 | | Weibo.Account.get_uid | [/2/account/get_uid](http://open.weibo.com/wiki/2/account/get_uid) | 120 | | Weibo.Account.end_session | [/2/account/end_session](http://open.weibo.com/wiki/2/account/end_session) | 121 | 122 | ### Favorites class 123 | | function name | doc | 124 | | ------------- | --- | 125 | | Weibo.Favorites.favorites | [/2/favorites](http://open.weibo.com/wiki/2/favorites) | 126 | | Weibo.Favorites.ids | [/2/favorites/ids](http://open.weibo.com/wiki/2/favorites/ids) | 127 | | Weibo.Favorites.show | [/2/favorites/show](http://open.weibo.com/wiki/2/favorites/show) | 128 | | Weibo.Favorites.by_tags | [/2/favorites/by_tags](http://open.weibo.com/wiki/2/favorites/by_tags) | 129 | | Weibo.Favorites.by_tags_ids | [/2/account/get_uid](http://open.weibo.com/wiki/2/account/get_uid) | 130 | | Weibo.Favorites.end_session | [/2/favorites/by_tags/ids](http://open.weibo.com/wiki/2/favorites/by_tags/ids) | 131 | | Weibo.Favorites.create | [/2/favorites/create](http://open.weibo.com/wiki/2/favorites/create) | 132 | | Weibo.Favorites.destroy | [/2/favorites/destroy](http://open.weibo.com/wiki/2/favorites/destroy) | 133 | | Weibo.Favorites.destroy_batch | [/2/favorites/destroy_batch](http://open.weibo.com/wiki/2/favorites/destroy_batch) | 134 | | Weibo.Favorites.tags_update | [/2/favorites/tags/update](http://open.weibo.com/wiki/2/favorites/tags/update) | 135 | | Weibo.Favorites.tags_update_batch | [/2/favorites/tags/update_batch](http://open.weibo.com/wiki/2/favorites/tags/update_batch) | 136 | | Weibo.Favorites.tags_destroy_batch | [/2/favorites/tags/destroy_batch](http://open.weibo.com/wiki/2/favorites/tags/destroy_batch) | 137 | 138 | ### Trends class 139 | | function name | doc | 140 | | ------------- | --- | 141 | | Weibo.Trends.hourly | [/2/trends/hourly](http://open.weibo.com/wiki/2/trends/hourly) | 142 | | Weibo.Trends.daily | [/2/trends/daily](http://open.weibo.com/wiki/2/trends/daily) | 143 | | Weibo.Trends.weekly | [/2/trends/weekly](http://open.weibo.com/wiki/2/trends/weekly) | 144 | 145 | ### Tags class 146 | | function name | doc | 147 | | ------------- | --- | 148 | | Weibo.Tags.tags | [/2/tags](http://open.weibo.com/wiki/2/tags) | 149 | | Weibo.Tags.tags_batch | [/2/tags/tags_batch](http://open.weibo.com/wiki/2/tags/tags_batch) | 150 | | Weibo.Tags.suggestions | [/2/tags/suggestions](http://open.weibo.com/wiki/2/tags/suggestions) | 151 | | Weibo.Tags.create | [/2/tags/create](http://open.weibo.com/wiki/2/tags/create) | 152 | | Weibo.Tags.destroy | [/2/tags/destroy](http://open.weibo.com/wiki/2/tags/destroy) | 153 | | Weibo.Tags.destroy_batch | [/2/tags/destroy_batch](http://open.weibo.com/wiki/2/tags/destroy_batch) | 154 | 155 | ### Register class 156 | | function name | doc | 157 | | ------------- | --- | 158 | | Weibo.Register.verify_nickname | [/2/register/verify_nickname](http://open.weibo.com/wiki/2/register/verify_nickname) | 159 | 160 | ### Search class 161 | | function name | doc | 162 | | ------------- | --- | 163 | | Weibo.Search.suggestions_users | [/2/search/suggestions/users](http://open.weibo.com/wiki/2/search/suggestions/users) | 164 | | Weibo.Search.suggestions_schools | [/2/search/suggestions/schools](http://open.weibo.com/wiki/2/search/suggestions/schools) | 165 | | Weibo.Search.suggestions_companies | [/2/search/suggestions/companies](http://open.weibo.com/wiki/2/search/suggestions/companies) | 166 | | Weibo.Search.suggestions_apps | [/2/search/suggestions/apps](http://open.weibo.com/wiki/2/search/suggestions/apps) | 167 | | Weibo.Search.suggestions_at_users | [/2/search/suggestions/at_users](http://open.weibo.com/wiki/2/search/suggestions/at_users) | 168 | | Weibo.Search.topics | [/2/search/topics](http://open.weibo.com/wiki/2/search/topics) | 169 | 170 | ### Suggestions class 171 | | function name | doc | 172 | | ------------- | --- | 173 | | Weibo.Suggestions.users_hot | [/2/suggestions/users/hot](http://open.weibo.com/wiki/2/suggestions/users/hot) | 174 | | Weibo.Suggestions.users_may_interested | [/2/suggestions/users/may_interested](http://open.weibo.com/wiki/2/suggestions/users/may_interested) | 175 | | Weibo.Suggestions.users_by_status | [/2/suggestions/users/by_status](http://open.weibo.com/wiki/2/suggestions/users/by_status) | 176 | | Weibo.Suggestions.statuses_reorder | [/2/suggestions/statuses/reorder](http://open.weibo.com/wiki/2/suggestions/statuses/reorder) | 177 | | Weibo.Suggestions.statuses_reorder_ids | [/2/suggestions/statuses/reorder/ids](http://open.weibo.com/wiki/2/suggestions/statuses/reorder/ids) | 178 | | Weibo.Suggestions.favorites_hot | [/2/suggestions/favorites/hot](http://open.weibo.com/wiki/2/suggestions/favorites/hot) | 179 | | Weibo.Suggestions.users_not_interested | [/2/suggestions/users/not_interested](http://open.weibo.com/wiki/2/suggestions/users/not_interested) | 180 | 181 | ### Remind class 182 | | function name | doc | 183 | | ------------- | --- | 184 | | Weibo.Remind.unread_count | [/2/remind/unread_count](http://open.weibo.com/wiki/2/remind/unread_count) | 185 | | Weibo.Remind.set_count | [/2/remind/set_count](http://open.weibo.com/wiki/2/remind/set_count) | 186 | 187 | ### Short_url class 188 | | function name | doc | 189 | | ------------- | --- | 190 | | Weibo.Short_url.shorten | [/2/short_url/shorten](http://open.weibo.com/wiki/2/short_url/shorten) | 191 | | Weibo.Short_url.expand | [/2/short_url/expand](http://open.weibo.com/wiki/2/short_url/expand) | 192 | | Weibo.Short_url.share_counts | [/2/short_url/share/counts](http://open.weibo.com/wiki/2/short_url/share/counts) | 193 | | Weibo.Short_url.share_statuses | [/2/short_url/share/statuses](http://open.weibo.com/wiki/2/short_url/share/statuses) | 194 | | Weibo.Short_url.comment_counts | [/2/short_url/comment/counts](http://open.weibo.com/wiki/2/short_url/comment/counts) | 195 | | Weibo.Short_url.comment_comments | [/2/short_url/comment/comments](http://open.weibo.com/wiki/2/short_url/comment/comments) | 196 | 197 | ### Notification class 198 | | function name | doc | 199 | | ------------- | --- | 200 | | Weibo.Notification.send | [/2/notification/send](http://open.weibo.com/wiki/2/notification/send) | 201 | 202 | ### Common class 203 | | function name | doc | 204 | | ------------- | --- | 205 | | Weibo.Common.code_to_location | [/2/common/code_to_location](http://open.weibo.com/wiki/2/common/code_to_location) | 206 | | Weibo.Common.get_city | [/2/common/get_city](http://open.weibo.com/wiki/2/common/get_city) | 207 | | Weibo.Common.get_province | [/2/common/get_province](http://open.weibo.com/wiki/2/common/get_province) | 208 | | Weibo.Common.get_country | [/2/common/get_country](http://open.weibo.com/wiki/2/common/get_country) | 209 | | Weibo.Common.get_timezone | [/2/common/get_timezone](http://open.weibo.com/wiki/2/common/get_timezone) | 210 | 211 | ### Place class 212 | | function name | doc | 213 | | ------------- | --- | 214 | | Weibo.Place.public_timeline | [/2/place/public_timeline](http://open.weibo.com/wiki/2/place/public_timeline) | 215 | | Weibo.Place.friends_timeline | [/2/place/friends_timeline](http://open.weibo.com/wiki/2/place/friends_timeline) | 216 | | Weibo.Place.user_timeline | [/2/place/user_timeline](http://open.weibo.com/wiki/2/place/user_timeline) | 217 | | Weibo.Place.poi_timeline | [/2/place/poi_timeline](http://open.weibo.com/wiki/2/place/poi_timeline) | 218 | | Weibo.Place.nearby_timeline | [/2/place/nearby_timeline](http://open.weibo.com/wiki/2/place/nearby_timeline) | 219 | | Weibo.Place.statuses_show | [/2/place/statuses/show](http://open.weibo.com/wiki/2/place/statuses/show) | 220 | | Weibo.Place.users_show | [/2/place/users/show](http://open.weibo.com/wiki/2/place/users/show) | 221 | | Weibo.Place.users_checkins | [/2/place/users/checkins](http://open.weibo.com/wiki/2/place/users/checkins) | 222 | | Weibo.Place.users_photos | [/2/place/users/photos](http://open.weibo.com/wiki/2/place/users/photos) | 223 | | Weibo.Place.users_tips | [/2/place/users/tips](http://open.weibo.com/wiki/2/place/users/tips) | 224 | | Weibo.Place.users_todos | [/2/place/users/todos](http://open.weibo.com/wiki/2/place/users/todos) | 225 | | Weibo.Place.pois_show | [/2/place/pois/show](http://open.weibo.com/wiki/2/place/pois/show) | 226 | | Weibo.Place.pois_users | [/2/place/pois/users](http://open.weibo.com/wiki/2/place/pois/users) | 227 | | Weibo.Place.pois_tips | [/2/place/pois/tips](http://open.weibo.com/wiki/2/place/pois/tips) | 228 | | Weibo.Place.pois_photos | [/2/place/pois/photos](http://open.weibo.com/wiki/2/place/pois/photos) | 229 | | Weibo.Place.pois_search | [/2/place/pois/search](http://open.weibo.com/wiki/2/place/pois/search) | 230 | | Weibo.Place.pois_category | [/2/place/pois/category](http://open.weibo.com/wiki/2/place/pois/category) | 231 | | Weibo.Place.nearby_pois | [/2/place/nearby/pois](http://open.weibo.com/wiki/2/place/nearby/pois) | 232 | | Weibo.Place.nearby_users | [/2/place/nearby/users](http://open.weibo.com/wiki/2/place/nearby/users) | 233 | | Weibo.Place.nearby_photos | [/2/place/nearby/photos](http://open.weibo.com/wiki/2/place/nearby/photos) | 234 | | Weibo.Place.nearby_users_list | [/2/place/nearby_users/list](http://open.weibo.com/wiki/2/place/nearby_users/list) | 235 | | Weibo.Place.pois_create | [/2/place/pois/create](http://open.weibo.com/wiki/2/place/pois/create) | 236 | | Weibo.Place.pois_add_checkin | [/2/place/pois/add_checkin](http://open.weibo.com/wiki/2/place/pois/add_checkin) | 237 | | Weibo.Place.pois_add_photo | [/2/place/pois/add_photo](http://open.weibo.com/wiki/2/place/pois/add_photo) | 238 | | Weibo.Place.pois_add_tip | [/2/place/pois/add_tip](http://open.weibo.com/wiki/2/place/pois/add_tip) | 239 | | Weibo.Place.pois_add_todo | [/2/place/pois/add_todo](http://open.weibo.com/wiki/2/place/pois/add_todo) | 240 | | Weibo.Place.nearby_users_create | [/2/place/nearby_users/create](http://open.weibo.com/wiki/2/place/nearby_users/create) | 241 | | Weibo.Place.nearby_users_destroy | [/2/place/nearby_users/destroy](http://open.weibo.com/wiki/2/place/nearby_users/destroy) | 242 | 243 | ### Location class 244 | | function name | doc | 245 | | ------------- | --- | 246 | | Weibo.Location.base_get_map_image | [/2/location/base/get_map_image](http://open.weibo.com/wiki/2/location/base/get_map_image) | 247 | | Weibo.Location.geo_ip_to_geo | [/2/location/geo/ip_to_geo](http://open.weibo.com/wiki/2/location/geo/ip_to_geo) | 248 | | Weibo.Location.geo_address_to_geo | [/2/location/geo/address_to_geo](http://open.weibo.com/wiki/2/location/geo/address_to_geo) | 249 | | Weibo.Location.geo_geo_to_address | [/2/location/geo/geo_to_address](http://open.weibo.com/wiki/2/location/geo/geo_to_address) | 250 | | Weibo.Location.geo_gps_to_offset | [/2/location/geo/gps_to_offset](http://open.weibo.com/wiki/2/location/geo/gps_to_offset) | 251 | | Weibo.Location.geo_is_domestic | [/2/location/geo/is_domestic](http://open.weibo.com/wiki/2/location/geo/is_domestic) | 252 | | Weibo.Location.pois_search_by_location | [/2/location/pois/search/by_location](http://open.weibo.com/wiki/2/location/pois/search/by_location) | 253 | | Weibo.Location.pois_search_by_geo | [/2/location/pois/search/by_geo](http://open.weibo.com/wiki/2/location/pois/search/by_geo) | 254 | | Weibo.Location.pois_search_by_area | [/2/location/pois/search/by_area](http://open.weibo.com/wiki/2/location/pois/search/by_area) | 255 | | Weibo.Location.pois_show_batch | [/2/location/pois/show_batch](http://open.weibo.com/wiki/2/location/pois/show_batch) | 256 | | Weibo.Location.pois_add | [/2/location/pois/add](http://open.weibo.com/wiki/2/location/pois/add) | 257 | | Weibo.Location.mobile_get_location | [/2/location/mobile/get_location](http://open.weibo.com/wiki/2/location/mobile/get_location) | 258 | | Weibo.Location.line_drive_route | [/2/location/line/drive_route](http://open.weibo.com/wiki/2/location/line/drive_route) | 259 | | Weibo.Location.line_bus_route | [/2/location/line/bus_route](http://open.weibo.com/wiki/2/location/line/bus_route) | 260 | | Weibo.Location.line_bus_line | [/2/location/line/bus_line](http://open.weibo.com/wiki/2/location/line/bus_line) | 261 | | Weibo.Location.line_bus_station | [/2/location/line/bus_station](http://open.weibo.com/wiki/2/location/line/bus_station) | 262 | | Weibo.Location.line_bus_station | [/2/location/line/bus_station](http://open.weibo.com/wiki/2/location/line/bus_station) | 263 | 264 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | nodeweibo 2 | ========= 3 | node-weibo v2.0 是对新浪微博的API的封装,基于Node.js,认证方式采用OAuth2. 4 | 相对node-weibo v2.0之前版本的特性有: 5 | 6 | + 更加易于后面的拓展,比如新增函数,不会影响旧版本的使用 7 | + 更加高效和管理,尊重微博API的设计原则。 8 | 9 | #### 安装 10 | ##### npm install nodeweibo 11 | ![weibo API](./doc/pak.png) 12 | 13 | 14 | #### 一、API使用说明 15 | 16 | 17 | (1)阅读新浪微博的API文档 http://open.weibo.com/wiki/%E5%BE%AE%E5%8D%9AAPI 18 | (2)Weibo是整个命名空间,使用前请参考 examples/setting.json 创建/修改配置文件。 19 | 20 | ![weibo API](./doc/weibo.jpg) 21 | 22 | (3)请求授权接口作为单独的接口,即在Weibo的命名空间下Weibo.authorize(); 23 | (4)浏览:http://open.weibo.com/wiki/%E5%BE%AE%E5%8D%9AAPI 24 | 如上图所示,是API的命名方式. 25 | +--------- 26 | 比如1:需要使用“OAuth2授权接口”,点击链接到页面底部,看到“OAuth2”,那么OAuth2就是一个类, 27 | 即Weibo.OAuth2. 28 | 则Weibo.OAuth2的获取access_token的方法是:Weibo.OAuth2.access_token; 29 | 则授权查询是:Weibo.OAuth2.get_token_info. 30 | 类:OAuth2 31 | 方法:access_token 32 | +--------- 33 | 比如2:需要使用“微博接口”,那么该类的名称是Statuses. 34 | 则返回最新的公共微博是:public_timeline. 35 | 整个方法的调用是Weibo.Statuses.public_timeline. 36 | 类:Statuses 37 | 方法:public_timeline 38 | +--------- 39 | 40 | 所有类和函数命名方式尊重新浪微博API方式,以此类推. 41 | (5)所有方法两个参数,第一参数是该接口的参数(json对象格式,不含setting.json中的配置参数) 42 | 43 | 44 | 45 | #### 二、example说明 46 | 47 | 48 | /* 49 | +------------------------------------------------- 50 | (1)注册账号:http://open.weibo.com/ 51 | (2)参考 examples/setting.json 创建/修改配置文件。 52 | (3)搞清楚微博的认证机制即oauth2.0认证原理。 53 | (4)第3点很重要,确保你理解这种开发方式。 54 | +------------------------------------------------- 55 | */ 56 | 57 | var Weibo = require('nodeweibo'); 58 | var setting = require('path/to/setting.json'); 59 | 60 | // 首次调用接口前需初始化Weibo类,传入配置信息 (appKey, appSecret, redirect_url, etc. ) 61 | Weibo.init(setting); 62 | 63 | /* 64 | +------------------------------------------------- 65 | 例1:开启微博认证 66 | 启动认证后,将在浏览器器打开一个窗口,url中含有code参数 67 | 注意:运行其中一个例子时,须注释掉另一个例子。 68 | +------------------------------------------------- 69 | */ 70 | 71 | Weibo.authorize(); 72 | 73 | /* 74 | +-------------------------------------------------- 75 | 例2:需要获取access_token 76 | (1)阅读微博开放平台API 77 | 如:http://open.weibo.com/wiki/OAuth2/access_token, 78 | 将必要的参数写进jsonParas对象。 79 | (2)在回调中打印出获取的数据 80 | (3)code是您浏览器窗口获得的code。 81 | (4)注意:如运行本例子,请注释掉第1个例子,且code职能调用一次, 82 | 会随着认证不断更新。一个用户一个access_token。 83 | +--------------------------------------------------- 84 | */ 85 | 86 | var jsonParas = { 87 | code:"the value of your browser's parameter code", 88 | grant_type:"authorization_code" 89 | }; 90 | 91 | Weibo.OAuth2.access_token(jsonParas,function(data){ 92 | console.log(data); 93 | }); 94 | 95 | /* 96 | +-------------------------------------------------- 97 | 例3:调用API 98 | (1)阅读微博开放平台API 99 | 如:http://open.weibo.com/wiki/2/statuses/user_timeline, 100 | 将必要的参数写进jsonParas对象。 101 | (2)在回调中打印出获取的数据 102 | +--------------------------------------------------- 103 | */ 104 | 105 | // 设置请求参数 106 | var jsonParas = { 107 | "source": Weibo.appKey.appKey, 108 | "access_token": 'CLIENT_ACCESS_TOKEN_HERE' 109 | }; 110 | 111 | // 调用API 112 | Weibo.Statuses.user_timeline(jsonParas, function(data){ 113 | console.log(data); 114 | }); 115 | 116 | 117 | #### 三、测试appkey 118 | 119 | (1)如需开发,请将setting.json的appKey、appSecret、redirectUrl换成微博开放平台的开发者账号信息。 120 | (2)提供appkey仅为测试所用,勿用于实际开发,否则我更改了账号信息会影响您的应用正常使用。 121 | (3)测试的应用信息如下。 122 | 123 | { 124 | "appKey":"4263807830", 125 | "appSecret":"f314a703b2586510ae62a8baaef1570e", 126 | "redirectUrl":"127.0.0.1:3000" 127 | } 128 | 129 | 130 | #### 四、API文档 131 | 132 | ### OAuth2 class 133 | | function name | doc | 134 | | ------------- | --- | 135 | | Weibo.OAuth2.access_token | [/oauth2/access_token](http://open.weibo.com/wiki/oauth2/access_token) | 136 | | Weibo.OAuth2.get_token_info | [/oauth2/get_token_info](http://open.weibo.com/wiki/oauth2/get_token_info) | 137 | 138 | ### Statuses class 139 | | function name | doc | 140 | | ------------- | --- | 141 | | Weibo.Statuses.public_timeline | [/2/statuses/public_timeline](http://open.weibo.com/wiki/2/statuses/public_timeline) | 142 | | Weibo.Statuses.friends_timeline | [/2/statuses/friends_timeline](http://open.weibo.com/wiki/2/statuses/friends_timeline) | 143 | | Weibo.Statuses.home_timeline | [/2/statuses/home_timeline](http://open.weibo.com/wiki/2/statuses/home_timeline) | 144 | | Weibo.Statuses.friends_timeline_ids | [/2/statuses/friends_timeline/ids](http://open.weibo.com/wiki/2/statuses/friends_timeline/ids) | 145 | | Weibo.Statuses.user_timeline | [/2/statuses/user_timeline](http://open.weibo.com/wiki/2/statuses/user_timeline) | 146 | | Weibo.Statuses.user_timeline_ids | [/2/statuses/user_timeline/ids](http://open.weibo.com/wiki/2/statuses/user_timeline/ids) | 147 | | Weibo.Statuses.timeline_batch | [/2/statuses/timeline_batch](http://open.weibo.com/wiki/2/statuses/timeline_batch) | 148 | | Weibo.Statuses.repost_timeline | [/2/statuses/repost_timeline](http://open.weibo.com/wiki/2/statuses/repost_timeline) | 149 | | Weibo.Statuses.repost_timeline_ids | [/2/statuses/repost_timeline/ids](http://open.weibo.com/wiki/2/statuses/repost_timeline/ids) | 150 | | Weibo.Statuses.mentions | [/2/statuses/mentions](http://open.weibo.com/wiki/2/statuses/mentions) | 151 | | Weibo.Statuses.mentions_ids | [/2/statuses/mentions/ids](http://open.weibo.com/wiki/2/statuses/mentions/ids) | 152 | | Weibo.Statuses.bilateral_timeline | [/2/statuses/bilateral_timeline](http://open.weibo.com/wiki/2/statuses/bilateral_timeline) | 153 | | Weibo.Statuses.show | [/2/statuses/show](http://open.weibo.com/wiki/2/statuses/show) | 154 | | Weibo.Statuses.show_batch | [/2/statuses/show_batch](http://open.weibo.com/wiki/2/statuses/show_batch) | 155 | | Weibo.Statuses.querymid | [/2/statuses/querymid](http://open.weibo.com/wiki/2/statuses/querymid) | 156 | | Weibo.Statuses.queryid | [/2/statuses/queryid](http://open.weibo.com/wiki/2/statuses/queryid) | 157 | | Weibo.Statuses.count | [/2/statuses/count](http://open.weibo.com/wiki/2/statuses/count) | 158 | | Weibo.Statuses.to_me | [/2/statuses/to_me](http://open.weibo.com/wiki/2/statuses/to_me) | 159 | | Weibo.Statuses.to_me_ids | [/2/statuses/to_me/ids](http://open.weibo.com/wiki/2/statuses/to_me/ids) | 160 | | Weibo.Statuses.go | [/2/statuses/go](http://open.weibo.com/wiki/2/statuses/go) | 161 | | Weibo.Statuses.emotions | [/2/emotions](http://open.weibo.com/wiki/2/emotions) | 162 | | Weibo.Statuses.repost | [/2/statuses/repost](http://open.weibo.com/wiki/2/statuses/repost) | 163 | | Weibo.Statuses.destroy | [/2/statuses/destroy](http://open.weibo.com/wiki/2/statuses/destroy) | 164 | | Weibo.Statuses.update | [/2/statuses/update](http://open.weibo.com/wiki/2/statuses/update) | 165 | | Weibo.Statuses.upload | [/2/statuses/upload](http://open.weibo.com/wiki/2/statuses/upload) | 166 | | Weibo.Statuses.upload_url_text | [/2/statuses/upload_url_text](http://open.weibo.com/wiki/2/statuses/upload_url_text) | 167 | | Weibo.Statuses.filter_create | [/2/statuses/filter/create](http://open.weibo.com/wiki/2/statuses/filter/create) | 168 | | Weibo.Statuses.mentions_shield | [/2/statuses/mentions/shield](http://open.weibo.com/wiki/2/statuses/mentions/shield) | 169 | | Weibo.Statuses.tags | [/2/statuses/tags](http://open.weibo.com/wiki/2/statuses/tags) | 170 | | Weibo.Statuses.tags_show_batch | [/2/statuses/tags/show_batch](http://open.weibo.com/wiki/2/statuses/tags/show_batch) | 171 | | Weibo.Statuses.tag_timeline_ids | [/2/statuses/tag_timeline/ids](http://open.weibo.com/wiki/2/statuses/tag_timeline/ids) | 172 | | Weibo.Statuses.tags_create | [/2/statuses/tags/create](http://open.weibo.com/wiki/2/statuses/tags/create) | 173 | | Weibo.Statuses.tags_destroy | [/2/statuses/tags/destroy](http://open.weibo.com/wiki/2/statuses/tags/destroy) | 174 | | Weibo.Statuses.tags_update | [/2/statuses/tags/update](http://open.weibo.com/wiki/2/statuses/tags/update) | 175 | | Weibo.Statuses.update_tags | [/2/statuses/update_tags](http://open.weibo.com/wiki/2/statuses/update_tags) | 176 | 177 | ### Comments class 178 | | function name | doc | 179 | | ------------- | --- | 180 | | Weibo.Comments.show | [/2/comments/show](http://open.weibo.com/wiki/2/comments/show) | 181 | | Weibo.Comments.by_me | [/2/comments/by_me](http://open.weibo.com/wiki/2/comments/by_me) | 182 | | Weibo.Comments.to_me | [/2/comments/to_me](http://open.weibo.com/wiki/2/comments/to_me) | 183 | | Weibo.Comments.timeline | [/2/comments/timeline](http://open.weibo.com/wiki/2/comments/timeline) | 184 | | Weibo.Comments.mentions | [/2/comments/mentions](http://open.weibo.com/wiki/2/comments/mentions) | 185 | | Weibo.Comments.show_batch | [/2/comments/show_batch](http://open.weibo.com/wiki/2/comments/show_batch) | 186 | | Weibo.Comments.create | [/2/comments/create](http://open.weibo.com/wiki/2/comments/create) | 187 | | Weibo.Comments.destroy | [/2/comments/destroy](http://open.weibo.com/wiki/2/comments/destroy) | 188 | | Weibo.Comments.destroy_batch | [/2/comments/destroy_batch](http://open.weibo.com/wiki/2/comments/destroy_batch) | 189 | | Weibo.Comments.reply | [/2/comments/reply](http://open.weibo.com/wiki/2/comments/reply) | 190 | 191 | ### Users class 192 | | function name | doc | 193 | | ------------- | --- | 194 | | Weibo.Users.show | [/2/users/show](http://open.weibo.com/wiki/2/users/show) | 195 | | Weibo.Users.domain_show | [/2/users/domain_show](http://open.weibo.com/wiki/2/users/domain_show) | 196 | | Weibo.Users.counts | [/2/users/counts](http://open.weibo.com/wiki/2/users/counts) | 197 | | Weibo.Users.get_top_status | [/2/users/get_top_status](http://open.weibo.com/wiki/2/users/get_top_status) | 198 | | Weibo.Users.set_top_status | [/2/users/set_top_status](http://open.weibo.com/wiki/2/users/set_top_status) | 199 | | Weibo.Users.cancel_top_status | [/2/users/cancel_top_status](http://open.weibo.com/wiki/2/users/cancel_top_status) | 200 | 201 | ### Friendships class 202 | | function name | doc | 203 | | ------------- | --- | 204 | | Weibo.Friendships.friends | [/2/friendships/friends](http://open.weibo.com/wiki/2/friendships/friends) | 205 | | Weibo.Friendships.friends_remark_batch | [/2/friendships/friends/remark_batch](http://open.weibo.com/wiki/2/friendships/friends/remark_batch) | 206 | | Weibo.Friendships.friends_in_common | [/2/friendships/friends/in_common](http://open.weibo.com/wiki/2/friendships/friends/in_common) | 207 | | Weibo.Friendships.friends_bilateral | [/2/friendships/friends/bilateral](http://open.weibo.com/wiki/2/friendships/friends/bilateral) | 208 | | Weibo.Friendships.friends_bilateral_ids | [/2/friendships/friends/bilateral/ids](http://open.weibo.com/wiki/2/friendships/friends/bilateral/ids) | 209 | | Weibo.Friendships.friends_ids | [/2/friendships/friends/ids](http://open.weibo.com/wiki/2/friendships/friends/ids) | 210 | | Weibo.Friendships.followers | [/2/friendships/followers](http://open.weibo.com/wiki/2/friendships/followers) | 211 | | Weibo.Friendships.followers_ids | [/2/friendships/followers/ids](http://open.weibo.com/wiki/2/friendships/followers/ids) | 212 | | Weibo.Friendships.followers_active | [/2/friendships/followers/active](http://open.weibo.com/wiki/2/friendships/followers/active) | 213 | | Weibo.Friendships.friends_chain_followers | [/2/friendships/friends_chain/followers](http://open.weibo.com/wiki/2/friendships/friends_chain/followers) | 214 | | Weibo.Friendships.show | [/2/friendships/show](http://open.weibo.com/wiki/2/friendships/show) | 215 | | Weibo.Friendships.create | [/2/friendships/create](http://open.weibo.com/wiki/2/friendships/create) | 216 | | Weibo.Friendships.destroy | [/2/friendships/destroy](http://open.weibo.com/wiki/2/friendships/destroy) | 217 | | Weibo.Friendships.followers_destroy | [/2/friendships/followers/destroy](http://open.weibo.com/wiki/2/friendships/followers/destroy) | 218 | | Weibo.Friendships.followers_destroy | [/2/friendships/followers/destroy](http://open.weibo.com/wiki/2/friendships/followers/destroy) | 219 | | Weibo.Friendships.remark_update | [/2/friendships/remark/update](http://open.weibo.com/wiki/2/friendships/remark/update) | 220 | | Weibo.Friendships.groups | [/2/friendships/groups](http://open.weibo.com/wiki/2/friendships/groups) | 221 | | Weibo.Friendships.groups_timeline | [/2/friendships/groups/timeline](http://open.weibo.com/wiki/2/friendships/groups/timeline) | 222 | | Weibo.Friendships.groups_timeline_ids | [/2/friendships/groups/timeline/ids](http://open.weibo.com/wiki/2/friendships/groups/timeline/ids) | 223 | | Weibo.Friendships.groups_members | [/2/friendships/groups/members](http://open.weibo.com/wiki/2/friendships/groups/members) | 224 | | Weibo.Friendships.groups_members_ids | [/2/friendships/groups/members/ids](http://open.weibo.com/wiki/2/friendships/groups/members/ids) | 225 | | Weibo.Friendships.groups_members_description | [/2/friendships/groups/members/description](http://open.weibo.com/wiki/2/friendships/groups/members/description) | 226 | | Weibo.Friendships.groups_is_member | [/2/friendships/groups/is_member](http://open.weibo.com/wiki/2/friendships/groups/is_member) | 227 | | Weibo.Friendships.groups_listed | [/2/friendships/groups/listed](http://open.weibo.com/wiki/2/friendships/groups/listed) | 228 | | Weibo.Friendships.groups_show | [/2/friendships/groups/show](http://open.weibo.com/wiki/2/friendships/groups/show) | 229 | | Weibo.Friendships.groups_show_batch | [/2/friendships/groups/show_batch](http://open.weibo.com/wiki/2/friendships/groups/show_batch) | 230 | | Weibo.Friendships.groups_create | [/2/friendships/groups/create](http://open.weibo.com/wiki/2/friendships/groups/create) | 231 | | Weibo.Friendships.groups_update | [/2/friendships/groups/update](http://open.weibo.com/wiki/2/friendships/groups/update) | 232 | | Weibo.Friendships.groups_destroy | [/2/friendships/groups/destroy](http://open.weibo.com/wiki/2/friendships/groups/destroy) | 233 | | Weibo.Friendships.groups_members_add | [/2/friendships/groups/members/add](http://open.weibo.com/wiki/2/friendships/groups/members/add) | 234 | | Weibo.Friendships.groups_members_add_batch | [/2/friendships/groups/members/add_batch](http://open.weibo.com/wiki/2/friendships/groups/members/add_batch) | 235 | | Weibo.Friendships.groups_members_update | [/2/friendships/groups/members/update](http://open.weibo.com/wiki/2/friendships/groups/members/update) | 236 | | Weibo.Friendships.groups_members_destroy | [/2/friendships/groups/members/destroy](http://open.weibo.com/wiki/2/friendships/groups/members/destroy) | 237 | | Weibo.Friendships.groups_order | [/2/friendships/groups/order](http://open.weibo.com/wiki/2/friendships/groups/order) | 238 | 239 | ### Account class 240 | | function name | doc | 241 | | ------------- | --- | 242 | | Weibo.Account.get_privacy | [/2/account/get_privacy](http://open.weibo.com/wiki/2/account/get_privacy) | 243 | | Weibo.Account.profile_school_list | [/2/account/profile/school_list](http://open.weibo.com/wiki/2/account/profile/school_list) | 244 | | Weibo.Account.rate_limit_status | [/2/account/rate_limit_status](http://open.weibo.com/wiki/2/account/rate_limit_status) | 245 | | Weibo.Account.profile_email | [/2/account/profile/email](http://open.weibo.com/wiki/2/account/profile/email) | 246 | | Weibo.Account.get_uid | [/2/account/get_uid](http://open.weibo.com/wiki/2/account/get_uid) | 247 | | Weibo.Account.end_session | [/2/account/end_session](http://open.weibo.com/wiki/2/account/end_session) | 248 | 249 | ### Favorites class 250 | | function name | doc | 251 | | ------------- | --- | 252 | | Weibo.Favorites.favorites | [/2/favorites](http://open.weibo.com/wiki/2/favorites) | 253 | | Weibo.Favorites.ids | [/2/favorites/ids](http://open.weibo.com/wiki/2/favorites/ids) | 254 | | Weibo.Favorites.show | [/2/favorites/show](http://open.weibo.com/wiki/2/favorites/show) | 255 | | Weibo.Favorites.by_tags | [/2/favorites/by_tags](http://open.weibo.com/wiki/2/favorites/by_tags) | 256 | | Weibo.Favorites.by_tags_ids | [/2/account/get_uid](http://open.weibo.com/wiki/2/account/get_uid) | 257 | | Weibo.Favorites.end_session | [/2/favorites/by_tags/ids](http://open.weibo.com/wiki/2/favorites/by_tags/ids) | 258 | | Weibo.Favorites.create | [/2/favorites/create](http://open.weibo.com/wiki/2/favorites/create) | 259 | | Weibo.Favorites.destroy | [/2/favorites/destroy](http://open.weibo.com/wiki/2/favorites/destroy) | 260 | | Weibo.Favorites.destroy_batch | [/2/favorites/destroy_batch](http://open.weibo.com/wiki/2/favorites/destroy_batch) | 261 | | Weibo.Favorites.tags_update | [/2/favorites/tags/update](http://open.weibo.com/wiki/2/favorites/tags/update) | 262 | | Weibo.Favorites.tags_update_batch | [/2/favorites/tags/update_batch](http://open.weibo.com/wiki/2/favorites/tags/update_batch) | 263 | | Weibo.Favorites.tags_destroy_batch | [/2/favorites/tags/destroy_batch](http://open.weibo.com/wiki/2/favorites/tags/destroy_batch) | 264 | 265 | ### Trends class 266 | | function name | doc | 267 | | ------------- | --- | 268 | | Weibo.Trends.hourly | [/2/trends/hourly](http://open.weibo.com/wiki/2/trends/hourly) | 269 | | Weibo.Trends.daily | [/2/trends/daily](http://open.weibo.com/wiki/2/trends/daily) | 270 | | Weibo.Trends.weekly | [/2/trends/weekly](http://open.weibo.com/wiki/2/trends/weekly) | 271 | 272 | ### Tags class 273 | | function name | doc | 274 | | ------------- | --- | 275 | | Weibo.Tags.tags | [/2/tags](http://open.weibo.com/wiki/2/tags) | 276 | | Weibo.Tags.tags_batch | [/2/tags/tags_batch](http://open.weibo.com/wiki/2/tags/tags_batch) | 277 | | Weibo.Tags.suggestions | [/2/tags/suggestions](http://open.weibo.com/wiki/2/tags/suggestions) | 278 | | Weibo.Tags.create | [/2/tags/create](http://open.weibo.com/wiki/2/tags/create) | 279 | | Weibo.Tags.destroy | [/2/tags/destroy](http://open.weibo.com/wiki/2/tags/destroy) | 280 | | Weibo.Tags.destroy_batch | [/2/tags/destroy_batch](http://open.weibo.com/wiki/2/tags/destroy_batch) | 281 | 282 | ### Register class 283 | | function name | doc | 284 | | ------------- | --- | 285 | | Weibo.Register.verify_nickname | [/2/register/verify_nickname](http://open.weibo.com/wiki/2/register/verify_nickname) | 286 | 287 | ### Search class 288 | | function name | doc | 289 | | ------------- | --- | 290 | | Weibo.Search.suggestions_users | [/2/search/suggestions/users](http://open.weibo.com/wiki/2/search/suggestions/users) | 291 | | Weibo.Search.suggestions_schools | [/2/search/suggestions/schools](http://open.weibo.com/wiki/2/search/suggestions/schools) | 292 | | Weibo.Search.suggestions_companies | [/2/search/suggestions/companies](http://open.weibo.com/wiki/2/search/suggestions/companies) | 293 | | Weibo.Search.suggestions_apps | [/2/search/suggestions/apps](http://open.weibo.com/wiki/2/search/suggestions/apps) | 294 | | Weibo.Search.suggestions_at_users | [/2/search/suggestions/at_users](http://open.weibo.com/wiki/2/search/suggestions/at_users) | 295 | | Weibo.Search.topics | [/2/search/topics](http://open.weibo.com/wiki/2/search/topics) | 296 | 297 | ### Suggestions class 298 | | function name | doc | 299 | | ------------- | --- | 300 | | Weibo.Suggestions.users_hot | [/2/suggestions/users/hot](http://open.weibo.com/wiki/2/suggestions/users/hot) | 301 | | Weibo.Suggestions.users_may_interested | [/2/suggestions/users/may_interested](http://open.weibo.com/wiki/2/suggestions/users/may_interested) | 302 | | Weibo.Suggestions.users_by_status | [/2/suggestions/users/by_status](http://open.weibo.com/wiki/2/suggestions/users/by_status) | 303 | | Weibo.Suggestions.statuses_reorder | [/2/suggestions/statuses/reorder](http://open.weibo.com/wiki/2/suggestions/statuses/reorder) | 304 | | Weibo.Suggestions.statuses_reorder_ids | [/2/suggestions/statuses/reorder/ids](http://open.weibo.com/wiki/2/suggestions/statuses/reorder/ids) | 305 | | Weibo.Suggestions.favorites_hot | [/2/suggestions/favorites/hot](http://open.weibo.com/wiki/2/suggestions/favorites/hot) | 306 | | Weibo.Suggestions.users_not_interested | [/2/suggestions/users/not_interested](http://open.weibo.com/wiki/2/suggestions/users/not_interested) | 307 | 308 | ### Remind class 309 | | function name | doc | 310 | | ------------- | --- | 311 | | Weibo.Remind.unread_count | [/2/remind/unread_count](http://open.weibo.com/wiki/2/remind/unread_count) | 312 | | Weibo.Remind.set_count | [/2/remind/set_count](http://open.weibo.com/wiki/2/remind/set_count) | 313 | 314 | ### Short_url class 315 | | function name | doc | 316 | | ------------- | --- | 317 | | Weibo.Short_url.shorten | [/2/short_url/shorten](http://open.weibo.com/wiki/2/short_url/shorten) | 318 | | Weibo.Short_url.expand | [/2/short_url/expand](http://open.weibo.com/wiki/2/short_url/expand) | 319 | | Weibo.Short_url.share_counts | [/2/short_url/share/counts](http://open.weibo.com/wiki/2/short_url/share/counts) | 320 | | Weibo.Short_url.share_statuses | [/2/short_url/share/statuses](http://open.weibo.com/wiki/2/short_url/share/statuses) | 321 | | Weibo.Short_url.comment_counts | [/2/short_url/comment/counts](http://open.weibo.com/wiki/2/short_url/comment/counts) | 322 | | Weibo.Short_url.comment_comments | [/2/short_url/comment/comments](http://open.weibo.com/wiki/2/short_url/comment/comments) | 323 | 324 | ### Notification class 325 | | function name | doc | 326 | | ------------- | --- | 327 | | Weibo.Notification.send | [/2/notification/send](http://open.weibo.com/wiki/2/notification/send) | 328 | 329 | ### Common class 330 | | function name | doc | 331 | | ------------- | --- | 332 | | Weibo.Common.code_to_location | [/2/common/code_to_location](http://open.weibo.com/wiki/2/common/code_to_location) | 333 | | Weibo.Common.get_city | [/2/common/get_city](http://open.weibo.com/wiki/2/common/get_city) | 334 | | Weibo.Common.get_province | [/2/common/get_province](http://open.weibo.com/wiki/2/common/get_province) | 335 | | Weibo.Common.get_country | [/2/common/get_country](http://open.weibo.com/wiki/2/common/get_country) | 336 | | Weibo.Common.get_timezone | [/2/common/get_timezone](http://open.weibo.com/wiki/2/common/get_timezone) | 337 | 338 | ### Place class 339 | | function name | doc | 340 | | ------------- | --- | 341 | | Weibo.Place.public_timeline | [/2/place/public_timeline](http://open.weibo.com/wiki/2/place/public_timeline) | 342 | | Weibo.Place.friends_timeline | [/2/place/friends_timeline](http://open.weibo.com/wiki/2/place/friends_timeline) | 343 | | Weibo.Place.user_timeline | [/2/place/user_timeline](http://open.weibo.com/wiki/2/place/user_timeline) | 344 | | Weibo.Place.poi_timeline | [/2/place/poi_timeline](http://open.weibo.com/wiki/2/place/poi_timeline) | 345 | | Weibo.Place.nearby_timeline | [/2/place/nearby_timeline](http://open.weibo.com/wiki/2/place/nearby_timeline) | 346 | | Weibo.Place.statuses_show | [/2/place/statuses/show](http://open.weibo.com/wiki/2/place/statuses/show) | 347 | | Weibo.Place.users_show | [/2/place/users/show](http://open.weibo.com/wiki/2/place/users/show) | 348 | | Weibo.Place.users_checkins | [/2/place/users/checkins](http://open.weibo.com/wiki/2/place/users/checkins) | 349 | | Weibo.Place.users_photos | [/2/place/users/photos](http://open.weibo.com/wiki/2/place/users/photos) | 350 | | Weibo.Place.users_tips | [/2/place/users/tips](http://open.weibo.com/wiki/2/place/users/tips) | 351 | | Weibo.Place.users_todos | [/2/place/users/todos](http://open.weibo.com/wiki/2/place/users/todos) | 352 | | Weibo.Place.pois_show | [/2/place/pois/show](http://open.weibo.com/wiki/2/place/pois/show) | 353 | | Weibo.Place.pois_users | [/2/place/pois/users](http://open.weibo.com/wiki/2/place/pois/users) | 354 | | Weibo.Place.pois_tips | [/2/place/pois/tips](http://open.weibo.com/wiki/2/place/pois/tips) | 355 | | Weibo.Place.pois_photos | [/2/place/pois/photos](http://open.weibo.com/wiki/2/place/pois/photos) | 356 | | Weibo.Place.pois_search | [/2/place/pois/search](http://open.weibo.com/wiki/2/place/pois/search) | 357 | | Weibo.Place.pois_category | [/2/place/pois/category](http://open.weibo.com/wiki/2/place/pois/category) | 358 | | Weibo.Place.nearby_pois | [/2/place/nearby/pois](http://open.weibo.com/wiki/2/place/nearby/pois) | 359 | | Weibo.Place.nearby_users | [/2/place/nearby/users](http://open.weibo.com/wiki/2/place/nearby/users) | 360 | | Weibo.Place.nearby_photos | [/2/place/nearby/photos](http://open.weibo.com/wiki/2/place/nearby/photos) | 361 | | Weibo.Place.nearby_users_list | [/2/place/nearby_users/list](http://open.weibo.com/wiki/2/place/nearby_users/list) | 362 | | Weibo.Place.pois_create | [/2/place/pois/create](http://open.weibo.com/wiki/2/place/pois/create) | 363 | | Weibo.Place.pois_add_checkin | [/2/place/pois/add_checkin](http://open.weibo.com/wiki/2/place/pois/add_checkin) | 364 | | Weibo.Place.pois_add_photo | [/2/place/pois/add_photo](http://open.weibo.com/wiki/2/place/pois/add_photo) | 365 | | Weibo.Place.pois_add_tip | [/2/place/pois/add_tip](http://open.weibo.com/wiki/2/place/pois/add_tip) | 366 | | Weibo.Place.pois_add_todo | [/2/place/pois/add_todo](http://open.weibo.com/wiki/2/place/pois/add_todo) | 367 | | Weibo.Place.nearby_users_create | [/2/place/nearby_users/create](http://open.weibo.com/wiki/2/place/nearby_users/create) | 368 | | Weibo.Place.nearby_users_destroy | [/2/place/nearby_users/destroy](http://open.weibo.com/wiki/2/place/nearby_users/destroy) | 369 | 370 | ### Location class 371 | | function name | doc | 372 | | ------------- | --- | 373 | | Weibo.Location.base_get_map_image | [/2/location/base/get_map_image](http://open.weibo.com/wiki/2/location/base/get_map_image) | 374 | | Weibo.Location.geo_ip_to_geo | [/2/location/geo/ip_to_geo](http://open.weibo.com/wiki/2/location/geo/ip_to_geo) | 375 | | Weibo.Location.geo_address_to_geo | [/2/location/geo/address_to_geo](http://open.weibo.com/wiki/2/location/geo/address_to_geo) | 376 | | Weibo.Location.geo_geo_to_address | [/2/location/geo/geo_to_address](http://open.weibo.com/wiki/2/location/geo/geo_to_address) | 377 | | Weibo.Location.geo_gps_to_offset | [/2/location/geo/gps_to_offset](http://open.weibo.com/wiki/2/location/geo/gps_to_offset) | 378 | | Weibo.Location.geo_is_domestic | [/2/location/geo/is_domestic](http://open.weibo.com/wiki/2/location/geo/is_domestic) | 379 | | Weibo.Location.pois_search_by_location | [/2/location/pois/search/by_location](http://open.weibo.com/wiki/2/location/pois/search/by_location) | 380 | | Weibo.Location.pois_search_by_geo | [/2/location/pois/search/by_geo](http://open.weibo.com/wiki/2/location/pois/search/by_geo) | 381 | | Weibo.Location.pois_search_by_area | [/2/location/pois/search/by_area](http://open.weibo.com/wiki/2/location/pois/search/by_area) | 382 | | Weibo.Location.pois_show_batch | [/2/location/pois/show_batch](http://open.weibo.com/wiki/2/location/pois/show_batch) | 383 | | Weibo.Location.pois_add | [/2/location/pois/add](http://open.weibo.com/wiki/2/location/pois/add) | 384 | | Weibo.Location.mobile_get_location | [/2/location/mobile/get_location](http://open.weibo.com/wiki/2/location/mobile/get_location) | 385 | | Weibo.Location.line_drive_route | [/2/location/line/drive_route](http://open.weibo.com/wiki/2/location/line/drive_route) | 386 | | Weibo.Location.line_bus_route | [/2/location/line/bus_route](http://open.weibo.com/wiki/2/location/line/bus_route) | 387 | | Weibo.Location.line_bus_line | [/2/location/line/bus_line](http://open.weibo.com/wiki/2/location/line/bus_line) | 388 | | Weibo.Location.line_bus_station | [/2/location/line/bus_station](http://open.weibo.com/wiki/2/location/line/bus_station) | 389 | | Weibo.Location.line_bus_station | [/2/location/line/bus_station](http://open.weibo.com/wiki/2/location/line/bus_station) | 390 | 391 | 392 | -------------------------------------------------------------------------------- /lib/config/config.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | 4 | "OAuth2":[ 5 | { 6 | "func":"access_token", 7 | "host":"https://api.weibo.com", 8 | "path":"/oauth2/access_token", 9 | "rmethod":["POST"] 10 | }, 11 | { 12 | "func":"get_token_info", 13 | "host":"https://api.weibo.com", 14 | "path":"/oauth2/get_token_info", 15 | "rmethod":["POST"] 16 | } 17 | ], 18 | "Statuses":[ 19 | { 20 | "func":"public_timeline", 21 | "host":"https://api.weibo.com", 22 | "path":"/2/statuses/public_timeline.json", 23 | "rmethod":["GET"] 24 | }, 25 | { 26 | "func":"friends_timeline", 27 | "host":"https://api.weibo.com", 28 | "path":"/2/statuses/friends_timeline.json", 29 | "rmethod":["GET"] 30 | }, 31 | { 32 | "func":"home_timeline", 33 | "host":"https://api.weibo.com", 34 | "path":"/2/statuses/home_timeline.json", 35 | "rmethod":["GET"] 36 | }, 37 | { 38 | "func":"friends_timeline_ids", 39 | "host":"https://api.weibo.com", 40 | "path":"/2/statuses/friends_timeline/ids.json", 41 | "rmethod":["GET"] 42 | }, 43 | { 44 | "func":"user_timeline", 45 | "host":"https://api.weibo.com", 46 | "path":"/2/statuses/user_timeline.json", 47 | "rmethod":["GET"] 48 | }, 49 | { 50 | "func":"user_timeline_ids", 51 | "host":"https://api.weibo.com", 52 | "path":"/2/statuses/user_timeline/ids.json", 53 | "rmethod":["GET"] 54 | }, 55 | { 56 | "func":"timeline_batch", 57 | "host":"https://api.weibo.com", 58 | "path":"/2/statuses/timeline_batch.json", 59 | "rmethod":["GET"] 60 | }, 61 | { 62 | "func":"repost_timeline", 63 | "host":"https://api.weibo.com", 64 | "path":"/2/statuses/repost_timeline.json", 65 | "rmethod":["GET"] 66 | }, 67 | { 68 | "func":"repost_timeline_ids", 69 | "host":"https://api.weibo.com", 70 | "path":"/2/statuses/repost_timeline/ids.json", 71 | "rmethod":["GET"] 72 | }, 73 | { 74 | "func":"mentions", 75 | "host":"https://api.weibo.com", 76 | "path":"/2/statuses/mentions.json", 77 | "rmethod":["GET"] 78 | }, 79 | { 80 | "func":"mentions_ids", 81 | "host":"https://api.weibo.com", 82 | "path":"/2/statuses/mentions/ids.json", 83 | "rmethod":["GET"] 84 | }, 85 | { 86 | "func":"bilateral_timeline", 87 | "host":"https://api.weibo.com", 88 | "path":"/2/statuses/bilateral_timeline.json", 89 | "rmethod":["GET"] 90 | }, 91 | { 92 | "func":"show", 93 | "host":"https://api.weibo.com", 94 | "path":"/2/statuses/show.json", 95 | "rmethod":["GET"] 96 | }, 97 | { 98 | "func":"show_batch", 99 | "host":"https://api.weibo.com", 100 | "path":"/2/statuses/show_batch.json", 101 | "rmethod":["GET"] 102 | }, 103 | { 104 | "func":"querymid", 105 | "host":"https://api.weibo.com", 106 | "path":"/2/statuses/querymid.json", 107 | "rmethod":["GET"] 108 | }, 109 | { 110 | "func":"queryid", 111 | "host":"https://api.weibo.com", 112 | "path":"/2/statuses/queryid.json", 113 | "rmethod":["GET"] 114 | }, 115 | { 116 | "func":"count", 117 | "host":"https://api.weibo.com", 118 | "path":"/2/statuses/count.json", 119 | "rmethod":["GET"] 120 | }, 121 | { 122 | "func":"to_me", 123 | "host":"https://api.weibo.com", 124 | "path":"/2/statuses/to_me.json", 125 | "rmethod":["GET"] 126 | }, 127 | { 128 | "func":"to_me_ids", 129 | "host":"https://api.weibo.com", 130 | "path":"/2/statuses/to_me/ids.json", 131 | "rmethod":["GET"] 132 | }, 133 | { 134 | "func":"go", 135 | "host":"https://api.weibo.com", 136 | "path":"/2/statuses/go", 137 | "rmethod":["GET"] 138 | }, 139 | { 140 | "func":"emotions", 141 | "host":"https://api.weibo.com", 142 | "path":"/2/emotions.json", 143 | "rmethod":["GET"] 144 | }, 145 | { 146 | "func":"repost", 147 | "host":"https://api.weibo.com", 148 | "path":"/2/statuses/repost.json", 149 | "rmethod":["POST"] 150 | }, 151 | { 152 | "func":"destroy", 153 | "host":"https://api.weibo.com", 154 | "path":"/2/statuses/destroy.json", 155 | "rmethod":["POST"] 156 | }, 157 | { 158 | "func":"update", 159 | "host":"https://api.weibo.com", 160 | "path":"/2/statuses/update.json", 161 | "rmethod":["POST"] 162 | }, 163 | { 164 | "func":"upload", 165 | "host":"https://upload.api.weibo.com", 166 | "path":"/2/statuses/upload.json", 167 | "rmethod":["POST"] 168 | }, 169 | { 170 | "func":"upload_url_text", 171 | "host":"https://api.weibo.com", 172 | "path":"/2/statuses/upload_url_text.json", 173 | "rmethod":["POST"] 174 | }, 175 | { 176 | "func":"filter_create", 177 | "host":"https://api.weibo.com", 178 | "path":"/2/statuses/filter/create.json", 179 | "rmethod":["POST"] 180 | }, 181 | { 182 | "func":"mentions_shield", 183 | "host":"https://api.weibo.com", 184 | "path":"/2/statuses/mentions/shield.json", 185 | "rmethod":["POST"] 186 | }, 187 | { 188 | "func":"tags", 189 | "host":"https://api.weibo.com", 190 | "path":"/2/statuses/tags.json", 191 | "rmethod":["GET"] 192 | }, 193 | { 194 | "func":"tags_show_batch", 195 | "host":"https://api.weibo.com", 196 | "path":"/2/statuses/tags/show_batch.json", 197 | "rmethod":["GET"] 198 | }, 199 | { 200 | "func":"tag_timeline_ids", 201 | "host":"https://api.weibo.com", 202 | "path":"/2/statuses/tag_timeline/ids.json", 203 | "rmethod":["GET"] 204 | }, 205 | { 206 | "func":"tags_create", 207 | "host":"https://api.weibo.com", 208 | "path":"/2/statuses/tags/create.json", 209 | "rmethod":["POST"] 210 | }, 211 | { 212 | "func":"tags_destroy", 213 | "host":"https://api.weibo.com", 214 | "path":"/2/statuses/tags/destroy.json", 215 | "rmethod":["POST"] 216 | }, 217 | { 218 | "func":"tags_update", 219 | "host":"https://api.weibo.com", 220 | "path":"/2/statuses/tags/update.json", 221 | "rmethod":["POST"] 222 | }, 223 | { 224 | "func":"update_tags", 225 | "host":"https://api.weibo.com", 226 | "path":"/2/statuses/update_tags.json", 227 | "rmethod":["POST"] 228 | } 229 | ], 230 | "Comments":[ 231 | { 232 | "func":"show", 233 | "host":"https://api.weibo.com", 234 | "path":"/2/comments/show.json", 235 | "rmethod":["GET"] 236 | }, 237 | { 238 | "func":"by_me", 239 | "host":"https://api.weibo.com", 240 | "path":"/2/comments/by_me.json", 241 | "rmethod":["GET"] 242 | }, 243 | { 244 | "func":"to_me", 245 | "host":"https://api.weibo.com", 246 | "path":"/2/comments/to_me.json", 247 | "rmethod":["GET"] 248 | }, 249 | { 250 | "func":"timeline", 251 | "host":"https://api.weibo.com", 252 | "path":"/2/comments/timeline.json", 253 | "rmethod":["GET"] 254 | }, 255 | { 256 | "func":"mentions", 257 | "host":"https://api.weibo.com", 258 | "path":"/2/comments/mentions.json", 259 | "rmethod":["GET"] 260 | }, 261 | { 262 | "func":"show_batch", 263 | "host":"https://api.weibo.com", 264 | "path":"/2/comments/show_batch.json", 265 | "rmethod":["GET"] 266 | }, 267 | { 268 | "func":"create", 269 | "host":"https://api.weibo.com", 270 | "path":"/2/comments/create.json", 271 | "rmethod":["POST"] 272 | }, 273 | { 274 | "func":"destroy", 275 | "host":"https://api.weibo.com", 276 | "path":"/2/comments/destroy.json", 277 | "rmethod":["POST"] 278 | }, 279 | { 280 | "func":"destroy_batch", 281 | "host":"https://api.weibo.com", 282 | "path":"/2/comments/destroy_batch.json", 283 | "rmethod":["POST"] 284 | }, 285 | { 286 | "func":"reply", 287 | "host":"https://api.weibo.com", 288 | "path":"/2/comments/reply.json", 289 | "rmethod":["POST"] 290 | } 291 | ], 292 | "Users":[ 293 | { 294 | "func":"show", 295 | "host":"https://api.weibo.com", 296 | "path":"/2/users/show.json", 297 | "rmethod":["GET"] 298 | }, 299 | { 300 | "func":"domain_show", 301 | "host":"https://api.weibo.com", 302 | "path":"/2/users/domain_show.json", 303 | "rmethod":["GET"] 304 | }, 305 | { 306 | "func":"counts", 307 | "host":"https://api.weibo.com", 308 | "path":"/2/users/counts.json", 309 | "rmethod":["GET"] 310 | }, 311 | { 312 | "func":"get_top_status", 313 | "host":"https://api.weibo.com", 314 | "path":"/2/users/get_top_status.json", 315 | "rmethod":["GET"] 316 | }, 317 | { 318 | "func":"set_top_status", 319 | "host":"https://api.weibo.com", 320 | "path":"/2/users/set_top_status.json", 321 | "rmethod":["POST"] 322 | }, 323 | { 324 | "func":"cancel_top_status", 325 | "host":"https://api.weibo.com", 326 | "path":"/2/users/cancel_top_status.json", 327 | "rmethod":["POST"] 328 | } 329 | ], 330 | "Friendships":[ 331 | { 332 | "func":"friends", 333 | "host":"https://api.weibo.com", 334 | "path":"/2/friendships/friends.json", 335 | "rmethod":["GET"] 336 | }, 337 | { 338 | "func":"friends_remark_batch", 339 | "host":"https://api.weibo.com", 340 | "path":"/2/friendships/friends/remark_batch.json", 341 | "rmethod":["GET"] 342 | }, 343 | { 344 | "func":"friends_in_common", 345 | "host":"https://api.weibo.com", 346 | "path":"/2/friendships/friends/in_common.json", 347 | "rmethod":["GET"] 348 | }, 349 | { 350 | "func":"friends_bilateral", 351 | "host":"https://api.weibo.com", 352 | "path":"/2/friendships/friends/bilateral.json", 353 | "rmethod":["GET"] 354 | }, 355 | { 356 | "func":"friends_bilateral_ids", 357 | "host":"https://api.weibo.com", 358 | "path":"/2/friendships/friends/bilateral/ids.json", 359 | "rmethod":["GET"] 360 | }, 361 | { 362 | "func":"friends_ids", 363 | "host":"https://api.weibo.com", 364 | "path":"/2/friendships/friends/ids.json", 365 | "rmethod":["GET"] 366 | }, 367 | { 368 | "func":"followers", 369 | "host":"https://api.weibo.com", 370 | "path":"/2/friendships/followers.json", 371 | "rmethod":["GET"] 372 | }, 373 | { 374 | "func":"followers_ids", 375 | "host":"https://api.weibo.com", 376 | "path":"/2/friendships/followers/ids.json", 377 | "rmethod":["GET"] 378 | }, 379 | { 380 | "func":"followers_active", 381 | "host":"https://api.weibo.com", 382 | "path":"/2/friendships/followers/active.json", 383 | "rmethod":["GET"] 384 | }, 385 | { 386 | "func":"friends_chain_followers", 387 | "host":"https://api.weibo.com", 388 | "path":"/2/friendships/friends_chain/followers.json", 389 | "rmethod":["GET"] 390 | }, 391 | { 392 | "func":"show", 393 | "host":"https://api.weibo.com", 394 | "path":"/2/friendships/show.json", 395 | "rmethod":["GET"] 396 | }, 397 | { 398 | "func":"create", 399 | "host":"https://api.weibo.com", 400 | "path":"/2/friendships/create.json", 401 | "rmethod":["POST"] 402 | }, 403 | { 404 | "func":"destroy", 405 | "host":"https://api.weibo.com", 406 | "path":"/2/friendships/destroy.json", 407 | "rmethod":["POST"] 408 | }, 409 | { 410 | "func":"followers_destroy", 411 | "host":"https://api.weibo.com", 412 | "path":"/2/friendships/followers/destroy.json", 413 | "rmethod":["POST"] 414 | }, 415 | { 416 | "func":"followers_destroy", 417 | "host":"https://api.weibo.com", 418 | "path":"/2/friendships/followers/destroy.json", 419 | "rmethod":["POST"] 420 | }, 421 | { 422 | "func":"remark_update", 423 | "host":"https://api.weibo.com", 424 | "path":"/2/friendships/remark/update.json", 425 | "rmethod":["POST"] 426 | }, 427 | { 428 | "func":"groups", 429 | "host":"https://api.weibo.com", 430 | "path":"/2/friendships/groups.json", 431 | "rmethod":["GET"] 432 | }, 433 | { 434 | "func":"groups_timeline", 435 | "host":"https://api.weibo.com", 436 | "path":"/2/friendships/groups/timeline.json", 437 | "rmethod":["GET"] 438 | }, 439 | { 440 | "func":"groups_timeline_ids", 441 | "host":"https://api.weibo.com", 442 | "path":"/2/friendships/groups/timeline/ids.json", 443 | "rmethod":["GET"] 444 | }, 445 | { 446 | "func":"groups_members", 447 | "host":"https://api.weibo.com", 448 | "path":"/2/friendships/groups/members.json", 449 | "rmethod":["GET"] 450 | }, 451 | { 452 | "func":"groups_members_ids", 453 | "host":"https://api.weibo.com", 454 | "path":"/2/friendships/groups/members/ids.json", 455 | "rmethod":["GET"] 456 | }, 457 | { 458 | "func":"groups_members_description", 459 | "host":"https://api.weibo.com", 460 | "path":"/2/friendships/groups/members/description.json", 461 | "rmethod":["GET"] 462 | }, 463 | { 464 | "func":"groups_is_member", 465 | "host":"https://api.weibo.com", 466 | "path":"/2/friendships/groups/is_member.json", 467 | "rmethod":["GET"] 468 | }, 469 | { 470 | "func":"groups_listed", 471 | "host":"https://api.weibo.com", 472 | "path":"/2/friendships/groups/listed.json", 473 | "rmethod":["GET"] 474 | }, 475 | { 476 | "func":"groups_show", 477 | "host":"https://api.weibo.com", 478 | "path":"/2/friendships/groups/show.json", 479 | "rmethod":["GET"] 480 | }, 481 | { 482 | "func":"groups_show_batch", 483 | "host":"https://api.weibo.com", 484 | "path":"/2/friendships/groups/show_batch.json", 485 | "rmethod":["GET"] 486 | }, 487 | { 488 | "func":"groups_create", 489 | "host":"https://api.weibo.com", 490 | "path":"/2/friendships/groups/create.json", 491 | "rmethod":["POST"] 492 | }, 493 | { 494 | "func":"groups_update", 495 | "host":"https://api.weibo.com", 496 | "path":"/2/friendships/groups/update.json", 497 | "rmethod":["POST"] 498 | }, 499 | { 500 | "func":"groups_destroy", 501 | "host":"https://api.weibo.com", 502 | "path":"/2/friendships/groups/destroy.json", 503 | "rmethod":["POST"] 504 | }, 505 | { 506 | "func":"groups_members_add", 507 | "host":"https://api.weibo.com", 508 | "path":"/2/friendships/groups/members/add.json", 509 | "rmethod":["POST"] 510 | }, 511 | { 512 | "func":"groups_members_add_batch", 513 | "host":"https://api.weibo.com", 514 | "path":"/2/friendships/groups/members/add_batch.json", 515 | "rmethod":["POST"] 516 | }, 517 | { 518 | "func":"groups_members_update", 519 | "host":"https://api.weibo.com", 520 | "path":"/2/friendships/groups/members/update.json", 521 | "rmethod":["POST"] 522 | }, 523 | { 524 | "func":"groups_members_destroy", 525 | "host":"https://api.weibo.com", 526 | "path":"/2/friendships/groups/members/destroy.json", 527 | "rmethod":["POST"] 528 | }, 529 | { 530 | "func":"groups_order", 531 | "host":"https://api.weibo.com", 532 | "path":"/2/friendships/groups/order.json", 533 | "rmethod":["POST"] 534 | } 535 | ], 536 | "Account":[ 537 | { 538 | "func":"get_privacy", 539 | "host":"https://api.weibo.com", 540 | "path":"/2/account/get_privacy.json", 541 | "rmethod":["GET"] 542 | }, 543 | { 544 | "func":"profile_school_list", 545 | "host":"https://api.weibo.com", 546 | "path":"/2/account/profile/school_list.json", 547 | "rmethod":["GET"] 548 | }, 549 | { 550 | "func":"rate_limit_status", 551 | "host":"https://api.weibo.com", 552 | "path":"/2/account/rate_limit_status.json", 553 | "rmethod":["GET"] 554 | }, 555 | { 556 | "func":"profile_email", 557 | "host":"https://api.weibo.com", 558 | "path":"/2/account/profile/email.json", 559 | "rmethod":["GET"] 560 | }, 561 | { 562 | "func":"get_uid", 563 | "host":"https://api.weibo.com", 564 | "path":"/2/account/get_uid.json", 565 | "rmethod":["GET"] 566 | }, 567 | { 568 | "func":"end_session", 569 | "host":"https://api.weibo.com", 570 | "path":"/2/account/end_session.json", 571 | "rmethod":["GET"] 572 | } 573 | ], 574 | "Favorites":[ 575 | { 576 | "func":"favorites", 577 | "host":"https://api.weibo.com", 578 | "path":"/2/favorites.json", 579 | "rmethod":["GET"] 580 | }, 581 | { 582 | "func":"ids", 583 | "host":"https://api.weibo.com", 584 | "path":"/2/favorites/ids.json", 585 | "rmethod":["GET"] 586 | }, 587 | { 588 | "func":"show", 589 | "host":"https://api.weibo.com", 590 | "path":"/2/favorites/show.json", 591 | "rmethod":["GET"] 592 | }, 593 | { 594 | "func":"by_tags", 595 | "host":"https://api.weibo.com", 596 | "path":"/2/favorites/by_tags.json", 597 | "rmethod":["GET"] 598 | }, 599 | { 600 | "func":"by_tags_ids", 601 | "host":"https://api.weibo.com", 602 | "path":"/2/account/get_uid.json", 603 | "rmethod":["GET"] 604 | }, 605 | { 606 | "func":"end_session", 607 | "host":"https://api.weibo.com", 608 | "path":"/2/favorites/by_tags/ids.json", 609 | "rmethod":["GET"] 610 | }, 611 | { 612 | "func":"create", 613 | "host":"https://api.weibo.com", 614 | "path":"/2/favorites/create.json", 615 | "rmethod":["POST"] 616 | }, 617 | { 618 | "func":"destroy", 619 | "host":"https://api.weibo.com", 620 | "path":"/2/favorites/destroy.json", 621 | "rmethod":["POST"] 622 | }, 623 | { 624 | "func":"destroy_batch", 625 | "host":"https://api.weibo.com", 626 | "path":"/2/favorites/destroy_batch.json", 627 | "rmethod":["POST"] 628 | }, 629 | { 630 | "func":"tags_update", 631 | "host":"https://api.weibo.com", 632 | "path":"/2/favorites/tags/update.json", 633 | "rmethod":["POST"] 634 | }, 635 | { 636 | "func":"tags_update_batch", 637 | "host":"https://api.weibo.com", 638 | "path":"/2/favorites/tags/update_batch.json", 639 | "rmethod":["POST"] 640 | }, 641 | { 642 | "func":"tags_destroy_batch", 643 | "host":"https://api.weibo.com", 644 | "path":"/2/favorites/tags/destroy_batch.json", 645 | "rmethod":["POST"] 646 | } 647 | ], 648 | "Trends":[ 649 | { 650 | "func":"hourly", 651 | "host":"https://api.weibo.com", 652 | "path":"/2/trends/hourly.json", 653 | "rmethod":["GET"] 654 | }, 655 | { 656 | "func":"daily", 657 | "host":"https://api.weibo.com", 658 | "path":"/2/trends/daily.json", 659 | "rmethod":["GET"] 660 | }, 661 | { 662 | "func":"weekly", 663 | "host":"https://api.weibo.com", 664 | "path":"/2/trends/weekly.json", 665 | "rmethod":["GET"] 666 | } 667 | ], 668 | "Tags":[ 669 | { 670 | "func":"tags", 671 | "host":"https://api.weibo.com", 672 | "path":"/2/tags.json", 673 | "rmethod":["GET"] 674 | }, 675 | { 676 | "func":"tags_batch", 677 | "host":"https://api.weibo.com", 678 | "path":"/2/tags/tags_batch.json", 679 | "rmethod":["GET"] 680 | }, 681 | { 682 | "func":"suggestions", 683 | "host":"https://api.weibo.com", 684 | "path":"/2/tags/suggestions.json", 685 | "rmethod":["GET"] 686 | }, 687 | { 688 | "func":"create", 689 | "host":"https://api.weibo.com", 690 | "path":"/2/tags/create.json", 691 | "rmethod":["POST"] 692 | }, 693 | { 694 | "func":"destroy", 695 | "host":"https://api.weibo.com", 696 | "path":"/2/tags/destroy.json", 697 | "rmethod":["POST"] 698 | }, 699 | { 700 | "func":"destroy_batch", 701 | "host":"https://api.weibo.com", 702 | "path":"/2/tags/destroy_batch.json", 703 | "rmethod":["POST"] 704 | } 705 | ], 706 | "Register":[ 707 | { 708 | "func":"verify_nickname", 709 | "host":"https://api.weibo.com", 710 | "path":"/2/register/verify_nickname.json", 711 | "rmethod":["GET"] 712 | } 713 | ], 714 | "Search":[ 715 | { 716 | "func":"suggestions_users", 717 | "host":"https://api.weibo.com", 718 | "path":"/2/search/suggestions/users.json", 719 | "rmethod":["GET"] 720 | }, 721 | { 722 | "func":"suggestions_schools", 723 | "host":"https://api.weibo.com", 724 | "path":"/2/search/suggestions/schools.json", 725 | "rmethod":["GET"] 726 | }, 727 | { 728 | "func":"suggestions_companies", 729 | "host":"https://api.weibo.com", 730 | "path":"/2/search/suggestions/companies.json", 731 | "rmethod":["GET"] 732 | }, 733 | { 734 | "func":"suggestions_apps", 735 | "host":"https://api.weibo.com", 736 | "path":"/2/search/suggestions/apps.json", 737 | "rmethod":["GET"] 738 | }, 739 | { 740 | "func":"suggestions_at_users", 741 | "host":"https://api.weibo.com", 742 | "path":"/2/search/suggestions/at_users.json", 743 | "rmethod":["GET"] 744 | }, 745 | { 746 | "func":"topics", 747 | "host":"https://api.weibo.com", 748 | "path":"/2/search/topics.json", 749 | "rmethod":["GET"] 750 | } 751 | ], 752 | "Suggestions":[ 753 | { 754 | "func":"users_hot", 755 | "host":"https://api.weibo.com", 756 | "path":"/2/suggestions/users/hot.json", 757 | "rmethod":["GET"] 758 | }, 759 | { 760 | "func":"users_may_interested", 761 | "host":"https://api.weibo.com", 762 | "path":"/2/suggestions/users/may_interested.json", 763 | "rmethod":["GET"] 764 | }, 765 | { 766 | "func":"users_by_status", 767 | "host":"https://api.weibo.com", 768 | "path":"/2/suggestions/users/by_status.json", 769 | "rmethod":["GET"] 770 | }, 771 | { 772 | "func":"statuses_reorder", 773 | "host":"https://api.weibo.com", 774 | "path":"/2/suggestions/statuses/reorder.json", 775 | "rmethod":["GET"] 776 | }, 777 | { 778 | "func":"statuses_reorder_ids", 779 | "host":"https://api.weibo.com", 780 | "path":"/2/suggestions/statuses/reorder/ids.json", 781 | "rmethod":["GET"] 782 | }, 783 | { 784 | "func":"favorites_hot", 785 | "host":"https://api.weibo.com", 786 | "path":"/2/suggestions/favorites/hot.json", 787 | "rmethod":["GET"] 788 | }, 789 | { 790 | "func":"users_not_interested", 791 | "host":"https://api.weibo.com", 792 | "path":"/2/suggestions/users/not_interested.json", 793 | "rmethod":["POST"] 794 | } 795 | ], 796 | "Remind":[ 797 | { 798 | "func":"unread_count", 799 | "host":"https://rm.api.weibo.com", 800 | "path":"/2/remind/unread_count.json", 801 | "rmethod":["GET"] 802 | }, 803 | { 804 | "func":"set_count", 805 | "host":"https://rm.api.weibo.com", 806 | "path":"/2/remind/set_count.json", 807 | "rmethod":["POST"] 808 | } 809 | ], 810 | "Short_url":[ 811 | { 812 | "func":"shorten", 813 | "host":"https://api.weibo.com", 814 | "path":"/2/short_url/shorten.json", 815 | "rmethod":["GET"] 816 | }, 817 | { 818 | "func":"expand", 819 | "host":"https://api.weibo.com", 820 | "path":"/2/short_url/expand.json", 821 | "rmethod":["GET"] 822 | }, 823 | { 824 | "func":"share_counts", 825 | "host":"https://api.weibo.com", 826 | "path":"/2/short_url/share/counts.json", 827 | "rmethod":["GET"] 828 | }, 829 | { 830 | "func":"share_statuses", 831 | "host":"https://api.weibo.com", 832 | "path":"/2/short_url/share/statuses.json", 833 | "rmethod":["GET"] 834 | }, 835 | { 836 | "func":"comment_counts", 837 | "host":"https://api.weibo.com", 838 | "path":"/2/short_url/comment/counts.json", 839 | "rmethod":["GET"] 840 | }, 841 | { 842 | "func":"comment_comments", 843 | "host":"https://api.weibo.com", 844 | "path":"/2/short_url/comment/comments.json", 845 | "rmethod":["GET"] 846 | } 847 | ], 848 | "Notification":[ 849 | { 850 | "func":"send", 851 | "host":"https://api.weibo.com", 852 | "path":"/2/notification/send.json", 853 | "rmethod":["POST"] 854 | } 855 | ], 856 | "Common":[ 857 | { 858 | "func":"code_to_location", 859 | "host":"https://api.weibo.com", 860 | "path":"/2/common/code_to_location.json", 861 | "rmethod":["GET"] 862 | }, 863 | { 864 | "func":"get_city", 865 | "host":"https://api.weibo.com", 866 | "path":"/2/common/get_city.json", 867 | "rmethod":["GET"] 868 | }, 869 | { 870 | "func":"get_province", 871 | "host":"https://api.weibo.com", 872 | "path":"/2/common/get_province.json", 873 | "rmethod":["GET"] 874 | }, 875 | { 876 | "func":"get_country", 877 | "host":"https://api.weibo.com", 878 | "path":"/2/common/get_country.json", 879 | "rmethod":["GET"] 880 | }, 881 | { 882 | "func":"get_timezone", 883 | "host":"https://api.weibo.com", 884 | "path":"/2/common/get_timezone.json", 885 | "rmethod":["GET"] 886 | } 887 | ], 888 | "Place":[ 889 | { 890 | "func":"public_timeline", 891 | "host":"https://api.weibo.com", 892 | "path":"/2/place/public_timeline.json", 893 | "rmethod":["GET"] 894 | }, 895 | { 896 | "func":"friends_timeline", 897 | "host":"https://api.weibo.com", 898 | "path":"/2/place/friends_timeline.json", 899 | "rmethod":["GET"] 900 | }, 901 | { 902 | "func":"user_timeline", 903 | "host":"https://api.weibo.com", 904 | "path":"/2/place/user_timeline.json", 905 | "rmethod":["GET"] 906 | }, 907 | { 908 | "func":"poi_timeline", 909 | "host":"https://api.weibo.com", 910 | "path":"/2/place/poi_timeline.json", 911 | "rmethod":["GET"] 912 | }, 913 | { 914 | "func":"nearby_timeline", 915 | "host":"https://api.weibo.com", 916 | "path":"/2/place/nearby_timeline.json", 917 | "rmethod":["GET"] 918 | }, 919 | { 920 | "func":"statuses_show", 921 | "host":"https://api.weibo.com", 922 | "path":"/2/place/statuses/show.json", 923 | "rmethod":["GET"] 924 | }, 925 | { 926 | "func":"users_show", 927 | "host":"https://api.weibo.com", 928 | "path":"/2/place/users/show.json", 929 | "rmethod":["GET"] 930 | }, 931 | { 932 | "func":"users_checkins", 933 | "host":"https://api.weibo.com", 934 | "path":"/2/place/users/checkins.json", 935 | "rmethod":["GET"] 936 | }, 937 | { 938 | "func":"users_photos", 939 | "host":"https://api.weibo.com", 940 | "path":"/2/place/users/photos.json", 941 | "rmethod":["GET"] 942 | }, 943 | { 944 | "func":"users_tips", 945 | "host":"https://api.weibo.com", 946 | "path":"/2/place/users/tips.json", 947 | "rmethod":["GET"] 948 | }, 949 | { 950 | "func":"users_todos", 951 | "host":"https://api.weibo.com", 952 | "path":"/2/place/users/todos.json", 953 | "rmethod":["GET"] 954 | }, 955 | { 956 | "func":"pois_show", 957 | "host":"https://api.weibo.com", 958 | "path":"/2/place/pois/show.json", 959 | "rmethod":["GET"] 960 | }, 961 | { 962 | "func":"pois_users", 963 | "host":"https://api.weibo.com", 964 | "path":"/2/place/pois/users.json", 965 | "rmethod":["GET"] 966 | }, 967 | { 968 | "func":"pois_tips", 969 | "host":"https://api.weibo.com", 970 | "path":"/2/place/pois/tips.json", 971 | "rmethod":["GET"] 972 | }, 973 | { 974 | "func":"pois_photos", 975 | "host":"https://api.weibo.com", 976 | "path":"/2/place/pois/photos.json", 977 | "rmethod":["GET"] 978 | }, 979 | { 980 | "func":"pois_search", 981 | "host":"https://api.weibo.com", 982 | "path":"/2/place/pois/search.json", 983 | "rmethod":["GET"] 984 | }, 985 | { 986 | "func":"pois_category", 987 | "host":"https://api.weibo.com", 988 | "path":"/2/place/pois/category.json", 989 | "rmethod":["GET"] 990 | }, 991 | { 992 | "func":"nearby_pois", 993 | "host":"https://api.weibo.com", 994 | "path":"/2/place/nearby/pois.json", 995 | "rmethod":["GET"] 996 | }, 997 | { 998 | "func":"nearby_users", 999 | "host":"https://api.weibo.com", 1000 | "path":"/2/place/nearby/users.json", 1001 | "rmethod":["GET"] 1002 | }, 1003 | { 1004 | "func":"nearby_photos", 1005 | "host":"https://api.weibo.com", 1006 | "path":"/2/place/nearby/photos.json", 1007 | "rmethod":["GET"] 1008 | }, 1009 | { 1010 | "func":"nearby_users_list", 1011 | "host":"https://api.weibo.com", 1012 | "path":"/2/place/nearby_users/list.json", 1013 | "rmethod":["GET"] 1014 | }, 1015 | { 1016 | "func":"pois_create", 1017 | "host":"https://api.weibo.com", 1018 | "path":"/2/place/pois/create.json", 1019 | "rmethod":["POST"] 1020 | }, 1021 | { 1022 | "func":"pois_add_checkin", 1023 | "host":"https://api.weibo.com", 1024 | "path":"/2/place/pois/add_checkin.json", 1025 | "rmethod":["POST"] 1026 | }, 1027 | { 1028 | "func":"pois_add_photo", 1029 | "host":"https://api.weibo.com", 1030 | "path":"/2/place/pois/add_photo.json", 1031 | "rmethod":["POST"] 1032 | }, 1033 | { 1034 | "func":"pois_add_tip", 1035 | "host":"https://api.weibo.com", 1036 | "path":"/2/place/pois/add_tip.json", 1037 | "rmethod":["POST"] 1038 | }, 1039 | { 1040 | "func":"pois_add_todo", 1041 | "host":"https://api.weibo.com", 1042 | "path":"/2/place/pois/add_todo.json", 1043 | "rmethod":["POST"] 1044 | }, 1045 | { 1046 | "func":"nearby_users_create", 1047 | "host":"https://api.weibo.com", 1048 | "path":"/2/place/nearby_users/create.json", 1049 | "rmethod":["POST"] 1050 | }, 1051 | { 1052 | "func":"nearby_users_destroy", 1053 | "host":"https://api.weibo.com", 1054 | "path":"/2/place/nearby_users/destroy.json", 1055 | "rmethod":["POST"] 1056 | } 1057 | ], 1058 | "Location":[ 1059 | { 1060 | "func":"base_get_map_image", 1061 | "host":"https://api.weibo.com", 1062 | "path":"/2/location/base/get_map_image.json", 1063 | "rmethod":["GET"] 1064 | }, 1065 | { 1066 | "func":"geo_ip_to_geo", 1067 | "host":"https://api.weibo.com", 1068 | "path":"/2/location/geo/ip_to_geo.json", 1069 | "rmethod":["GET"] 1070 | }, 1071 | { 1072 | "func":"geo_address_to_geo", 1073 | "host":"https://api.weibo.com", 1074 | "path":"/2/location/geo/address_to_geo.json", 1075 | "rmethod":["GET"] 1076 | }, 1077 | { 1078 | "func":"geo_geo_to_address", 1079 | "host":"https://api.weibo.com", 1080 | "path":"/2/location/geo/geo_to_address.json", 1081 | "rmethod":["GET"] 1082 | }, 1083 | { 1084 | "func":"geo_gps_to_offset", 1085 | "host":"https://api.weibo.com", 1086 | "path":"/2/location/geo/gps_to_offset.json", 1087 | "rmethod":["GET"] 1088 | }, 1089 | { 1090 | "func":"geo_is_domestic", 1091 | "host":"https://api.weibo.com", 1092 | "path":"/2/location/geo/is_domestic.json", 1093 | "rmethod":["GET"] 1094 | }, 1095 | { 1096 | "func":"pois_search_by_location", 1097 | "host":"https://api.weibo.com", 1098 | "path":"/2/location/pois/search/by_location.json", 1099 | "rmethod":["GET"] 1100 | }, 1101 | { 1102 | "func":"pois_search_by_geo", 1103 | "host":"https://api.weibo.com", 1104 | "path":"/2/location/pois/search/by_geo.json", 1105 | "rmethod":["GET"] 1106 | }, 1107 | { 1108 | "func":"pois_search_by_area", 1109 | "host":"https://api.weibo.com", 1110 | "path":"/2/location/pois/search/by_area.json", 1111 | "rmethod":["GET"] 1112 | }, 1113 | { 1114 | "func":"pois_show_batch", 1115 | "host":"https://api.weibo.com", 1116 | "path":"/2/location/pois/show_batch.json", 1117 | "rmethod":["GET"] 1118 | }, 1119 | { 1120 | "func":"pois_add", 1121 | "host":"https://api.weibo.com", 1122 | "path":"/2/location/pois/add.json", 1123 | "rmethod":["POST"] 1124 | }, 1125 | { 1126 | "func":"mobile_get_location", 1127 | "host":"https://api.weibo.com", 1128 | "path":"/2/location/mobile/get_location.json", 1129 | "rmethod":["POST"] 1130 | }, 1131 | { 1132 | "func":"line_drive_route", 1133 | "host":"https://api.weibo.com", 1134 | "path":"/2/location/line/drive_route.json", 1135 | "rmethod":["GET"] 1136 | }, 1137 | { 1138 | "func":"line_bus_route", 1139 | "host":"https://api.weibo.com", 1140 | "path":"/2/location/line/bus_route.json", 1141 | "rmethod":["GET"] 1142 | }, 1143 | { 1144 | "func":"line_bus_line", 1145 | "host":"https://api.weibo.com", 1146 | "path":"/2/location/line/bus_line.json", 1147 | "rmethod":["GET"] 1148 | }, 1149 | { 1150 | "func":"line_bus_station", 1151 | "host":"https://api.weibo.com", 1152 | "path":"/2/location/line/bus_station.json", 1153 | "rmethod":["GET"] 1154 | }, 1155 | { 1156 | "func":"line_bus_station", 1157 | "host":"https://api.weibo.com", 1158 | "path":"/2/location/line/bus_station.json", 1159 | "rmethod":["GET"] 1160 | } 1161 | ] 1162 | } 1163 | 1164 | 1165 | --------------------------------------------------------------------------------