Webservice for other application

Webservice for other application

by Aung Zin Phyo -
Number of replies: 1

Dear All,

I am developing a Mobile application and i want to access Moodle in my application.

i want to know is there any api which i can hit to authenticate user?

e.g

url is 'https://mymoodle.tld/webservice/rest/server.php?wstoken=XXXXXXXXXXXX&wsfunction=xxxxxxx&moodlewsrestformat=json&username=xxxxx&password=xxxxx' and i want to pass username and password as parameter and get response whether the user is logged on server or user entered invalid credentials.


if credentials are correct i want to open Moodle then which should not ask for login from user.


any help will be appreciated. Thanks


Average of ratings: -
In reply to Aung Zin Phyo

Re: Webservice for other application

by Mayank Tyagi -
Moodle uses api "https://mymoodle.site.com/login/token.php?username=USER\&password=PASSWORD\&service=moodle_mobile_app" for user authentication for its mobile application itself. This api will provide you token associated with user only if the user entered correct crendentials. By doing so you can verify whether user entered correct credentials or not.