---
http_interactions:
- request:
    method: post
    uri: https://slack.com/api/channels.invite
    body:
      encoding: UTF-8
      string: channel=C04MY3KCY&token=<TOKEN>&user=U0399SL90
    headers:
      Accept:
      - application/json; charset=utf-8
      User-Agent:
      - Slack Ruby Gem 1.1.1
      Content-Type:
      - application/x-www-form-urlencoded
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
  response:
    status:
      code: 200
      message: OK
    headers:
      Access-Control-Allow-Origin:
      - "*"
      Cache-Control:
      - private, no-cache, no-store, must-revalidate
      Content-Type:
      - application/json; charset=utf-8
      Date:
      - Wed, 06 May 2015 00:22:46 GMT
      Expires:
      - Mon, 26 Jul 1997 05:00:00 GMT
      Pragma:
      - no-cache
      Server:
      - Apache
      Strict-Transport-Security:
      - max-age=31536000; includeSubDomains; preload
      Vary:
      - Accept-Encoding
      X-Accepted-Oauth-Scopes:
      - post
      X-Content-Type-Options:
      - nosniff
      X-Oauth-Scopes:
      - identify,read,post,client,admin
      X-Xss-Protection:
      - '0'
      Content-Length:
      - '298'
      Connection:
      - keep-alive
    body:
      encoding: UTF-8
      string: '{"ok":true,"channel":{"id":"C04MY3KCY","name":"gem_testroom","is_channel":true,"created":1430871124,"creator":"U0399SL90","is_archived":false,"is_general":false,"is_member":true,"last_read":"1430871759.000005","latest":{"user":"U0399SL90","type":"message","subtype":"channel_leave","text":"<@U0399SL90|aki017>
        has left the channel","ts":"1430871759.000005"},"unread_count":0,"unread_count_display":0,"members":["U0399SL90","U03LM2UM7"],"topic":{"value":"","creator":"","last_set":0},"purpose":{"value":"","creator":"","last_set":0}}}'
    http_version: 
  recorded_at: Wed, 06 May 2015 00:22:46 GMT
recorded_with: VCR 2.9.3
