PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 44 All time: 10,549 This week: 202Up
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.

Picture of Nyi Nyi Lwin
  Performance   Level  
Name: Nyi Nyi Lwin <contact>
Classes: 11 packages by
Country: Myanmar Myanmar
Innovation award
Innovation award
Nominee: 6x

Winner: 3x

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:44
This week:0
All time:10,549
This week:202Up