moodle_rb 2.1.5 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -1
  3. data/lib/moodle_rb/courses.rb +7 -5
  4. data/lib/moodle_rb/version.rb +1 -1
  5. data/spec/lib/moodle_rb/courses_spec.rb +17 -4
  6. metadata +10 -126
  7. data/.github/workflows/build.yml +0 -36
  8. data/.github/workflows/publish.yml +0 -27
  9. data/.gitignore +0 -35
  10. data/.travis.yml +0 -9
  11. data/Dockerfile +0 -10
  12. data/Gemfile +0 -2
  13. data/docker-compose.yml +0 -6
  14. data/moodle_rb.gemspec +0 -26
  15. data/spec/cassettes/MoodleRb_Categories/_create/.yml +0 -39
  16. data/spec/cassettes/MoodleRb_Categories/_create/when_validation_fails/.yml +0 -39
  17. data/spec/cassettes/MoodleRb_Categories/_destroy/when_using_invalid_token/.yml +0 -39
  18. data/spec/cassettes/MoodleRb_Categories/_destroy/when_using_valid_token/.yml +0 -76
  19. data/spec/cassettes/MoodleRb_Categories/_index/.yml +0 -39
  20. data/spec/cassettes/MoodleRb_Categories/_index/when_using_invalid_token/.yml +0 -39
  21. data/spec/cassettes/MoodleRb_Categories/_show/.yml +0 -39
  22. data/spec/cassettes/MoodleRb_Categories/_show/when_using_invalid_token/.yml +0 -39
  23. data/spec/cassettes/MoodleRb_Client/_site_info/when_invalid_token/.yml +0 -39
  24. data/spec/cassettes/MoodleRb_Client/_site_info/when_valid_token/.yml +0 -39
  25. data/spec/cassettes/MoodleRb_Courses/_contents/when_using_invalid_token/.yml +0 -52
  26. data/spec/cassettes/MoodleRb_Courses/_contents/when_using_valid_token/.yml +0 -52
  27. data/spec/cassettes/MoodleRb_Courses/_core_course_import_course/when_using_invalid_token/.yml +0 -55
  28. data/spec/cassettes/MoodleRb_Courses/_core_course_import_course/when_using_valid_token/.yml +0 -54
  29. data/spec/cassettes/MoodleRb_Courses/_core_course_import_course/when_using_valid_token/when_using_invalid_course_id/.yml +0 -55
  30. data/spec/cassettes/MoodleRb_Courses/_create/.yml +0 -39
  31. data/spec/cassettes/MoodleRb_Courses/_create/when_validation_fails/.yml +0 -75
  32. data/spec/cassettes/MoodleRb_Courses/_destroy/when_using_invalid_token/.yml +0 -39
  33. data/spec/cassettes/MoodleRb_Courses/_destroy/when_using_valid_token/.yml +0 -75
  34. data/spec/cassettes/MoodleRb_Courses/_destroy/when_using_valid_token/when_using_invalid_course_id/.yml +0 -39
  35. data/spec/cassettes/MoodleRb_Courses/_enrolled_users/when_using_invalid_token/.yml +0 -39
  36. data/spec/cassettes/MoodleRb_Courses/_enrolled_users/when_using_valid_token/.yml +0 -75
  37. data/spec/cassettes/MoodleRb_Courses/_grade_items/when_using_invalid_token/.yml +0 -52
  38. data/spec/cassettes/MoodleRb_Courses/_grade_items/when_using_valid_token/.yml +0 -56
  39. data/spec/cassettes/MoodleRb_Courses/_index/.yml +0 -39
  40. data/spec/cassettes/MoodleRb_Courses/_index/when_using_invalid_token/.yml +0 -39
  41. data/spec/cassettes/MoodleRb_Courses/_module/when_using_invalid_token/.yml +0 -52
  42. data/spec/cassettes/MoodleRb_Courses/_module/when_using_valid_token/.yml +0 -51
  43. data/spec/cassettes/MoodleRb_Courses/_search/.yml +0 -102
  44. data/spec/cassettes/MoodleRb_Courses/_search/when_using_invalid_token/.yml +0 -55
  45. data/spec/cassettes/MoodleRb_Courses/_show/.yml +0 -39
  46. data/spec/cassettes/MoodleRb_Courses/_show/when_using_invalid_token/.yml +0 -39
  47. data/spec/cassettes/MoodleRb_Enrolments/_create/.yml +0 -39
  48. data/spec/cassettes/MoodleRb_Enrolments/_create/when_user_or_course_id_is_invalid/.yml +0 -39
  49. data/spec/cassettes/MoodleRb_Enrolments/_destroy/.yml +0 -51
  50. data/spec/cassettes/MoodleRb_Enrolments/_destroy/when_user_or_course_id_is_invalid/.yml +0 -52
  51. data/spec/cassettes/MoodleRb_Grades/_by_assignment/.yml +0 -39
  52. data/spec/cassettes/MoodleRb_Grades/_by_course/.yml +0 -39
  53. data/spec/cassettes/MoodleRb_Grades/_by_course/when_invalid_parameters/.yml +0 -39
  54. data/spec/cassettes/MoodleRb_Users/_create/.yml +0 -39
  55. data/spec/cassettes/MoodleRb_Users/_create/when_missing_required_parameters/.yml +0 -39
  56. data/spec/cassettes/MoodleRb_Users/_destroy/.yml +0 -39
  57. data/spec/cassettes/MoodleRb_Users/_destroy/when_id_does_not_exist/.yml +0 -39
  58. data/spec/cassettes/MoodleRb_Users/_destroy/when_using_invalid_token/.yml +0 -39
  59. data/spec/cassettes/MoodleRb_Users/_enrolled_courses/.yml +0 -39
  60. data/spec/cassettes/MoodleRb_Users/_enrolled_courses/when_using_invalid_token/.yml +0 -39
  61. data/spec/cassettes/MoodleRb_Users/_search/.yml +0 -39
  62. data/spec/cassettes/MoodleRb_Users/_search/when_using_invalid_token/.yml +0 -39
  63. data/spec/cassettes/MoodleRb_Users/_search_identity/.yml +0 -51
  64. data/spec/cassettes/MoodleRb_Users/_search_identity/when_using_invalid_token/.yml +0 -52
  65. data/spec/cassettes/MoodleRb_Users/_show/.yml +0 -39
  66. data/spec/cassettes/MoodleRb_Users/_show/when_using_invalid_token/.yml +0 -39
  67. data/spec/cassettes/MoodleRb_Users/_update/.yml +0 -39
  68. data/spec/cassettes/MoodleRb_Users/_update/when_using_invalid_token/.yml +0 -39
