Update fetch api

pull/10/merge
Frode Petterson 2017-04-03 14:51:54 +02:00
parent 280946979f
commit c5974e6212
1 changed files with 5 additions and 3 deletions

View File

@ -19,11 +19,13 @@ interface H5PFrameworkInterface {
/** /**
* Fetches a file from a remote server using HTTP GET * Fetches a file from a remote server using HTTP GET
* *
* @param $url * @param $url Where you want to get or send data.
* @param $data * @param $data Data to post to the URL.
* @param $blocking Set to 'FALSE' to instantly time out (fire and forget).
* @param $stream Where to save the file directly on the filesystem.
* @return string The content (response body). NULL if something went wrong * @return string The content (response body). NULL if something went wrong
*/ */
public function fetchExternalData($url, $data = NULL); public function fetchExternalData($url, $data = NULL, $blocking = TRUE, $stream = NULL);
/** /**
* Set the tutorial URL for a library. All versions of the library is set * Set the tutorial URL for a library. All versions of the library is set