fixtures/vcr_cassettes/external_service/valid_service_with_invalid_token.yml
---
http_interactions:
- request:
method: post
uri: http://my_moodle_instance.com/webservice/rest/server.php?criteria%5B0%5D%5Bkey%5D=firstname&criteria%5B0%5D%5Bvalue%5D=Jon&moodlewsrestformat=json&wsfunction=core_user_get_users&wstoken=invalidtoken
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Typhoeus - https://github.com/typhoeus/typhoeus
Accept:
- json
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 01 Jul 2015 12:34:03 GMT
Server:
- Apache/2.4.9 (Unix) PHP/5.5.14
X-Powered-By:
- PHP/5.5.14
Cache-Control:
- private, must-revalidate, pre-check=0, post-check=0, max-age=0
Expires:
- Thu, 01 Jan 1970 00:00:00 GMT
Pragma:
- no-cache
Accept-Ranges:
- none
Access-Control-Allow-Origin:
- "*"
Content-Length:
- '103'
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"exception":"moodle_exception","errorcode":"invalidtoken","message":"Invalid
token - token not found"}'
http_version: '1.1'
adapter_metadata:
effective_url: http://my_moodle_instance.com/webservice/rest/server.php?criteria%5B0%5D%5Bkey%5D=firstname&criteria%5B0%5D%5Bvalue%5D=Jon&moodlewsrestformat=json&wsfunction=core_user_get_users&wstoken=invalidtoken
recorded_at: Wed, 01 Jul 2015 12:34:04 GMT
recorded_with: VCR 2.9.3