Skip to content

pid-t/tencent_weibo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TencentWeibo

这是腾讯微博的一个ruby sdk,灵感来自于新浪微博的一个ruby gem(link)。

目前只实现了关系链接口,微博接口,微博接口,名单接口, 并且没有推送到ruby gem上。

安装

目前尚未提交到ruby gem上,因此不能直接gem install安装

  1. Clone 源代码到vendor/gems目录下
  2. 修改Gemfile tencent_weibo, :path => "vendor/gems/tencent_weibo"
  3. bundle install安装

使用

  1. Config:

    TencentWeibo::Config.api_key = YOUR_KEY
    TencentWeibo::Config.api_secret = YOUR_SECRET
    TencentWeibo::Config.redirect_uri = YOUR_CALLBACK_URL
  2. 初始化Client:

    client = TencentWeibo::Client.new
  3. 使用api:

    client.t_weibo.add(opts={....})
  4. api参考腾讯微博开放平台(link)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

A ruby sdk for tencent micro blog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages