PHP Classes
elePHPant
Icontem

PHP DailyMotion API: Manage videos in the DailyMotion site with its API

Recommend this page to a friend!
  Info   View files Documentation   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2019-01-05 (7 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 37 All time: 9,621 This week: 284Up
Version License PHP version Categories
dailymotion 1.0.0The PHP License5PHP 5, Web services
Description Author

This package can manage videos in the DailyMotion site with its API.

It can send HTTP requests to the DailyMotion site API Web server to perform several types of operations.

The package can send GET, POST and DELETE requests to the API passing the base API URI for each request, pass given parameters and even do file uploads.

  Performance   Level  
Name: Nyi Nyi Lwin <contact>
Classes: 6 packages by
Country: Myanmar Myanmar
Age: 26
All time rank: 35654 in Myanmar Myanmar
Week rank: 876 Up3 in Myanmar Myanmar Up
Innovation award
Innovation award
Nominee: 2x

 

Details

Dailymotion

Laravel Dailymotion

Latest Stable Version Total Downloads

Installation

composer require php-junior/dailymotion

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

PhpJunior\DailyMotion\DailyMotionProvider::class,

php artisan vendor:publish --provider="PhpJunior\DailyMotion\DailyMotionProvider"

This is the contents of the published config file:

/*
|--------------------------------------------------------------------------
| Dailymotion
|--------------------------------------------------------------------------
|
|  Scope :  `read', `write', `delete', `email', `userinfo', `feed',
|           `manage_videos', `manage_comments', `manage_playlists',
|           `manage_tiles', `manage_subscriptions', `manage_friends',
|           `manage_favorites', `manage_likes', `manage_groups', `manage_records',
|           `manage_subtitles', `manage_features', `manage_history', `ifttt', `read_insights',
|           `manage_claim_rules', `delegate_account_management', `manage_analytics', `manage_player',
|           `manage_user_settings', `manage_collections', `manage_app_connections', `manage_applications'
|
|  Whitespace separated
*/

return [
    'client_id'     => 'client_id',
    'client_secret' => 'client_secret',
    'username'      => 'username',
    'password'      => 'password',
    'scope'         => 'manage_videos userinfo manage_playlists manage_user_settings manage_applications'
];

Usage

To call a method , use the get, post or delete methods as follow:

$result = DailyMotion::get( 
    '/videos', [
        'fields' => 'id,title,owner'
    ]);

Upload File

DailyMotion::file($url)->post('/me/videos',[
    'title'     => 'Dailymotion upload test',
    'tags'      => 'dailymotion,api,sdk,test',
    'channel'   => 'videogames',
    'published' => true
]);

Credits

  • All Contributors

Full Documentation

Read Full Documentation here

License

The MIT License (MIT). Please see License File for more information.

Support on Beerpay

Hey dude! Help me out for a couple of :beers:!

Beerpay Beerpay

  Files folder image Files  
File Role Description
Files folder imageconfig (1 file)
Files folder imagesrc (1 file, 2 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  config  
File Role Description
  Accessible without login Plain text file dailymotion.php Conf. Configuration script

  Files folder image Files  /  src  
File Role Description
Files folder imageFacades (1 file)
Files folder imageServices (1 file)
  Plain text file DailyMotionProvider.php Class Class source

  Files folder image Files  /  src  /  Facades  
File Role Description
  Plain text file DailyMotionFacade.php Class Class source

  Files folder image Files  /  src  /  Services  
File Role Description
  Plain text file DailyMotion.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:37
This week:0
All time:9,621
This week:284Up