@@ -1,39 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_user_delete_users&wstoken=60fc9c9415259404795094957e4ab32f
6
- body:
7
- string: userids[0]=999
8
- headers: {}
9
-
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- Cache-Control:
16
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
17
- Content-Type:
18
- - application/json
19
- Access-Control-Allow-Origin:
20
- - "*"
21
- Pragma:
22
- - no-cache
23
- Expires:
24
- - Thu, 01 Jan 1970 00:00:00 GMT
25
- Accept-Ranges:
26
- - none
27
- Server:
28
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zd DAV/2 mod_perl/2.0.8 Perl/v5.20.0
29
- X-Powered-By:
30
- - PHP/5.6.2
31
- Date:
32
- - Sun, 12 Apr 2015 01:03:59 GMT
33
- Content-Length:
34
- - "95"
35
- body:
36
- string: "{\"exception\":\"dml_missing_record_exception\",\"errorcode\":\"invaliduser\",\"message\":\"Invalid user\"}"
37
- http_version:
38
- recorded_at: Sun, 12 Apr 2015 01:03:59 GMT
39
- recorded_with: VCR 2.9.3
@@ -1,39 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_user_delete_users&wstoken=
6
- body:
7
- string: userids[0]=-1
8
- headers: {}
9
-
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- Pragma:
16
- - no-cache
17
- Date:
18
- - Mon, 20 Jun 2016 22:34:35 GMT
19
- Content-Length:
20
- - "103"
21
- Accept-Ranges:
22
- - none
23
- Content-Type:
24
- - application/json
25
- Access-Control-Allow-Origin:
26
- - "*"
27
- X-Powered-By:
28
- - PHP/5.6.2
29
- Expires:
30
- - Thu, 01 Jan 1970 00:00:00 GMT
31
- Server:
32
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_perl/2.0.8 Perl/v5.20.0
33
- Cache-Control:
34
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
35
- body:
36
- string: "{\"exception\":\"moodle_exception\",\"errorcode\":\"invalidtoken\",\"message\":\"Invalid token - token not found\"}"
37
- http_version:
38
- recorded_at: Mon, 20 Jun 2016 22:34:35 GMT
39
- recorded_with: VCR 2.9.3
@@ -1,39 +0,0 @@
1
- ---
2
- recorded_with: VCR 2.9.3
3
- http_interactions:
4
- - request:
5
- method: post
6
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_enrol_get_users_courses&wstoken=60fc9c9415259404795094957e4ab32f
7
- body:
8
- string: userid=3
9
- headers: {}
10
-
11
- response:
12
- status:
13
- code: 200
14
- message: OK
15
- headers:
16
- Accept-Ranges:
17
- - none
18
- Date:
19
- - Sun, 12 Apr 2015 01:05:25 GMT
20
- Cache-Control:
21
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
22
- Expires:
23
- - Thu, 01 Jan 1970 00:00:00 GMT
24
- Pragma:
25
- - no-cache
26
- X-Powered-By:
27
- - PHP/5.6.2
28
- Content-Type:
29
- - application/json
30
- Server:
31
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zd DAV/2 mod_perl/2.0.8 Perl/v5.20.0
32
- Content-Length:
33
- - "110"
34
- Access-Control-Allow-Origin:
35
- - "*"
36
- body:
37
- string: "[{\"id\":8,\"shortname\":\"TestC1\",\"fullname\":\"Test Course\",\"enrolledusercount\":1,\"idnumber\":\"ExtRef\",\"visible\":1}]"
38
- http_version:
39
- recorded_at: Sun, 12 Apr 2015 01:05:25 GMT
@@ -1,39 +0,0 @@
1
- ---
2
- recorded_with: VCR 2.9.3
3
- http_interactions:
4
- - request:
5
- method: post
6
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_enrol_get_users_courses&wstoken=
7
- body:
8
- string: userid=3
9
- headers: {}
10
-
11
- response:
12
- status:
13
- code: 200
14
- message: OK
15
- headers:
16
- Server:
17
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_perl/2.0.8 Perl/v5.20.0
18
- Expires:
19
- - Thu, 01 Jan 1970 00:00:00 GMT
20
- Content-Length:
21
- - "103"
22
- Pragma:
23
- - no-cache
24
- Cache-Control:
25
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
26
- Accept-Ranges:
27
- - none
28
- Content-Type:
29
- - application/json
30
- X-Powered-By:
31
- - PHP/5.6.2
32
- Access-Control-Allow-Origin:
33
- - "*"
34
- Date:
35
- - Mon, 20 Jun 2016 22:37:07 GMT
36
- body:
37
- string: "{\"exception\":\"moodle_exception\",\"errorcode\":\"invalidtoken\",\"message\":\"Invalid token - token not found\"}"
38
- http_version:
39
- recorded_at: Mon, 20 Jun 2016 22:37:07 GMT
@@ -1,39 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_user_get_users&wstoken=60fc9c9415259404795094957e4ab32f
6
- body:
7
- string: criteria[0][value]=Guest%25&criteria[0][key]=firstname
8
- headers: {}
9
-
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- Date:
16
- - Wed, 08 Jun 2016 06:25:46 GMT
17
- Expires:
18
- - Thu, 01 Jan 1970 00:00:00 GMT
19
- Pragma:
20
- - no-cache
21
- X-Powered-By:
22
- - PHP/5.6.2
23
- Server:
24
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_perl/2.0.8 Perl/v5.20.0
25
- Content-Type:
26
- - application/json
27
- Access-Control-Allow-Origin:
28
- - "*"
29
- Content-Length:
30
- - "339"
31
- Accept-Ranges:
32
- - none
33
- Cache-Control:
34
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
35
- body:
36
- string: "{\"users\":[{\"id\":1,\"firstname\":\"Guest user\",\"lastname\":\" \",\"fullname\":\"Guest user \",\"email\":\"root@localhost\",\"firstaccess\":0,\"lastaccess\":0,\"profileimageurlsmall\":\"http:\\/\\/localhost:8888\\/moodle28\\/pluginfile.php\\/4\\/user\\/icon\\/f2\",\"profileimageurl\":\"http:\\/\\/localhost:8888\\/moodle28\\/pluginfile.php\\/4\\/user\\/icon\\/f1\"}],\"warnings\":[]}"
37
- http_version:
38
- recorded_at: Wed, 08 Jun 2016 06:25:46 GMT
39
- recorded_with: VCR 2.9.3
@@ -1,39 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_user_get_users&wstoken=
6
- body:
7
- string: criteria[0][value]=%25&criteria[0][key]=firstname
8
- headers: {}
9
-
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- Content-Length:
16
- - "103"
17
- Expires:
18
- - Thu, 01 Jan 1970 00:00:00 GMT
19
- Accept-Ranges:
20
- - none
21
- X-Powered-By:
22
- - PHP/5.6.2
23
- Content-Type:
24
- - application/json
25
- Date:
26
- - Mon, 20 Jun 2016 22:38:27 GMT
27
- Access-Control-Allow-Origin:
28
- - "*"
29
- Cache-Control:
30
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
31
- Server:
32
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_perl/2.0.8 Perl/v5.20.0
33
- Pragma:
34
- - no-cache
35
- body:
36
- string: "{\"exception\":\"moodle_exception\",\"errorcode\":\"invalidtoken\",\"message\":\"Invalid token - token not found\"}"
37
- http_version:
38
- recorded_at: Mon, 20 Jun 2016 22:38:27 GMT
39
- recorded_with: VCR 2.9.3
@@ -1,51 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_user_search_identity&wstoken=60fc9c9415259404795094957e4ab32f
6
- body:
7
- encoding: UTF-8
8
- string: query=moodle_student%40mailinator.com
9
- headers: {}
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- Accept-Ranges:
16
- - bytes
17
- - none
18
- Access-Control-Allow-Origin:
19
- - "*"
20
- Age:
21
- - '0'
22
- Cache-Control:
23
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
24
- Content-Type:
25
- - application/json
26
- Date:
27
- - Tue, 11 Jan 2022 21:28:57 GMT
28
- Expires:
29
- - Thu, 01 Jan 1970 00:00:00 GMT
30
- Pragma:
31
- - no-cache
32
- Server:
33
- - Moodle
34
- X-Cache:
35
- - MISS
36
- X-Clacks-Overhead:
37
- - GNU Terry Pratchett
38
- X-Ec2-Instance-Id:
39
- - i-08adafc8cf93e6451
40
- X-Powered-By:
41
- - Moodle Ninjas
42
- Content-Length:
43
- - '195'
44
- Connection:
45
- - keep-alive
46
- body:
47
- encoding: UTF-8
48
- string: '{"list":[{"id":25,"fullname":"Moodle Student","extrafields":[{"name":"idnumber","value":"MS01"},{"name":"email","value":"moodle_student@mailinator.com"}]}],"maxusersperpage":100,"overflow":false}'
49
- http_version:
50
- recorded_at: Tue, 11 Jan 2022 21:28:24 GMT
51
- recorded_with: VCR 2.9.3
@@ -1,52 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_user_search_identity&wstoken=
6
- body:
7
- encoding: UTF-8
8
- string: query=moodle_student%40mailinator.com
9
- headers: {}
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- Accept-Ranges:
16
- - bytes
17
- - none
18
- Access-Control-Allow-Origin:
19
- - "*"
20
- Age:
21
- - '0'
22
- Cache-Control:
23
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
24
- Content-Type:
25
- - application/json
26
- Date:
27
- - Tue, 11 Jan 2022 21:28:57 GMT
28
- Expires:
29
- - Thu, 01 Jan 1970 00:00:00 GMT
30
- Pragma:
31
- - no-cache
32
- Server:
33
- - Moodle
34
- X-Cache:
35
- - MISS
36
- X-Clacks-Overhead:
37
- - GNU Terry Pratchett
38
- X-Ec2-Instance-Id:
39
- - i-0afd4744d7a60c5d7
40
- X-Powered-By:
41
- - Moodle Ninjas
42
- Content-Length:
43
- - '103'
44
- Connection:
45
- - keep-alive
46
- body:
47
- encoding: UTF-8
48
- string: '{"exception":"moodle_exception","errorcode":"invalidtoken","message":"Invalid
49
- token - token not found"}'
50
- http_version:
51
- recorded_at: Tue, 11 Jan 2022 21:28:24 GMT
52
- recorded_with: VCR 2.9.3
@@ -1,39 +0,0 @@
1
- ---
2
- recorded_with: VCR 2.9.3
3
- http_interactions:
4
- - request:
5
- method: post
6
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_user_get_users&wstoken=60fc9c9415259404795094957e4ab32f
7
- body:
8
- string: criteria[0][key]=id&criteria[0][value]=5
9
- headers: {}
10
-
11
- response:
12
- status:
13
- code: 200
14
- message: OK
15
- headers:
16
- Server:
17
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zd DAV/2 mod_perl/2.0.8 Perl/v5.20.0
18
- Pragma:
19
- - no-cache
20
- Date:
21
- - Sun, 12 Apr 2015 01:01:44 GMT
22
- Access-Control-Allow-Origin:
23
- - "*"
24
- Content-Length:
25
- - "353"
26
- X-Powered-By:
27
- - PHP/5.6.2
28
- Expires:
29
- - Thu, 01 Jan 1970 00:00:00 GMT
30
- Cache-Control:
31
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
32
- Content-Type:
33
- - application/json
34
- Accept-Ranges:
35
- - none
36
- body:
37
- string: "{\"users\":[{\"id\":5,\"firstname\":\"Austin\",\"lastname\":\"Powers\",\"fullname\":\"Austin Powers\",\"email\":\"austinp1@jobready.com.au\",\"firstaccess\":0,\"lastaccess\":0,\"profileimageurlsmall\":\"http:\\/\\/localhost:8888\\/moodle28\\/pluginfile.php\\/69\\/user\\/icon\\/f2\",\"profileimageurl\":\"http:\\/\\/localhost:8888\\/moodle28\\/pluginfile.php\\/69\\/user\\/icon\\/f1\"}],\"warnings\":[]}"
38
- http_version:
39
- recorded_at: Sun, 12 Apr 2015 01:01:44 GMT
@@ -1,39 +0,0 @@
1
- ---
2
- recorded_with: VCR 2.9.3
3
- http_interactions:
4
- - request:
5
- method: post
6
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_user_get_users&wstoken=
7
- body:
8
- string: criteria[0][value]=5&criteria[0][key]=id
9
- headers: {}
10
-
11
- response:
12
- status:
13
- code: 200
14
- message: OK
15
- headers:
16
- Cache-Control:
17
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
18
- Pragma:
19
- - no-cache
20
- Server:
21
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_perl/2.0.8 Perl/v5.20.0
22
- Accept-Ranges:
23
- - none
24
- Content-Type:
25
- - application/json
26
- Date:
27
- - Mon, 20 Jun 2016 22:30:45 GMT
28
- Expires:
29
- - Thu, 01 Jan 1970 00:00:00 GMT
30
- Access-Control-Allow-Origin:
31
- - "*"
32
- Content-Length:
33
- - "103"
34
- X-Powered-By:
35
- - PHP/5.6.2
36
- body:
37
- string: "{\"exception\":\"moodle_exception\",\"errorcode\":\"invalidtoken\",\"message\":\"Invalid token - token not found\"}"
38
- http_version:
39
- recorded_at: Mon, 20 Jun 2016 22:30:45 GMT
@@ -1,39 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_user_update_users&wstoken=60fc9c9415259404795094957e4ab32f
6
- body:
7
- string: users[0][email]=samg%40jobready.com.au&users[0][id]=4
8
- headers: {}
9
-
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- Expires:
16
- - Thu, 01 Jan 1970 00:00:00 GMT
17
- X-Powered-By:
18
- - PHP/5.6.2
19
- Content-Type:
20
- - application/json
21
- Content-Length:
22
- - "4"
23
- Date:
24
- - Wed, 08 Jun 2016 06:40:27 GMT
25
- Access-Control-Allow-Origin:
26
- - "*"
27
- Accept-Ranges:
28
- - none
29
- Pragma:
30
- - no-cache
31
- Server:
32
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_perl/2.0.8 Perl/v5.20.0
33
- Cache-Control:
34
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
35
- body:
36
- string: "null"
37
- http_version:
38
- recorded_at: Wed, 08 Jun 2016 06:40:27 GMT
39
- recorded_with: VCR 2.9.3
@@ -1,39 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_user_update_users&wstoken=
6
- body:
7
- string: users[0][email]=&users[0][id]=4
8
- headers: {}
9
-
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- X-Powered-By:
16
- - PHP/5.6.2
17
- Accept-Ranges:
18
- - none
19
- Server:
20
- - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_perl/2.0.8 Perl/v5.20.0
21
- Pragma:
22
- - no-cache
23
- Content-Type:
24
- - application/json
25
- Access-Control-Allow-Origin:
26
- - "*"
27
- Expires:
28
- - Thu, 01 Jan 1970 00:00:00 GMT
29
- Date:
30
- - Mon, 20 Jun 2016 22:39:11 GMT
31
- Cache-Control:
32
- - private, must-revalidate, pre-check=0, post-check=0, max-age=0
33
- Content-Length:
34
- - "103"
35
- body:
36
- string: "{\"exception\":\"moodle_exception\",\"errorcode\":\"invalidtoken\",\"message\":\"Invalid token - token not found\"}"
37
- http_version:
38
- recorded_at: Mon, 20 Jun 2016 22:39:11 GMT
39
- recorded_with: VCR 2.9.3