slack_chatter 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbdeb6731b5e1f50eb9efe9bc7df788107008ed6
4
- data.tar.gz: 302bc64aff8bb9403edea5f360ac3c626bc4ff42
3
+ metadata.gz: 3a822279d3dd8c6d418f00e25034714998beb3de
4
+ data.tar.gz: cbe7cc844bca6b7f0874a97a4be26e55703ff2ca
5
5
  SHA512:
6
- metadata.gz: d10f464eb8d22c77b64968518b536878b8af5d88d6b9e141cfbe2ac9b13803f6d521acee316a5e0ae49e9cbb58f7554af095a1d4f3bf69862bb2f36d9e1ccc2b
7
- data.tar.gz: aae2560b0e2356d619e3cddaef096a88079215aea16c214289d0d4ccb69db1a8aea5d110f0cf03103dd476d59a161c583a2fe8d8e5aa3d1c5d3745ba7add7919
6
+ metadata.gz: a60ad2df5711cb0f548fa8b436c1ed21d19e9aba4bcaabbd3195dbfa7fbd503a054b123b7b19a783cd24b2ccddb1feea0f30b75f8c6c02c6609f1d7101bc27ae
7
+ data.tar.gz: e6917dbf9fbed09711f74776aa0c851ee5c86b6829669a482e826260a66e23916f2cebeca3fb981049538da1ff161c222a5279c930ee4a6ad5cac735fb8fc0cf
data/README.md CHANGED
@@ -22,6 +22,7 @@ Or install it yourself as:
22
22
  $ gem install slack_chatter
23
23
 
24
24
  ## Basic Configuration
25
+ To use this client you will need a slack api access token which can be found [here](https://api.slack.com/web)
25
26
 
26
27
  #### Create a new client instance
27
28
  ```ruby
@@ -5,7 +5,7 @@ module SlackChatter
5
5
 
6
6
 
7
7
  def close user_id
8
- call_method("im", "close", {"user" => channel_id})
8
+ call_method("im", "close", {"user" => user_id})
9
9
  end
10
10
 
11
11
  def history user_id, opts={}
@@ -13,7 +13,7 @@ module SlackChatter
13
13
  # oldest - Start of time range of messages to include in results
14
14
  # inclusive - Include messages with latest or oldest timestamp in results (send 0/1)
15
15
  # count - Number of messages to return, between 1 and 1000
16
- call_method("im", "history", {"channel" => channel_id}.merge(opts))
16
+ call_method("im", "history", {"user" => user_id}.merge(opts))
17
17
  end
18
18
 
19
19
  def list
@@ -23,11 +23,11 @@ module SlackChatter
23
23
 
24
24
  def mark user_id, epoch_time_stamp
25
25
  # ts - Timestamp of the most recently seen message
26
- call_method("im", "mark", {"channel" => channel_id, "ts" => epoch_time_stamp})
26
+ call_method("im", "mark", {"user" => user_id, "ts" => epoch_time_stamp})
27
27
  end
28
28
 
29
29
  def open user_id
30
- call_method("im", "open", {"user" => channel_id})
30
+ call_method("im", "open", {"user" => user_id})
31
31
  end
32
32
  end
33
33
  end
@@ -1,3 +1,3 @@
1
1
  module SlackChatter
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack_chatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Bryant