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

Use the web services to access the content of a page that does not support the Moodle API.

$
0
0
by Daniel Vogt.  

Hello everyone,

I have written an open source application that uses the Web service API functions to access various course content.

Now I encountered a problem in connection with the Kaltura plugin . This plugin does not support the Moodle-Mobile version and is therefore, as far as I can tell, not integrated into the web service API.

Now what is the best way to get to the links of the videos that were added as course content with this plugin?

In principle I get from the API links in the form MOODLEPAGE/mod/kalvidres/view.php?id=NUMERICID. When opening the links in a browser, I get to the mod-page where the video is embedded. Because the Moodle app cannot display this mod, it only offers to open the page directly in the browser. Is this the only possibility, or can someone come up with something even simpler, better?

So like the app I would generate a login key with `tool_mobile_get_autologin_key`. Because the key can only be used once I would save the session cookie and then request all links from this plugin. Does anyone have an opinion on this, does it sound reasonable?

It would be best if you could use the webservice token or the private token for such a request, but that seems not to be possible.

Many thanks and many greetings,
Daniel




Viewing all articles
Browse latest Browse all 2364

Trending Articles



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