Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用ruby hipchat-rb gem通过 hipchat 发送文本文件。在这个 gem 的自述文件中似乎没有办法做到这一点。是否有可能做到这一点?
工作解决方案:
#!/usr/bin/env ruby require 'hipchat' client = HipChat::Client.new('HIPCHAT_TOKEN', :api_version => 'v2', :server_url => 'HIPCHAT_URL') client.user('some_username').send_file('message', File.open('some-file.txt') )