Sha256: 84f3e5aa33a70e050059b27c73d956f3e5417e598da13c2dceebcf228d3fc9a1

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://typetalk.in/oauth2/access_token
    body:
      encoding: UTF-8
      string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&code=(AUTHORIZATION_CODE)&grant_type=authorization_code&redirect_uri=http%3A%2F%2Fdummy%2F&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 05:56:36 GMT
      Content-Type:
      - application/json; charset=utf-8
      Content-Length:
      - '48'
      Connection:
      - keep-alive
      Www-Authenticate:
      - Bearer error="invalid_grant"
    body:
      encoding: UTF-8
      string: '{"error":"invalid_grant","error_description":""}'
    http_version: 
  recorded_at: Thu, 15 May 2014 05:56:36 GMT
recorded_with: VCR 2.9.0

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typetalk-0.0.5 spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_raise_error_when_authorization_code_is_wrong.yml
typetalk-0.0.4 spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_raise_error_when_authorization_code_is_wrong.yml
typetalk-0.0.3 spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_raise_error_when_authorization_code_is_wrong.yml
typetalk-0.0.2 spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_raise_error_when_authorization_code_is_wrong.yml
typetalk-0.0.1 spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_raise_error_when_authorization_code_is_wrong.yml