|
Search in documentation:
Advanced search
|
Browse by category:
|
Uploading videos from server side |
||||||||||||
Description:
The aim of this sample is to show how to use curl to upload a video file in PHP with kewego APIs. Technical specifications:
Instructions : ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The sample contains 8 files : - config.php : configuration file (fill in your datas like application key and login/password). - init.php : use to initialize needed datas to make an upload : getting an application Token and an authToken (login). - functions.php : contains functions in use in init.php - KCurl.class.php : Contains the needed curl class to make other API calls than upload in this sample. - index.php : HTML form : fill in XML data file and video to upload - upload_curl.php : upload video and asociated datas from form, using curl (KCurl.class.php is not used here for sample purpose and to simplify code reading) Configuration ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The sample must be configurated to correspond with your own Kewego video portal account : Edit the config.php file in the config directory and fill in your datas : - ApplicationKey : identifies your product. All pages will then correspond to your own kewego product datas. If your are using a free key, you will have results from kewego portal.o skin will be shown instead. - e-mail adress and password need to be set to login. - Temporary path on the server should be declared WORKING : ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The video file to upload and the asociated datas are sent by index.php to upload_curl.php. initialisation is made by init.php file included in upload_curl.php (getting application token and login). Then upload_curl.php uploads video file and asociated datas from XML file.
|
||||||||||||
| Others in this Category | |
| Using CURL for distant call | |
| Simple video portal code sample | |
| Batch Kad image uploader | |
| Webcam recorder PHP demo | |
Powered by
KBPublisher (Knowledge base software)

IMPORTANT NOTICES: