How to use login-required web service functions

How to use login-required web service functions

Rixan Randria -
Atsakymų skaičius: 1

Hello.

I develop an external app accessing Moodle webservices based on this documentation : https://docs.moodle.org/dev/Web_service_API_functions

This page shows that some of functions require to login and few don't.

So before to call a function about getting courses, have to to authenticate ?

How to login with web services ? Thanks.

Įvertinimų vidurkis: -
Atsakymas į Rixan Randria

Re: How to use login-required web service functions

Rixan Randria -
I answer to myself that running a token-based request is sufficient !? I asked this forum because I always get a return = "Access control exception"
I just find the solution that
1- I have to add a new external service
2- I have to create a token for my user and assign the just created external service to this token

And now I can use all login-required functions without authenticating, just by using the token !