Sha256: a112dfb92cc151c323f3fb9767224880cfc6f55002dc707e1e92f920593b42c1

Contents?: true

Size: 1.22 KB

Versions: 5

Compression:

Stored size: 1.22 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_course_get_contents&wstoken=
    body:
      encoding: UTF-8
      string: courseid=5
    headers: {}
  response:
    status:
      code: 200
      message: OK
    headers:
      Accept-Ranges:
      - bytes
      - none
      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, 12 Jan 2022 00:08:37 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-Ec2-Instance-Id:
      - i-01489c17e7f33623b
      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, 12 Jan 2022 00:08:03 GMT
recorded_with: VCR 2.9.3

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
moodle_rb-2.1.5 spec/cassettes/MoodleRb_Courses/_contents/when_using_invalid_token/.yml
moodle_rb-2.1.0 spec/cassettes/MoodleRb_Courses/_contents/when_using_invalid_token/.yml
moodle_rb-2.0.0 spec/cassettes/MoodleRb_Courses/_contents/when_using_invalid_token/.yml
moodle_rb-1.2.0 spec/cassettes/MoodleRb_Courses/_contents/when_using_invalid_token/.yml
moodle_rb-1.1.3 spec/cassettes/MoodleRb_Courses/_contents/when_using_invalid_token/.yml