Skip to content

Commit

Permalink
Merge pull request #25 from lucaboesch/documentationamend
Browse files Browse the repository at this point in the history
Correct WS call in README.md.
  • Loading branch information
lucaboesch authored Sep 26, 2023
2 parents 5b669a9 + 03fb325 commit e1ccddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ If you use cURL you need to make 3 calls:
1. `curl -F "file_1=@$<filename>" "<moodle_host>/webservice/upload.php?token=$<web_service_token>`
1.1 Copy the item id of the response.
2. `curl "<moodle_host>/webservice/rest/server.php?wstoken=$<web_service_token>&moodlewsrestformat=json&wsfunction=core_user_add_user_private_files&draftid=$<itemid>`
3. `curl -sS "<moodle_host>/webservice/rest/server.php?wstoken=$<rysnc_token>&wsfunction=local_ws_fileassistant_create_file_resource&filename=$<filename>&courseid=$<courseid>&sectionnumber=$<sectionnumber>&displayname=$<displayname>"`
3. `curl -sS "<moodle_host>/webservice/rest/server.php?wstoken=$<rysnc_token>&wsfunction=local_rsync_create_file_resource&filename=$<filename>&courseid=$<courseid>&sectionnumber=$<sectionnumber>&displayname=$<displayname>"`

## Acknowledgements

Expand Down

0 comments on commit e1ccddc

Please sign in to comment.