|
113.
|
|
|
:index:`You <single: Web services; Upload file via web services>` can place files into the accounts of individuals via web services. This can be beneficial if you want to transfer certificates or other files from another system directly into Mahara once a learner consented that you can do so.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/web_services/mahara_upload_file.rst:13
|
|
114.
|
|
|
The workflow that is supported with this web services call is the following:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/web_services/mahara_upload_file.rst:15
|
|
115.
|
|
|
Set up a web services token, using the function 'mahara_upload_file'.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/web_services/mahara_upload_file.rst:17
|
|
116.
|
|
|
A learner clicks a button in a third-party application with which they confirm that a file can be placed into their account at some point in the future, e.g. upon them graduating and receiving a diploma. This button is specially crafted to log the learner into Mahara (and create an account if they don't already have one) and take them to the *Files* area where they see an alert stating that they will receive a notification when the file was uploaded into their account.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/web_services/mahara_upload_file.rst:18
|
|
117.
|
|
|
This is the most basic link, which can be styled as a button:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/web_services/mahara_upload_file.rst:21
|
|
118.
|
|
|
``<a href="https://domain/artefact/file/index.php?expectfile=1 &externalsource=application">Agree to file transfer</a>``
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/web_services/mahara_upload_file.rst:23
|
|
119.
|
|
|
If you use SAML, the URL is more complicated because you go through the IdP first and then need to be redirected to Mahara
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/web_services/mahara_upload_file.rst:26
|
|
120.
|
|
|
``<a href="https://domain/auth/saml/index.php?idpentityid=IdPinfo &wantsurl=https%3A%2F%2Fdomain%2Fartefact%2Ffile%2Findex.php %3Fexpectfile%3D1%26externalsource%3Dapplication">Agree to file transfer</a>``
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/web_services/mahara_upload_file.rst:28
|
|
121.
|
|
|
where
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/web_services/mahara_upload_file.rst:32
|
|
122.
|
|
|
**domain** is your Mahara URL
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/web_services/mahara_upload_file.rst:34
|