Sha256: c00e114efaff143c7231575689190e74cc8c716120bae43496f77a7d49ffc06b

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 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%2Cmy
    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: 401
      message: Unauthorized
    headers:
      Server:
      - nginx
      Date:
      - Thu, 15 May 2014 02:46:08 GMT
      Content-Type:
      - application/json; charset=utf-8
      Content-Length:
      - '49'
      Connection:
      - keep-alive
      Www-Authenticate:
      - Bearer error="invalid_client"
    body:
      encoding: UTF-8
      string: '{"error":"invalid_client","error_description":""}'
    http_version: 
  recorded_at: Thu, 15 May 2014 02:46:08 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_Auth/_get_access_token/should_raise_error_when_client_id_is_wrong.yml
typetalk-0.1.0 spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_raise_error_when_client_id_is_wrong.yml
typetalk-0.0.6 spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_raise_error_when_client_id_is_wrong.yml