Skip to content

Instantly share code, notes, and snippets.

@thilonel
Created August 16, 2022 09:33
Show Gist options
  • Save thilonel/4234c5ab86c69f6f725e2d0e4b0bd445 to your computer and use it in GitHub Desktop.
Save thilonel/4234c5ab86c69f6f725e2d0e4b0bd445 to your computer and use it in GitHub Desktop.
---
http_interactions:
- request:
method: post
uri: https://api.helpscout.net/v2/oauth2/token
body:
encoding: UTF-8
string: '{"client_id":"WB5Utt63qEhH8xZLvGKp3IGccL964FoU","client_secret":"ovnIsrCBxUzppvPvhtxKXGw8O5zyL1Gl","grant_type":"client_credentials"}'
headers:
Content-Type:
- application/json
User-Agent:
- Faraday v1.10.0
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 16 Aug 2022 09:29:14 GMT
Content-Type:
- application/json; charset=utf-8
Content-Length:
- '94'
Connection:
- keep-alive
Server:
- kong/0.14.1
Cache-Control:
- no-store
Pragma:
- no-cache
Access-Control-Allow-Origin:
- "*"
Access-Control-Expose-Headers:
- Location,Resource-Id
body:
encoding: UTF-8
string: '{"token_type":"bearer","access_token":"2C9KDIKjc4ck0cokpIR2tR5cIrgw2pzA","expires_in":172800}
'
recorded_at: Tue, 16 Aug 2022 09:29:14 GMT
- request:
method: post
uri: https://api.helpscout.net/v2/customers
body:
encoding: UTF-8
string: '{"firstName":"Davina","lastName":"Bartell","organization":null,"emails":[{"type":"work","value":"help@helpscout.com"}]}'
headers:
Content-Type:
- application/json
User-Agent:
- Faraday v1.10.0
Authorization:
- Bearer 2C9KDIKjc4ck0cokpIR2tR5cIrgw2pzA
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
response:
status:
code: 403
message: Forbidden
headers:
Date:
- Tue, 16 Aug 2022 09:29:14 GMT
Content-Length:
- '53'
Connection:
- keep-alive
Server:
- kong/0.14.1
Access-Control-Allow-Origin:
- "*"
Access-Control-Expose-Headers:
- Location,Resource-Id
body:
encoding: UTF-8
string: Token associated with this request is no longer valid
recorded_at: Tue, 16 Aug 2022 09:29:14 GMT
recorded_with: VCR 6.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment