layabout 0.0.1 → 0.0.2

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: 616e412288a6c1cc8efb6adcf371f23d636ae4b2
4
- data.tar.gz: 42c701ea50fb420e3e72b427cbcc6340d919683f
3
+ metadata.gz: 3febb0cb4ef31e13635c2efdd3e0e98433f6b161
4
+ data.tar.gz: ad1c1403a562717bc1061fe30332900c5b1ab879
5
5
  SHA512:
6
- metadata.gz: 55db5b1f883b75f510f29f81869411d074daeefad222952d8dd2c265ca1f31d9578f3888cc94be2d422597749a745a3fcf0341afdc642ad71910f8cbd75a22b8
7
- data.tar.gz: 0f43ac974b215764863f5eb0e74300ebd61fd5aa4d254f936105f0a4cbbbd9a99233410e445d7b0c3c02173c60e958096990de0aed62f64f1c88c48bcc62189b
6
+ metadata.gz: 66fcbc10d1a591c4c51ae1eb4850c6c56956182297450645bb0811af6441df61b2cffd1b1bd95d383cdc3dd8a07447ff62db83e13e84f057bb09d6f9a6222e1e
7
+ data.tar.gz: 1665f9893954c87446dba008226e4f84310407ff36703fb3fab1b225395d090286d08cd5564f20009c042d3c449d6d419e6b68508bc1634581229f67f64df051
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - "2.0.0"
3
+ - 2.0.0
4
+ - 2.1.0
4
5
  script: bundle exec rspec spec
data/Gemfile CHANGED
@@ -1,8 +1,10 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- group :test, :development do
6
- gem 'pry'
7
- gem 'simplecov'
5
+ group :test do
6
+ gem "pry"
7
+ gem "rspec", "~> 3.1.0", ">= 3.1.0"
8
+ gem "vcr", "~> 2.9.0", ">= 2.9.0"
9
+ gem "webmock", "~> 1.18.0", ">= 1.18.0"
8
10
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- layabout (0.0.1)
4
+ layabout (0.0.2)
5
5
  httpi (~> 2.1.1)
6
6
  multipart-post (~> 1.1.0)
7
7
 
@@ -13,12 +13,10 @@ GEM
13
13
  crack (0.4.2)
14
14
  safe_yaml (~> 1.0.0)
15
15
  diff-lcs (1.2.5)
16
- docile (1.1.5)
17
16
  httpi (2.1.1)
18
17
  rack
19
18
  rubyntlm (~> 0.3.2)
20
19
  method_source (0.8.2)
21
- multi_json (1.10.1)
22
20
  multipart-post (1.1.5)
23
21
  pry (0.10.1)
24
22
  coderay (~> 1.1.0)
@@ -39,11 +37,6 @@ GEM
39
37
  rspec-support (3.1.0)
40
38
  rubyntlm (0.3.4)
41
39
  safe_yaml (1.0.3)
42
- simplecov (0.9.0)
43
- docile (~> 1.1.0)
44
- multi_json
45
- simplecov-html (~> 0.8.0)
46
- simplecov-html (0.8.0)
47
40
  slop (3.6.0)
48
41
  vcr (2.9.3)
49
42
  webmock (1.18.0)
@@ -54,10 +47,8 @@ PLATFORMS
54
47
  ruby
55
48
 
56
49
  DEPENDENCIES
57
- bundler (~> 1.3)
58
50
  layabout!
59
51
  pry
60
52
  rspec (~> 3.1.0, >= 3.1.0)
61
- simplecov
62
53
  vcr (~> 2.9.0, >= 2.9.0)
63
54
  webmock (~> 1.18.0, >= 1.18.0)
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Layabout - Slack API Toolbelt
2
2
 
