How To Upload A Video To Dailymotion Remote Upload From URL (Url Remote Upload)?

Hướng dẫn kiếm tiền online với Dailymotion từ A-Z

How To Upload A Video To Dailymotion From A URL (Url Remote Upload)? Here is the demo link for this project: https://dailymotiontop.tk

This method supports upload video from your computer to Dailymotion like the upload protocol of Dailymotion only. Dailymotion Remote Upload

You are still limited to IP upload but will not be limited to keywords tag. If you want to upload from the video link mp4 and more you can try this link: https://upload.tranquocdai.com with 3 days free use after active email account. Do you want to do a similar project? I’ll detail the guide for you in the video below. Watch the video and do exactly what I did in the video. You need to create an index.php file with the form required for import and a file upload.php to handle that request. The code in the processing file I used to share on this blog.

Read it: https://tranquocdai.com/how-to-upload-a-video-with-dailymotion-data-api-using-php.html

Dowload PHP SDK from: https://github.com/dailymotion/dailymotion-sdk-php code file upload.php

<?php 
require_once 'sdk/Dailymotion.php';
// Dailymotion DATA API credentials
$apikey = 'Your API Key'; 
$apisecret = 'Your API Secret'; 
$user = 'Your user email address'; 
$password = 'Password';
 
$videotitle = "Title of the video"; 
//$videofile = "Actual path of the video";
$name = $_FILES["upload_file"]["name"];
move_uploaded_file($_FILES["upload_file"]["tmp_name"], "videos/".$name);
$videofile = "videos/".$name;
$videocategory = "Category of the video";
$videotags = "Tags of the video";
$videodescription = "Description of the video";

$api = new Dailymotion();
try {
$api->setGrantType(Dailymotion::GRANT_TYPE_PASSWORD, $apikey, $apisecret, array('write','delete'), array('username' => $user, 'password' => $password)); 
$url = $api->uploadFile($videofile); 
$result = $api->call('video.create', array('url' => $url, 'title' => $videotitle , 'channel' => $videocategory , 'tags' => $videotags, 'description' => $videodescription, 'published' => true)); 
}
catch (DailymotionAuthRequiredException $e)
{
 echo $e->getMessage();
}
$videourl = 'http://www.dailymotion.com/video/'.$result['id'];
 if($result) {
 ?><a href="<?php echo $videourl; ?>" target="_blank">Click Here </a> <?php echo "click here to see this video."; 
 echo "Video uploaded successfully on dailymotion.com";
 }
?>

Video How To Upload A Video To Dailymotion From A URL (Url Remote Upload)?

Contact me if you want use it: https://upload.tranquocdai.com

Facebook: https://www.facebook.com/tranquocdai85

Subscribe
Notify of
guest
0 Bình luận
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x