I want to connect myCustomCms to myCustomMoodle via a plugin and allow people from myCms to upload stuff to their private area in myMoodle.
I ended up using Moodle mobile web service to make tokens. I hope this is the correct path to go on.
My question is now regarding the dependencies for the plugin.
I saw that you can add dependencies (for modules) but am not sure how I would go about adding such dependencies for the mobile service and the rest protocol. I also want to allow some of the functionality to still work if / when they [mobile web service, protocol] are not enabled.
Currently, I use the following line as something to check on but I feel that it isn't enough
get_record('external_services', array('shortname' => 'moodle_mobile_app', 'enabled' => 1,
'restrictedusers' => 0, 'downloadfiles' => 1, 'uploadfiles' => 1));
Thank you in advance.