What i must use? Moodle API web services or quering directally to database?

Re: What i must use? Moodle API web services or quering directally to database?

by Mark Johnson -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hi Alejandro,

Using web services is the correct approach for this.  In fact, this is exactly how the official Moodle app works. If you haven't already it's worth taking a look and seeing if that suits your needs.

It looks like webservice_access_exception is thrown in lots of different cases.  If you can include the error message it returns, it might help someone identify your problem.