Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Using the file API: Difference between revisions

From MoodleDocs