slack-ruby-gem, 用于 Slack API的ruby 包装器

分享于 

2分钟阅读

GitHub

  繁體 雙語
A Ruby wrapper for the Slack API
  • 源代码名称:slack-ruby-gem
  • 源代码网址:http://www.github.com/aki017/slack-ruby-gem
  • slack-ruby-gem源代码文档
  • slack-ruby-gem源代码下载
  • Git URL:
    git://www.github.com/aki017/slack-ruby-gem.git
    Git Clone代码到本地:
    git clone http://www.github.com/aki017/slack-ruby-gem
    Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/aki017/slack-ruby-gem
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
    
    Slack

    Gem VersionBuild StatusCoverage Status

    用于 Slack API的ruby 包装器

    安装

    将此行添加到你的应用程序的Gemfile中:

     
    gem 'slack-api'
    
    
    
     

    然后执行:

     
    $ bundle
    
    
    
     

    或者将它的自己安装为:

    
    $ gem install slack-api
    
    
    
    

    文档

    http://www.rubydoc.info/gems/slack-api

    用法

    require"slack"Slack.configure do |config|
     config.token ="YOUR_TOKEN"endSlack.auth_test

    示例

    https://github.com/aki017/slack-ruby-gem/tree/dev/examples

    • fork ( http://github.com/aki017/slack-ruby-gem/fork )
    • 创建你的特征分支( git checkout -b my-new-feature )
    • 提交你的更改( git commit -am 'Add some feature' )
    • 推送到分支( git push origin my-new-feature )
    • 创建新的拉请求

    API  WRAP  换行  Slack Api  
    相关文章