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