3
+ ![travis] (https://travis-ci.org/jamescook/layabout.svg)
3
4
 
4
5
  ### Configuration
5
6
  ```
@@ -13,6 +14,9 @@ Layabout.configure do |config|
13
14
 
14
15
  ```
15
16
  Layabout.say('hello world', '#random') # Posts a message
17
+ Layabout.join('#random') # Join a channel. You may also use a channel ID here
18
+ Layabout.leave('C234546') # Leave a channel by ID. Channel name does not work here
16
19
  Layabout.upload('/path/to/a/silly.gif', 'C234546') # You must specify the channel ID ...
17
- Layabout.channels # Return a list of channels
20
+ Layabout.channels # Return a list of channels for your team
21
+ Layabout.users # Return a list of users for your team
18
22
  ```
@@ -19,8 +19,4 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_dependency "httpi", "~> 2.1.1"
21
21
  spec.add_dependency "multipart-post", "~> 1.1.0"
22
- spec.add_development_dependency "bundler", "~> 1.3"
23
- spec.add_development_dependency "rspec", "~> 3.1.0", ">= 3.1.0"
24
- spec.add_development_dependency "vcr", "~> 2.9.0", ">= 2.9.0"
25
- spec.add_development_dependency "webmock", "~> 1.18.0", ">= 1.18.0"
26
22
  end
@@ -29,7 +29,7 @@ module Layabout
29
29
  end
30
30
 
31
31
  def join(channel_name)
32
- SlackResponse.new(HTTPI.get(http_request(join_endpoint(channel_name))))
32
+ process('channel', SlackResponse.new(HTTPI.get(http_request(join_endpoint(channel_name)))))
33
33
  end
34
34
 
35
35
  private
@@ -58,6 +58,7 @@ module Layabout
58
58
 
59
59
  def leave_endpoint(channel_id)
60
60
  build_channel_endpoint('leave').tap do |uri|
61
+ channel_id.sub!('#', '%23')
61
62
  uri.query = uri.query + "&channel=#{channel_id}"
62
63
  end
63
64
  end
@@ -1,6 +1,7 @@
1
1
  require_relative './chat.rb'
2
2
  require_relative './channels.rb'
3
3
  require_relative './file_upload.rb'
4
+ require_relative './users.rb'
4
5
 
5
6
  module Layabout
6
7
  module Helpers
@@ -13,9 +14,21 @@ module Layabout
13
14
  Channels.new.list
14
15
  end
15
16
 
17
+ def join(channel_name)
18
+ Channels.new.join(channel_name)
19
+ end
20
+
21
+ def leave(channel_id)
22
+ Channels.new.leave(channel_id)
23
+ end
24
+
16
25
  def upload(filepath, channels, options={})
17
26
  options = options.dup.merge(filepath: filepath, channels: channels)
18
27
  FileUpload.new(options).upload
19
28
  end
29
+
30
+ def users
31
+ Users.new.list
32
+ end
20
33
  end
21
34
  end
@@ -0,0 +1,43 @@
1
+ require 'forwardable'
2
+ require 'ostruct'
3
+
4
+ module Layabout
5
+ module Slack
6
+ class User
7
+ extend Forwardable
8
+
9
+ def_delegators :@attributes, :id,
10
+ :name,
11
+ :deleted,
12
+ :color,
13
+ :first_name,
14
+ :last_name,
15
+ :real_name,
16
+ :email,
17
+ :skype,
18
+ :phone,
19
+ :image_24,
20
+ :image_32,
21
+ :image_48,
22
+ :image_72,
23
+ :image_192,
24
+ :is_admin,
25
+ :is_owner,
26
+ :has_files
27
+
28
+ def initialize(attributes={})
29
+ # 'Flatten' the hash. No need for the nested profile.
30
+ attributes = attributes.dup
31
+ if attributes.key? 'profile'
32
+ attributes.merge! attributes['profile']
33
+ attributes.delete 'profile'
34
+ end
35
+ @attributes = OpenStruct.new(attributes)
36
+ end
37
+
38
+ def inspect
39
+ "<Layabout::Slack::User id='#{id}' name='#{name}'>"
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,41 @@
1
+ require 'uri'
2
+ require 'httpi'
3
+ require 'forwardable'
4
+ require_relative '../layabout/slack/user.rb'
5
+
6
+ module Layabout
7
+ class Users
8
+ extend Forwardable
9
+
10
+ def_delegators :@configuration, :domain, :team, :token
11
+
12
+ def initialize(options={})
13
+ @configuration = ::Layabout.configuration
14
+ end
15
+
16
+ def list
17
+ process 'members', SlackResponse.new(HTTPI.get(http_request(endpoint)))
18
+ end
19
+
20
+ private
21
+
22
+ def process(key, slack_response)
23
+ data = slack_response.body.fetch(key)
24
+ return data.map{|json| ::Layabout::Slack::User.new(json) }
25
+ end
26
+
27
+ def http_request(endpoint)
28
+ @http_request ||= HTTPI::Request.new(endpoint.to_s).tap do |httpi|
29
+ httpi.auth.ssl.verify_mode = :peer
30
+ httpi.query = {'token' => token}
31
+ end
32
+ end
33
+
34
+
35
+ def endpoint
36
+ domain.tap do |uri|
37
+ uri.path = "/api/users.list"
38
+ end
39
+ end
40
+ end
41
+ end
@@ -1,3 +1,3 @@
1
1
  module Layabout
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://isotope11.slack.com/api/channels.join?name=%23ruby&token=xoxp-2223009426-2222616703-2700726491-4a3e8d
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Access-Control-Allow-Origin:
22
+ - "*"
23
+ Cache-Control:
24
+ - private, no-cache, no-store, must-revalidate
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Sat, 27 Sep 2014 12:47:51 GMT
29
+ Expires:
30
+ - Mon, 26 Jul 1997 05:00:00 GMT
31
+ Pragma:
32
+ - no-cache
33
+ Server:
34
+ - Apache
35
+ Strict-Transport-Security:
36
+ - max-age=31536000; includeSubDomains
37
+ Vary:
38
+ - Accept-Encoding
39
+ X-Accepted-Oauth-Scopes:
40
+ - post
41
+ X-Oauth-Scopes:
42
+ - identify,read,post,client
43
+ X-Xss-Protection:
44
+ - '0'
45
+ Content-Length:
46
+ - '198'
47
+ Connection:
48
+ - keep-alive
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"ok":true,"already_in_channel":true,"channel":{"id":"C026VKGP7","name":"ruby","is_channel":true,"created":1395427609,"creator":"U026JJ2HH","is_archived":false,"is_general":false,"is_member":true,"members":["U026JJ4LP"],"topic":{"value":"","creator":"","last_set":"0"},"purpose":{"value":"","creator":"","last_set":"0"}}}'
52
+ http_version:
53
+ recorded_at: Sat, 27 Sep 2014 12:47:51 GMT
54
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://isotope11.slack.com/api/channels.leave?channel=C026VKGP7&token=xoxp-2223009426-2222616703-2700726491-4a3e8d
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Access-Control-Allow-Origin:
22
+ - "*"
23
+ Cache-Control:
24
+ - private, no-cache, no-store, must-revalidate
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Sat, 27 Sep 2014 12:53:39 GMT
29
+ Expires:
30
+ - Mon, 26 Jul 1997 05:00:00 GMT
31
+ Pragma:
32
+ - no-cache
33
+ Server:
34
+ - Apache
35
+ Strict-Transport-Security:
36
+ - max-age=31536000; includeSubDomains
37
+ Vary:
38
+ - Accept-Encoding
39
+ X-Accepted-Oauth-Scopes:
40
+ - post
41
+ X-Oauth-Scopes:
42
+ - identify,read,post,client
43
+ X-Xss-Protection:
44
+ - '0'
45
+ Content-Length:
46
+ - '31'
47
+ Connection:
48
+ - keep-alive
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"ok":true}'
52
+ http_version:
53
+ recorded_at: Sat, 27 Sep 2014 12:53:39 GMT
54
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,189 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://isotope11.slack.com/api/users.list?token=xoxp-2223009426-2222616703-2700726491-4a3e8d
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Access-Control-Allow-Origin:
22
+ - "*"
23
+ Cache-Control:
24
+ - private, no-cache, no-store, must-revalidate
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Sat, 27 Sep 2014 13:12:05 GMT
29
+ Expires:
30
+ - Mon, 26 Jul 1997 05:00:00 GMT
31
+ Pragma:
32
+ - no-cache
33
+ Server:
34
+ - Apache
35
+ Strict-Transport-Security:
36
+ - max-age=31536000; includeSubDomains
37
+ Vary:
38
+ - Accept-Encoding
39
+ X-Accepted-Oauth-Scopes:
40
+ - read
41
+ X-Oauth-Scopes:
42
+ - identify,read,post,client
43
+ X-Xss-Protection:
44
+ - '0'
45
+ Content-Length:
46
+ - '2432'
47
+ Connection:
48
+ - keep-alive
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"ok":true,"members":[{"id":"U026JJ2UV","name":"adamgamble","deleted":true,"profile":{"first_name":"Adam","last_name":"Gamble","title":"Senior
52
+ Developer","real_name":"Adam Gamble","real_name_normalized":"Adam Gamble","email":"agamble@isotope11.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/c36eec64e1c4b6de48c500b264ce655c.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0002-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/c36eec64e1c4b6de48c500b264ce655c.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0002-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/c36eec64e1c4b6de48c500b264ce655c.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F20655%2Fimg%2Favatars%2Fava_0002-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/c36eec64e1c4b6de48c500b264ce655c.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0002-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/c36eec64e1c4b6de48c500b264ce655c.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0002.png"},"has_files":true},{"id":"U02CB4HEZ","name":"adamrobbie","deleted":false,"status":null,"color":"99a949","real_name":"Adam
53
+ Robbie","skype":null,"phone":"3212628089","tz":"America\/New_York","tz_label":"Eastern
54
+ Daylight Time","tz_offset":-14400,"profile":{"first_name":"Adam","last_name":"Robbie","image_24":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-08\/2443544045_24.jpg","image_32":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-08\/2443544045_32.jpg","image_48":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-08\/2443544045_48.jpg","image_72":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-08\/2443544045_72.jpg","image_192":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-08\/2443544045_192.jpg","image_original":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-08\/2443544045_original.jpg","phone":"3212628089","title":"I
55
+ make and drink a lot of beer.","real_name":"Adam Robbie","real_name_normalized":"Adam
56
+ Robbie","email":"arobbie@isotope11.com"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":true},{"id":"U02K9RJTP","name":"bradleyprice","deleted":false,"status":null,"color":"9b3b45","real_name":"Bradley
57
+ Price","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
58
+ Daylight Time","tz_offset":-18000,"profile":{"first_name":"Bradley","last_name":"Price","real_name":"Bradley
59
+ Price","real_name_normalized":"Bradley Price","email":"bradley@isotope11.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/7c68721706a4950237431330e90ee7e1.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0000-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/7c68721706a4950237431330e90ee7e1.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0000-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/7c68721706a4950237431330e90ee7e1.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0000-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/7c68721706a4950237431330e90ee7e1.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0000-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/7c68721706a4950237431330e90ee7e1.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0000.png"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":false},{"id":"U026LNDQB","name":"brandonblaylock","deleted":false,"status":null,"color":"5b89d5","real_name":"Brandon
60
+ Blaylock","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
61
+ Daylight Time","tz_offset":-18000,"profile":{"image_24":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-18\/2470303307_24.jpg","image_32":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-18\/2470303307_32.jpg","image_48":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-18\/2470303307_48.jpg","image_72":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-18\/2470303307_72.jpg","image_192":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-18\/2470303307_192.jpg","image_original":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-18\/2470303307_original.jpg","first_name":"Brandon","last_name":"Blaylock","real_name":"Brandon
62
+ Blaylock","real_name_normalized":"Brandon Blaylock","email":"brandon@isotope11.com"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":true},{"id":"U026JL37B","name":"end_guy","deleted":false,"status":null,"color":"684b6c","real_name":"David
63
+ Chapman","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
64
+ Daylight Time","tz_offset":-18000,"profile":{"first_name":"David","last_name":"Chapman","title":"mostly
65
+ I just sit around out there in the shed a''lookin'' at the ground, mhm.","real_name":"David
66
+ Chapman","real_name_normalized":"David Chapman","email":"david@isotope11.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/a139ff82ca0dd3c538a20d52e65bb801.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0014-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/a139ff82ca0dd3c538a20d52e65bb801.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0014-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/a139ff82ca0dd3c538a20d52e65bb801.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0014-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/a139ff82ca0dd3c538a20d52e65bb801.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0014-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/a139ff82ca0dd3c538a20d52e65bb801.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0014.png"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":true},{"id":"U02JX3FAF","name":"harris","deleted":false,"status":null,"color":"4cc091","real_name":"Harris
67
+ Reynolds","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
68
+ Daylight Time","tz_offset":-18000,"profile":{"first_name":"Harris Reynolds","real_name":"Harris
69
+ Reynolds","real_name_normalized":"Harris Reynolds","email":"harris@shipt.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/0927e2f8cca31e2b0a4f75b1ef0fbef9.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0013-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/0927e2f8cca31e2b0a4f75b1ef0fbef9.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0013-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/0927e2f8cca31e2b0a4f75b1ef0fbef9.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0013-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/0927e2f8cca31e2b0a4f75b1ef0fbef9.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0013-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/0927e2f8cca31e2b0a4f75b1ef0fbef9.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0013.png"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":true,"is_ultra_restricted":true,"is_bot":false,"has_files":false},{"id":"U026JJ4LP","name":"jamescook","deleted":false,"status":null,"color":"3c989f","real_name":"james
70
+ cook","skype":"willl u be my fren","phone":"hay","tz":"America\/Regina","tz_label":"Central
71
+ Standard Time","tz_offset":-21600,"profile":{"first_name":"james","last_name":"cook","title":"post
72
+ gifs","skype":"willl u be my fren","phone":"hay","image_24":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-06-26\/2419847637_24.jpg","image_32":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-06-26\/2419847637_32.jpg","image_48":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-06-26\/2419847637_48.jpg","image_72":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-06-26\/2419847637_72.jpg","image_192":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-06-26\/2419847637_192.jpg","image_original":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-06-26\/2419847637_original.jpg","real_name":"james
73
+ cook","real_name_normalized":"james cook","email":"james@isotope11.com"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":true},{"id":"U02LYDWK7","name":"jimmybnsn","deleted":false,"status":null,"color":"d58247","real_name":"Jimmy
74
+ Benson","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
75
+ Daylight Time","tz_offset":-18000,"profile":{"first_name":"Jimmy","last_name":"Benson","image_24":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-09-25\/2713798728_24.jpg","image_32":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-09-25\/2713798728_32.jpg","image_48":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-09-25\/2713798728_48.jpg","image_72":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-09-25\/2713798728_72.jpg","image_192":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-09-25\/2713798728_192.jpg","image_original":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-09-25\/2713798728_original.jpg","real_name":"Jimmy
76
+ Benson","real_name_normalized":"Jimmy Benson","email":"jimmy@learningearnings.com"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":true,"is_ultra_restricted":true,"is_bot":false,"has_files":false},{"id":"U026K09CL","name":"josh","deleted":false,"status":"lunch","color":"9f69e7","real_name":"Josh
77
+ Adams","skype":"knewter","phone":"2052153957","tz":"America\/Chicago","tz_label":"Central
78
+ Daylight Time","tz_offset":-18000,"profile":{"first_name":"Josh","last_name":"Adams","skype":"knewter","phone":"2052153957","title":"CTO
79
+ \/ Chief Mocker","real_name":"Josh Adams","real_name_normalized":"Josh Adams","email":"josh@isotope11.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/952eaee1c09b45bbb6665ffa2ea4a81e.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0005-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/952eaee1c09b45bbb6665ffa2ea4a81e.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0005-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/952eaee1c09b45bbb6665ffa2ea4a81e.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0005-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/952eaee1c09b45bbb6665ffa2ea4a81e.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0005-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/952eaee1c09b45bbb6665ffa2ea4a81e.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0005.png"},"is_admin":true,"is_owner":true,"is_primary_owner":true,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":true},{"id":"U02HKC6LR","name":"jpoirier","deleted":false,"status":null,"color":"df3dc0","real_name":"Jessica
80
+ Poirier","skype":null,"phone":null,"tz":"America\/Indiana\/Indianapolis","tz_label":"Eastern
81
+ Daylight Time","tz_offset":-14400,"profile":{"first_name":"Jessica","last_name":"Poirier","real_name":"Jessica
82
+ Poirier","real_name_normalized":"Jessica Poirier","email":"jpoirier@isotope11.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/c4e5ad639ad26d43237819f65e44d657.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0012-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/c4e5ad639ad26d43237819f65e44d657.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0012-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/c4e5ad639ad26d43237819f65e44d657.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0012-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/c4e5ad639ad26d43237819f65e44d657.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0012-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/c4e5ad639ad26d43237819f65e44d657.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0012.png"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":false},{"id":"U02C6FSCT","name":"lforet","deleted":false,"status":null,"color":"2b6836","real_name":"","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
83
+ Daylight Time","tz_offset":-18000,"profile":{"real_name":"","real_name_normalized":"","email":"laird@isotope11.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/b1642252b0d9e6db79ebc4b5405de41b.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0026-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/b1642252b0d9e6db79ebc4b5405de41b.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0026-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/b1642252b0d9e6db79ebc4b5405de41b.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F20655%2Fimg%2Favatars%2Fava_0026-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/b1642252b0d9e6db79ebc4b5405de41b.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0026-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/b1642252b0d9e6db79ebc4b5405de41b.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F20655%2Fimg%2Favatars%2Fava_0026.png"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":false},{"id":"U026K0CLC","name":"rclements","deleted":false,"status":null,"color":"674b1b","real_name":"Robby
84
+ Clements","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
85
+ Daylight Time","tz_offset":-18000,"profile":{"first_name":"Robby","last_name":"Clements","title":"Ruby
86
+ Developer","real_name":"Robby Clements","real_name_normalized":"Robby Clements","email":"rclements@gmail.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/154cd15447904bc3be58715bda1de97e.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0002-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/154cd15447904bc3be58715bda1de97e.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0002-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/154cd15447904bc3be58715bda1de97e.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F20655%2Fimg%2Favatars%2Fava_0002-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/154cd15447904bc3be58715bda1de97e.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0002-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/154cd15447904bc3be58715bda1de97e.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0002.png"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":false},{"id":"U026JJ2HH","name":"replicant","deleted":false,"status":null,"color":"4bbe2e","real_name":"Seth
87
+ Messer","skype":"megalithic","phone":null,"tz":"America\/Chicago","tz_label":"Central
88
+ Daylight Time","tz_offset":-18000,"profile":{"first_name":"Seth","last_name":"Messer","image_24":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-08-29\/2598445222_24.jpg","image_32":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-08-29\/2598445222_32.jpg","image_48":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-08-29\/2598445222_48.jpg","image_72":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-08-29\/2598445222_72.jpg","image_192":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-08-29\/2598445222_192.jpg","image_original":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-08-29\/2598445222_original.jpg","skype":"megalithic","title":"UI
89
+ Alchemist","real_name":"Seth Messer","real_name_normalized":"Seth Messer","email":"seth@isotope11.com"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":false},{"id":"U026K13DU","name":"wesley","deleted":false,"status":null,"color":"e0a729","real_name":"wesley
90
+ higginbotham","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
91
+ Daylight Time","tz_offset":-18000,"profile":{"first_name":"wesley","last_name":"higginbotham","title":"hardware
92
+ junky","real_name":"wesley higginbotham","real_name_normalized":"wesley higginbotham","email":"wesley@isotope11.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/63d2b373f2bf7dea0a383d2b3c53e2d1.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0021-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/63d2b373f2bf7dea0a383d2b3c53e2d1.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0021-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/63d2b373f2bf7dea0a383d2b3c53e2d1.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0021-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/63d2b373f2bf7dea0a383d2b3c53e2d1.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0021-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/63d2b373f2bf7dea0a383d2b3c53e2d1.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F20655%2Fimg%2Favatars%2Fava_0021.png"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":false},{"id":"U026JJBGB","name":"xn","deleted":false,"status":null,"color":"e96699","real_name":"","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
93
+ Daylight Time","tz_offset":-18000,"profile":{"real_name":"","real_name_normalized":"","email":"christian@isotope11.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/976137d07139396c0268de472b2b65cd.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0017-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/976137d07139396c0268de472b2b65cd.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0017-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/976137d07139396c0268de472b2b65cd.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0017-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/976137d07139396c0268de472b2b65cd.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0017-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/976137d07139396c0268de472b2b65cd.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0017.png"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":true}]}'
94
+ http_version:
95
+ recorded_at: Sat, 27 Sep 2014 13:12:05 GMT
96
+ - request:
97
+ method: get
98
+ uri: https://isotope11.slack.com/api/users.list?token=xoxp-2223009426-2222616703-2700726491-4a3e8d
99
+ body:
100
+ encoding: US-ASCII
101
+ string: ''
102
+ headers:
103
+ Accept-Encoding:
104
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
105
+ Accept:
106
+ - "*/*"
107
+ User-Agent:
108
+ - Ruby
109
+ response:
110
+ status:
111
+ code: 200
112
+ message: OK
113
+ headers:
114
+ Access-Control-Allow-Origin:
115
+ - "*"
116
+ Cache-Control:
117
+ - private, no-cache, no-store, must-revalidate
118
+ Content-Type:
119
+ - application/json; charset=utf-8
120
+ Date:
121
+ - Sat, 27 Sep 2014 13:12:06 GMT
122
+ Expires:
123
+ - Mon, 26 Jul 1997 05:00:00 GMT
124
+ Pragma:
125
+ - no-cache
126
+ Server:
127
+ - Apache
128
+ Strict-Transport-Security:
129
+ - max-age=31536000; includeSubDomains
130
+ Vary:
131
+ - Accept-Encoding
132
+ X-Accepted-Oauth-Scopes:
133
+ - read
134
+ X-Oauth-Scopes:
135
+ - identify,read,post,client
136
+ X-Xss-Protection:
137
+ - '0'
138
+ Content-Length:
139
+ - '2432'
140
+ Connection:
141
+ - keep-alive
142
+ body:
143
+ encoding: UTF-8
144
+ string: '{"ok":true,"members":[{"id":"U026JJ2UV","name":"adamgamble","deleted":true,"profile":{"first_name":"Adam","last_name":"Gamble","title":"Senior
145
+ Developer","real_name":"Adam Gamble","real_name_normalized":"Adam Gamble","email":"agamble@isotope11.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/c36eec64e1c4b6de48c500b264ce655c.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0002-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/c36eec64e1c4b6de48c500b264ce655c.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0002-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/c36eec64e1c4b6de48c500b264ce655c.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F20655%2Fimg%2Favatars%2Fava_0002-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/c36eec64e1c4b6de48c500b264ce655c.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0002-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/c36eec64e1c4b6de48c500b264ce655c.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0002.png"},"has_files":true},{"id":"U02CB4HEZ","name":"adamrobbie","deleted":false,"status":null,"color":"99a949","real_name":"Adam
146
+ Robbie","skype":null,"phone":"3212628089","tz":"America\/New_York","tz_label":"Eastern
147
+ Daylight Time","tz_offset":-14400,"profile":{"first_name":"Adam","last_name":"Robbie","image_24":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-08\/2443544045_24.jpg","image_32":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-08\/2443544045_32.jpg","image_48":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-08\/2443544045_48.jpg","image_72":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-08\/2443544045_72.jpg","image_192":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-08\/2443544045_192.jpg","image_original":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-08\/2443544045_original.jpg","phone":"3212628089","title":"I
148
+ make and drink a lot of beer.","real_name":"Adam Robbie","real_name_normalized":"Adam
149
+ Robbie","email":"arobbie@isotope11.com"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":true},{"id":"U02K9RJTP","name":"bradleyprice","deleted":false,"status":null,"color":"9b3b45","real_name":"Bradley
150
+ Price","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
151
+ Daylight Time","tz_offset":-18000,"profile":{"first_name":"Bradley","last_name":"Price","real_name":"Bradley
152
+ Price","real_name_normalized":"Bradley Price","email":"bradley@isotope11.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/7c68721706a4950237431330e90ee7e1.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0000-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/7c68721706a4950237431330e90ee7e1.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0000-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/7c68721706a4950237431330e90ee7e1.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0000-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/7c68721706a4950237431330e90ee7e1.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0000-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/7c68721706a4950237431330e90ee7e1.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0000.png"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":false},{"id":"U026LNDQB","name":"brandonblaylock","deleted":false,"status":null,"color":"5b89d5","real_name":"Brandon
153
+ Blaylock","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
154
+ Daylight Time","tz_offset":-18000,"profile":{"image_24":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-18\/2470303307_24.jpg","image_32":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-18\/2470303307_32.jpg","image_48":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-18\/2470303307_48.jpg","image_72":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-18\/2470303307_72.jpg","image_192":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-18\/2470303307_192.jpg","image_original":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-07-18\/2470303307_original.jpg","first_name":"Brandon","last_name":"Blaylock","real_name":"Brandon
155
+ Blaylock","real_name_normalized":"Brandon Blaylock","email":"brandon@isotope11.com"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":true},{"id":"U026JL37B","name":"end_guy","deleted":false,"status":null,"color":"684b6c","real_name":"David
156
+ Chapman","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
157
+ Daylight Time","tz_offset":-18000,"profile":{"first_name":"David","last_name":"Chapman","title":"mostly
158
+ I just sit around out there in the shed a''lookin'' at the ground, mhm.","real_name":"David
159
+ Chapman","real_name_normalized":"David Chapman","email":"david@isotope11.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/a139ff82ca0dd3c538a20d52e65bb801.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0014-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/a139ff82ca0dd3c538a20d52e65bb801.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0014-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/a139ff82ca0dd3c538a20d52e65bb801.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0014-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/a139ff82ca0dd3c538a20d52e65bb801.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0014-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/a139ff82ca0dd3c538a20d52e65bb801.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0014.png"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":true},{"id":"U02JX3FAF","name":"harris","deleted":false,"status":null,"color":"4cc091","real_name":"Harris
160
+ Reynolds","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
161
+ Daylight Time","tz_offset":-18000,"profile":{"first_name":"Harris Reynolds","real_name":"Harris
162
+ Reynolds","real_name_normalized":"Harris Reynolds","email":"harris@shipt.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/0927e2f8cca31e2b0a4f75b1ef0fbef9.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0013-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/0927e2f8cca31e2b0a4f75b1ef0fbef9.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0013-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/0927e2f8cca31e2b0a4f75b1ef0fbef9.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0013-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/0927e2f8cca31e2b0a4f75b1ef0fbef9.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0013-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/0927e2f8cca31e2b0a4f75b1ef0fbef9.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0013.png"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":true,"is_ultra_restricted":true,"is_bot":false,"has_files":false},{"id":"U026JJ4LP","name":"jamescook","deleted":false,"status":null,"color":"3c989f","real_name":"james
163
+ cook","skype":"willl u be my fren","phone":"hay","tz":"America\/Regina","tz_label":"Central
164
+ Standard Time","tz_offset":-21600,"profile":{"first_name":"james","last_name":"cook","title":"post
165
+ gifs","skype":"willl u be my fren","phone":"hay","image_24":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-06-26\/2419847637_24.jpg","image_32":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-06-26\/2419847637_32.jpg","image_48":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-06-26\/2419847637_48.jpg","image_72":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-06-26\/2419847637_72.jpg","image_192":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-06-26\/2419847637_192.jpg","image_original":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-06-26\/2419847637_original.jpg","real_name":"james
166
+ cook","real_name_normalized":"james cook","email":"james@isotope11.com"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":true},{"id":"U02LYDWK7","name":"jimmybnsn","deleted":false,"status":null,"color":"d58247","real_name":"Jimmy
167
+ Benson","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
168
+ Daylight Time","tz_offset":-18000,"profile":{"first_name":"Jimmy","last_name":"Benson","image_24":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-09-25\/2713798728_24.jpg","image_32":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-09-25\/2713798728_32.jpg","image_48":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-09-25\/2713798728_48.jpg","image_72":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-09-25\/2713798728_72.jpg","image_192":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-09-25\/2713798728_192.jpg","image_original":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-09-25\/2713798728_original.jpg","real_name":"Jimmy
169
+ Benson","real_name_normalized":"Jimmy Benson","email":"jimmy@learningearnings.com"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":true,"is_ultra_restricted":true,"is_bot":false,"has_files":false},{"id":"U026K09CL","name":"josh","deleted":false,"status":"lunch","color":"9f69e7","real_name":"Josh
170
+ Adams","skype":"knewter","phone":"2052153957","tz":"America\/Chicago","tz_label":"Central
171
+ Daylight Time","tz_offset":-18000,"profile":{"first_name":"Josh","last_name":"Adams","skype":"knewter","phone":"2052153957","title":"CTO
172
+ \/ Chief Mocker","real_name":"Josh Adams","real_name_normalized":"Josh Adams","email":"josh@isotope11.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/952eaee1c09b45bbb6665ffa2ea4a81e.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0005-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/952eaee1c09b45bbb6665ffa2ea4a81e.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0005-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/952eaee1c09b45bbb6665ffa2ea4a81e.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0005-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/952eaee1c09b45bbb6665ffa2ea4a81e.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0005-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/952eaee1c09b45bbb6665ffa2ea4a81e.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0005.png"},"is_admin":true,"is_owner":true,"is_primary_owner":true,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":true},{"id":"U02HKC6LR","name":"jpoirier","deleted":false,"status":null,"color":"df3dc0","real_name":"Jessica
173
+ Poirier","skype":null,"phone":null,"tz":"America\/Indiana\/Indianapolis","tz_label":"Eastern
174
+ Daylight Time","tz_offset":-14400,"profile":{"first_name":"Jessica","last_name":"Poirier","real_name":"Jessica
175
+ Poirier","real_name_normalized":"Jessica Poirier","email":"jpoirier@isotope11.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/c4e5ad639ad26d43237819f65e44d657.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0012-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/c4e5ad639ad26d43237819f65e44d657.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0012-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/c4e5ad639ad26d43237819f65e44d657.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0012-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/c4e5ad639ad26d43237819f65e44d657.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0012-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/c4e5ad639ad26d43237819f65e44d657.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0012.png"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":false},{"id":"U02C6FSCT","name":"lforet","deleted":false,"status":null,"color":"2b6836","real_name":"","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
176
+ Daylight Time","tz_offset":-18000,"profile":{"real_name":"","real_name_normalized":"","email":"laird@isotope11.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/b1642252b0d9e6db79ebc4b5405de41b.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0026-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/b1642252b0d9e6db79ebc4b5405de41b.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0026-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/b1642252b0d9e6db79ebc4b5405de41b.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F20655%2Fimg%2Favatars%2Fava_0026-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/b1642252b0d9e6db79ebc4b5405de41b.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0026-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/b1642252b0d9e6db79ebc4b5405de41b.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F20655%2Fimg%2Favatars%2Fava_0026.png"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":false},{"id":"U026K0CLC","name":"rclements","deleted":false,"status":null,"color":"674b1b","real_name":"Robby
177
+ Clements","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
178
+ Daylight Time","tz_offset":-18000,"profile":{"first_name":"Robby","last_name":"Clements","title":"Ruby
179
+ Developer","real_name":"Robby Clements","real_name_normalized":"Robby Clements","email":"rclements@gmail.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/154cd15447904bc3be58715bda1de97e.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0002-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/154cd15447904bc3be58715bda1de97e.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0002-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/154cd15447904bc3be58715bda1de97e.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F20655%2Fimg%2Favatars%2Fava_0002-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/154cd15447904bc3be58715bda1de97e.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0002-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/154cd15447904bc3be58715bda1de97e.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0002.png"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":false},{"id":"U026JJ2HH","name":"replicant","deleted":false,"status":null,"color":"4bbe2e","real_name":"Seth
180
+ Messer","skype":"megalithic","phone":null,"tz":"America\/Chicago","tz_label":"Central
181
+ Daylight Time","tz_offset":-18000,"profile":{"first_name":"Seth","last_name":"Messer","image_24":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-08-29\/2598445222_24.jpg","image_32":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-08-29\/2598445222_32.jpg","image_48":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-08-29\/2598445222_48.jpg","image_72":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-08-29\/2598445222_72.jpg","image_192":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-08-29\/2598445222_192.jpg","image_original":"https:\/\/s3-us-west-2.amazonaws.com\/slack-files2\/avatars\/2014-08-29\/2598445222_original.jpg","skype":"megalithic","title":"UI
182
+ Alchemist","real_name":"Seth Messer","real_name_normalized":"Seth Messer","email":"seth@isotope11.com"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":false},{"id":"U026K13DU","name":"wesley","deleted":false,"status":null,"color":"e0a729","real_name":"wesley
183
+ higginbotham","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
184
+ Daylight Time","tz_offset":-18000,"profile":{"first_name":"wesley","last_name":"higginbotham","title":"hardware
185
+ junky","real_name":"wesley higginbotham","real_name_normalized":"wesley higginbotham","email":"wesley@isotope11.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/63d2b373f2bf7dea0a383d2b3c53e2d1.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0021-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/63d2b373f2bf7dea0a383d2b3c53e2d1.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0021-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/63d2b373f2bf7dea0a383d2b3c53e2d1.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0021-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/63d2b373f2bf7dea0a383d2b3c53e2d1.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0021-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/63d2b373f2bf7dea0a383d2b3c53e2d1.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F20655%2Fimg%2Favatars%2Fava_0021.png"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":false},{"id":"U026JJBGB","name":"xn","deleted":false,"status":null,"color":"e96699","real_name":"","skype":null,"phone":null,"tz":"America\/Chicago","tz_label":"Central
186
+ Daylight Time","tz_offset":-18000,"profile":{"real_name":"","real_name_normalized":"","email":"christian@isotope11.com","image_24":"https:\/\/secure.gravatar.com\/avatar\/976137d07139396c0268de472b2b65cd.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0017-24.png","image_32":"https:\/\/secure.gravatar.com\/avatar\/976137d07139396c0268de472b2b65cd.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0017-32.png","image_48":"https:\/\/secure.gravatar.com\/avatar\/976137d07139396c0268de472b2b65cd.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0017-48.png","image_72":"https:\/\/secure.gravatar.com\/avatar\/976137d07139396c0268de472b2b65cd.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0017-72.png","image_192":"https:\/\/secure.gravatar.com\/avatar\/976137d07139396c0268de472b2b65cd.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F8390%2Fimg%2Favatars%2Fava_0017.png"},"is_admin":false,"is_owner":false,"is_primary_owner":false,"is_restricted":false,"is_ultra_restricted":false,"is_bot":false,"has_files":true}]}'
187
+ http_version:
188
+ recorded_at: Sat, 27 Sep 2014 13:12:06 GMT
189
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,95 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://isotope11.slack.com/api/channels.join?name=%23ruby&token=a-totally-legit-token
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Access-Control-Allow-Origin:
22
+ - "*"
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ Date:
26
+ - Thu, 25 Sep 2014 02:22:54 GMT
27
+ Server:
28
+ - Apache
29
+ Strict-Transport-Security:
30
+ - max-age=31536000; includeSubDomains
31
+ Vary:
32
+ - Accept-Encoding
33
+ X-Xss-Protection:
34
+ - '0'
35
+ Content-Length:
36
+ - '55'
37
+ Connection:
38
+ - keep-alive
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"ok":false,"error":"invalid_auth"}'
42
+ http_version:
43
+ recorded_at: Thu, 25 Sep 2014 02:22:53 GMT
44
+ - request:
45
+ method: get
46
+ uri: https://isotope11.slack.com/api/channels.join?name=%23ruby&token=xoxp-2223009426-2222616703-2700726491-4a3e8d
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ headers:
51
+ Accept-Encoding:
52
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
53
+ Accept:
54
+ - "*/*"
55
+ User-Agent:
56
+ - Ruby
57
+ response:
58
+ status:
59
+ code: 200
60
+ message: OK
61
+ headers:
62
+ Access-Control-Allow-Origin:
63
+ - "*"
64
+ Cache-Control:
65
+ - private, no-cache, no-store, must-revalidate
66
+ Content-Type:
67
+ - application/json; charset=utf-8
68
+ Date:
69
+ - Thu, 25 Sep 2014 12:05:00 GMT
70
+ Expires:
71
+ - Mon, 26 Jul 1997 05:00:00 GMT
72
+ Pragma:
73
+ - no-cache
74
+ Server:
75
+ - Apache
76
+ Strict-Transport-Security:
77
+ - max-age=31536000; includeSubDomains
78
+ Vary:
79
+ - Accept-Encoding
80
+ X-Accepted-Oauth-Scopes:
81
+ - post
82
+ X-Oauth-Scopes:
83
+ - identify,read,post,client
84
+ X-Xss-Protection:
85
+ - '0'
86
+ Content-Length:
87
+ - '198'
88
+ Connection:
89
+ - keep-alive
90
+ body:
91
+ encoding: UTF-8
92
+ string: '{"ok":true,"already_in_channel":true,"channel":{"id":"C026VKGP7","name":"ruby","is_channel":true,"created":1395427609,"creator":"U026JJ2HH","is_archived":false,"is_general":false,"is_member":true,"members":["U026JJ4LP"],"topic":{"value":"","creator":"","last_set":"0"},"purpose":{"value":"","creator":"","last_set":"0"}}}'
93
+ http_version:
94
+ recorded_at: Thu, 25 Sep 2014 12:05:03 GMT
95
+ recorded_with: VCR 2.9.3
@@ -16,8 +16,8 @@ describe Layabout::Channels, vcr: true do
16
16
  end
17
17
 
18
18
  describe '#join' do
19
- it 'returns a success response' do
20
- expect(subject.join('#ruby')).to be_success
19
+ it 'returns a Layabout::Slack::Channel for the channel you specified' do
20
+ expect(subject.join('#ruby')).to be_an_instance_of(Layabout::Slack::Channel)
21
21
  end
22
22
  end
23
23
 
@@ -20,4 +20,23 @@ describe Layabout, vcr: true do
20
20
  expect(Layabout.channels.first).to be_an_instance_of(Layabout::Slack::Channel)
21
21
  end
22
22
  end
23
+
24
+ describe '.join' do
25
+ it 'joins the specified channel and returns an instance of Channel' do
26
+ expect(Layabout.join('#ruby')).to be_an_instance_of(Layabout::Slack::Channel)
27
+ end
28
+ end
29
+
30
+ describe '.leave' do
31
+ it 'leave the specified channel' do
32
+ expect(Layabout.leave('C026VKGP7')).to be_success
33
+ end
34
+ end
35
+
36
+ describe '.users' do
37
+ it 'returns a list of users' do
38
+ expect(Layabout.users).to be_an_instance_of(Array)
39
+ expect(Layabout.users.first).to be_an_instance_of(Layabout::Slack::User)
40
+ end
41
+ end
23
42
  end
@@ -12,26 +12,11 @@ VCR.configure do |config|
12
12
  end
13
13
 
14
14
  RSpec.configure do |config|
15
- # rspec-expectations config goes here. You can use an alternate
16
- # assertion/expectation library such as wrong or the stdlib/minitest
17
- # assertions if you prefer.
18
15
  config.expect_with :rspec do |expectations|
19
- # This option will default to `true` in RSpec 4. It makes the `description`
20
- # and `failure_message` of custom matchers include text for helper methods
21
- # defined using `chain`, e.g.:
22
- # be_bigger_than(2).and_smaller_than(4).description
23
- # # => "be bigger than 2 and smaller than 4"
24
- # ...rather than:
25
- # # => "be bigger than 2"
26
16
  expectations.include_chain_clauses_in_custom_matcher_descriptions = true
27
17
  end
28
18
 
29
- # rspec-mocks config goes here. You can use an alternate test double
30
- # library (such as bogus or mocha) by changing the `mock_with` option here.
31
19
  config.mock_with :rspec do |mocks|
32
- # Prevents you from mocking or stubbing a method that does not exist on
33
- # a real object. This is generally recommended, and will default to
34
- # `true` in RSpec 4.
35
20
  mocks.verify_partial_doubles = true
36
21
  end
37
22
  config.order = :random
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: layabout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Cook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-26 00:00:00.000000000 Z
11
+ date: 2014-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpi
@@ -38,80 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.1.0
41
- - !ruby/object:Gem::Dependency
42
- name: bundler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.3'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.3'
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 3.1.0
62
- - - ">="
63
- - !ruby/object:Gem::Version
64
- version: 3.1.0
65
- type: :development
66
- prerelease: false
67
- version_requirements: !ruby/object:Gem::Requirement
68
- requirements:
69
- - - "~>"
70
- - !ruby/object:Gem::Version
71
- version: 3.1.0
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- version: 3.1.0
75
- - !ruby/object:Gem::Dependency
76
- name: vcr
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: 2.9.0
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- version: 2.9.0
85
- type: :development
86
- prerelease: false
87
- version_requirements: !ruby/object:Gem::Requirement
88
- requirements:
89
- - - "~>"
90
- - !ruby/object:Gem::Version
91
- version: 2.9.0
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- version: 2.9.0
95
- - !ruby/object:Gem::Dependency
96
- name: webmock
97
- requirement: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - "~>"
100
- - !ruby/object:Gem::Version
101
- version: 1.18.0
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- version: 1.18.0
105
- type: :development
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - "~>"
110
- - !ruby/object:Gem::Version
111
- version: 1.18.0
112
- - - ">="
113
- - !ruby/object:Gem::Version
114
- version: 1.18.0
115
41
  description: slack.com API toolbelt
116
42
  email:
117
43
  - jcook.rubyist@gmail.com
@@ -138,14 +64,20 @@ files:
138
64
  - lib/layabout/incoming_webhook.rb
139
65
  - lib/layabout/slack/channel.rb
140
66
  - lib/layabout/slack/file.rb
67
+ - lib/layabout/slack/user.rb
141
68
  - lib/layabout/slack_response.rb
69
+ - lib/layabout/users.rb
142
70
  - lib/layabout/version.rb
143
71
  - spec/fixtures/upload_test.txt
144
72
  - spec/fixtures/vcr_cassettes/Layabout/_channels/returns_a_list_of_channels.yml
73
+ - spec/fixtures/vcr_cassettes/Layabout/_join/joins_the_specified_channel_and_returns_an_instance_of_Channel.yml
74
+ - spec/fixtures/vcr_cassettes/Layabout/_leave/leave_the_specified_channel.yml
145
75
  - spec/fixtures/vcr_cassettes/Layabout/_say/posts_a_message.yml
146
76
  - spec/fixtures/vcr_cassettes/Layabout/_upload/uploads_a_file.yml
77
+ - spec/fixtures/vcr_cassettes/Layabout/_users/returns_a_list_of_users.yml
147
78
  - spec/fixtures/vcr_cassettes/Layabout_AuthTest/_get/tests_auth.yml
148
79
  - spec/fixtures/vcr_cassettes/Layabout_Channels/_info/returns_a_Layabout_Slack_Channel.yml
80
+ - spec/fixtures/vcr_cassettes/Layabout_Channels/_join/returns_a_Layabout_Slack_Channel_for_the_channel_you_specified.yml
149
81
  - spec/fixtures/vcr_cassettes/Layabout_Channels/_join/returns_a_success_response.yml
150
82
  - spec/fixtures/vcr_cassettes/Layabout_Channels/_leave/returns_a_success_response.yml
151
83
  - spec/fixtures/vcr_cassettes/Layabout_Channels/_list/returns_a_list_of_Layabout_Slack_Channel.yml
@@ -192,10 +124,14 @@ summary: Chat, upload files, set channel topics, send direct messages, and more
192
124
  test_files:
193
125
  - spec/fixtures/upload_test.txt
194
126
  - spec/fixtures/vcr_cassettes/Layabout/_channels/returns_a_list_of_channels.yml
127
+ - spec/fixtures/vcr_cassettes/Layabout/_join/joins_the_specified_channel_and_returns_an_instance_of_Channel.yml
128
+ - spec/fixtures/vcr_cassettes/Layabout/_leave/leave_the_specified_channel.yml
195
129
  - spec/fixtures/vcr_cassettes/Layabout/_say/posts_a_message.yml
196
130
  - spec/fixtures/vcr_cassettes/Layabout/_upload/uploads_a_file.yml
131
+ - spec/fixtures/vcr_cassettes/Layabout/_users/returns_a_list_of_users.yml
197
132
  - spec/fixtures/vcr_cassettes/Layabout_AuthTest/_get/tests_auth.yml
198
133
  - spec/fixtures/vcr_cassettes/Layabout_Channels/_info/returns_a_Layabout_Slack_Channel.yml
134
+ - spec/fixtures/vcr_cassettes/Layabout_Channels/_join/returns_a_Layabout_Slack_Channel_for_the_channel_you_specified.yml
199
135
  - spec/fixtures/vcr_cassettes/Layabout_Channels/_join/returns_a_success_response.yml
200
136
  - spec/fixtures/vcr_cassettes/Layabout_Channels/_leave/returns_a_success_response.yml
201
137
  - spec/fixtures/vcr_cassettes/Layabout_Channels/_list/returns_a_list_of_Layabout_Slack_Channel.yml