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

Issue while trying to access Moodle restful web service

$
0
0
by Manideep Manda.  

URL:

http://localhost/moodle/webservice/rest/server.php/?wstoken='c05f1bf389c771a41736aed9443a9620'&wsfunction='core_course_get_courses'

content type: application/json

method: GET


Result:

<?xml version="1.0" encoding="UTF-8" ?>

<EXCEPTION class="moodle_exception">

    <ERRORCODE>invalidtoken</ERRORCODE>

    <MESSAGE>Invalid token - token not found</MESSAGE>

</EXCEPTION>


I am getting the following exception if I try to access moodle restful api, I have done all the initial setup required to access the restful api's .


I any one have solution for this please let me know through this post.


Viewing all articles
Browse latest Browse all 2361

Trending Articles



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