这是腾讯微博的一个ruby sdk,灵感来自于新浪微博的一个ruby gem(link)。
目前只实现了关系链接口,微博接口,微博接口,名单接口, 并且没有推送到ruby gem上。
目前尚未提交到ruby gem上,因此不能直接gem install安装
- Clone 源代码到vendor/gems目录下
- 修改Gemfile
tencent_weibo, :path => "vendor/gems/tencent_weibo"
- bundle install安装
-
Config:
TencentWeibo::Config.api_key = YOUR_KEY TencentWeibo::Config.api_secret = YOUR_SECRET TencentWeibo::Config.redirect_uri = YOUR_CALLBACK_URL
-
初始化Client:
client = TencentWeibo::Client.new
-
使用api:
client.t_weibo.add(opts={....})
-
api参考腾讯微博开放平台(link)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request