Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

Re: Anonymous / Guest access via web services

$
0
0
by Raymond Cosgrave.  

You can use either the token or webservice username and password to get the return from core_courses_get_courses() and format/print out the list to the person viewing the page. You can use the ID of the course of the course and append it to the view of the course

example:

<a href="http://mymoodle.com/course/view.php?id=" . $course_return['ID'] . "> Course ID 4</a>

*** Thats probably not the return structure but you get the idea ***

You would just have to set your moodle courses to allow guest access.

 

Im not sure why you would want to be able to use the Web Service without some sort of auth...


Viewing all articles
Browse latest Browse all 2361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>