We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7431cb commit 5391823Copy full SHA for 5391823
1 file changed
bin/buff
@@ -0,0 +1,13 @@
1
+#!/usr/bin/env ruby
2
+
3
+$LOAD_PATH.unshift(File.dirname(__FILE__), '..', 'lib')
4
5
+require 'buff'
6
7
+_, _, access_token, profile_id = File.open(File.expand_path '~/.bufferapprc').readlines.map(&:chomp)
8
9
+client = Buff::Client.new(access_token)
10
+id = client.profiles[profile_id.to_i].id
11
12
+response = client.create_update(body: {text: ARGV.join(" "), profile_ids: [ id ] } )
13
+puts response if ENV['BUFF_DEBUG']
0 commit comments