Sha256: c0d7208654e5225a536ba176daf9e5743598cc721afe5e8c005545ce2eca288a

Contents?: true

Size: 1.32 KB

Versions: 2

Compression:

Stored size: 1.32 KB

Contents

---
http_interactions:
- request:
    method: get
    uri: http://localhost:8888/moodle28/webservice/rest/server.php?criterianame=search&criteriavalue=My%20course&moodlewsrestformat=json&wsfunction=core_course_search_courses&wstoken=
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
      User-Agent:
      - Ruby
  response:
    status:
      code: 200
      message: OK
    headers:
      Accept-Ranges:
      - bytes
      Access-Control-Allow-Origin:
      - "*"
      Age:
      - '0'
      Cache-Control:
      - private, must-revalidate, pre-check=0, post-check=0, max-age=0
      Content-Type:
      - application/json
      Date:
      - Wed, 11 May 2022 03:43:20 GMT
      Expires:
      - Thu, 01 Jan 1970 00:00:00 GMT
      Pragma:
      - no-cache
      Server:
      - Moodle
      X-Cache:
      - MISS
      X-Clacks-Overhead:
      - GNU Terry Pratchett
      X-Powered-By:
      - Moodle Ninjas
      Content-Length:
      - '103'
      Connection:
      - keep-alive
    body:
      encoding: UTF-8
      string: '{"exception":"moodle_exception","errorcode":"invalidtoken","message":"Invalid
        token - token not found"}'
    http_version: 
  recorded_at: Wed, 11 May 2022 03:42:46 GMT
recorded_with: VCR 2.9.3

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
moodle_rb-2.1.5 spec/cassettes/MoodleRb_Courses/_search/when_using_invalid_token/.yml
moodle_rb-2.1.0 spec/cassettes/MoodleRb_Courses/_search/when_using_invalid_token/.yml