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

Re: Rest API for authentication

$
0
0
by Fehmi M'Barek.  

Hi,

here is a way how to authenticate against you moodle instance:

curl -X POST \
  'https://my.moodleapp.tld/login/token.php?service=moodle_mobile_app' \
  -d 'username=mymoodleuser&password=MySecretPassword'


Response will be:


{
    "token": "f31119c023c2c81ba0244b57982379823",
    "privatetoken": null
}

With this token you can do all your CRUD operation

Hope this helps you.

Best regards

Fehmi


Viewing all articles
Browse latest Browse all 2363

Trending Articles



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