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

How to use web service api.

$
0
0
by Aung Zin Phyo.  

I want to access the Moodle restful web services in my native android app.

Following are the steps that I have done with:

Step-1

 Administration > Site administration > Plugins > Web services   and enabled the web service's.

Step-2

Administration > Site administration > Plugins > Web services> Manage Protocols and enabled the rest protocol.

Step-3

Administration > Site administration > Plugins > Web services> Manage >Manage Token and created token with validity date.

After performing the above 3 steps ,I have no idea how to proceed further.

Idealy my requirement  is  access the restful web services from my  moodle instance:

like:

URL:http://localhost/........

json : json data 

etc....

so I would use the restful web service in my native android app.

I already found an example the following link. But I don't know where to put it.

"https://github.com/moodlehq/sample-ws-clients/blob/master/PHP-REST/client.php"

Please suggest me the further steps to be followed to access the restful web services 





Viewing all articles
Browse latest Browse all 2361

Trending Articles



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