Sha256: 4f222b16b6c4f2d1adbd9a0be0c23526d85f20a460ea481edc4fb1d42830a88f

Contents?: true

Size: 1.83 KB

Versions: 3

Compression:

Stored size: 1.83 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://typetalk.com/oauth2/access_token
    body:
      encoding: UTF-8
      string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=client_credentials&scope=topic.read%2Ctopic.post
    headers:
      Accept:
      - application/json; charset=utf-8
      User-Agent:
      - Typetalk Rubygem 0.0.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:
      Server:
      - nginx
      Date:
      - Thu, 15 May 2014 07:34:58 GMT
      Content-Type:
      - application/json; charset=utf-8
      Transfer-Encoding:
      - chunked
      Connection:
      - keep-alive
      Strict-Transport-Security:
      - max-age=2592000
    body:
      encoding: UTF-8
      string: '{"access_token":"(ACCESS_TOKEN)","expires_in":3600,"scope":"topic.read,topic.post","refresh_token":"(REFRESH_TOKEN)","token_type":"Bearer"}'
    http_version: 
  recorded_at: Thu, 15 May 2014 07:34:58 GMT
- request:
    method: get
    uri: https://typetalk.com/api/v1/profile?access_token=(ACCESS_TOKEN)
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Accept:
      - application/json; charset=utf-8
      User-Agent:
      - Typetalk Rubygem 0.0.1
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
  response:
    status:
      code: 401
      message: Unauthorized
    headers:
      Server:
      - nginx
      Date:
      - Thu, 15 May 2014 07:34:58 GMT
      Content-Length:
      - '0'
      Connection:
      - keep-alive
      Www-Authenticate:
      - Bearer error="invalid_scope"
    body:
      encoding: UTF-8
      string: ''
    http_version: 
  recorded_at: Thu, 15 May 2014 07:34:59 GMT
recorded_with: VCR 2.9.0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typetalk-0.1.1 spec/cassettes/Typetalk_Api_User/_get_profile/should_raise_error_when_scope_is_wrong.yml
typetalk-0.1.0 spec/cassettes/Typetalk_Api_User/_get_profile/should_raise_error_when_scope_is_wrong.yml
typetalk-0.0.6 spec/cassettes/Typetalk_Api_User/_get_profile/should_raise_error_when_scope_is_wrong.yml