Presentations

Upload of Files

The file can be uploaded in the virtual classroom. There are no more implementations necessary.

 

Which files are uploaded?

 You can ask the following URL to get a JSON list of all uploaded files:

http://api.edudip.com/api2.php?action=getFiles

Parameter
Parameter Type Description
api-Key string The api key of your api solution.
Version string X.Y.Z
Result
Parameter Type Description
Files array(Object)

Information about the uploaded files (further information see below).

FreeSpace float Currently free space.
MaxSpace int Maximum space for files of your api solution.
success bool Wheather the request was succed.
Example
$url = 'http://api.edudip.com/api2.php';
 
$dataToSend = array(
	'api-Key' => 'EDUDIP_API_KEY',
	'action' => 'getFiles'
);
 
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $dataToSend);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$res = curl_exec($ch);
curl_close($ch);
 
echo $res;

Delete files

You can ask the following URL to get a JSON list of all uploaded files that have been deleted:

http://api.edudip.com/api2.php?action=deleteFile

 

Parameter
Parameter Type Description
api-Key string The api key of your api solution.
FilesId int Unique file Id.
Result
Parameter Type Description
success bool Wheather the request was succed.

Durch die weitere Nutzung der Seite stimmst du der Verwendung von Cookies zu. Weitere Informationen

Die Cookie-Einstellungen auf dieser Website sind auf "Cookies zulassen" eingestellt, um das beste Surferlebnis zu ermöglichen. Wenn du diese Website ohne Änderung der Cookie-Einstellungen verwendest oder auf "Akzeptieren" klickst, erklärst du sich damit einverstanden.

Schließen