sqwiggle-ruby:Sqwiggle API的Ruby宝石

时间:2021-05-23 23:30:00
【文件属性】:
文件名称:sqwiggle-ruby:Sqwiggle API的Ruby宝石
文件大小:19KB
文件格式:ZIP
更新时间:2021-05-23 23:30:00
Ruby 用于Sqwiggle API的Ruby客户端 Sqwiggle REST API的Ruby包装器。 安装 将此行添加到您的应用程序的Gemfile中: gem 'sqwiggle-ruby' 然后执行: $ bundle 或将其自己安装为: $ gem install sqwiggle-ruby 配置 通过创建API客户端 获得令牌后,有两种实例化客户端实例的方法。 全局(不是线程安全的) Sqwiggle . token = 'your token here' client = Sqwiggle . client 本地(线程安全) client = Sqwiggle . client ( 'your token here' ) 这基本上是语法糖 Sqwiggle :: Api :: Client . new ( 'your token here' ) 用法 服务
【文件预览】:
sqwiggle-ruby-master
----sqwiggle-ruby.gemspec(984B)
----lib()
--------sqwiggle()
--------sqwiggle-ruby.rb(958B)
----Gemfile(190B)
----spec()
--------user_spec.rb(648B)
--------message_spec.rb(4KB)
--------room_spec.rb(265B)
--------spec_helper.rb(129B)
--------conversation_spec.rb(323B)
--------invite_spec.rb(300B)
--------errors_spec.rb(2KB)
--------resource_behaviour.rb(297B)
--------api()
--------sqwiggle_spec.rb(275B)
----Rakefile(28B)
----.travis.yml(688B)
----LICENSE(1KB)
----README.md(2KB)
----.rspec(24B)
----.gitignore(203B)

网友评论