PHP Classes

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

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 47 All time: 10,760 This week: 206Up
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: 12 packages by
Country: Myanmar Myanmar
Age: 32
All time rank: 26565 in Myanmar Myanmar
Week rank: 46 Up1 in Myanmar Myanmar Up
Innovation award
Innovation award
Nominee: 7x

Winner: 4x

Documentation

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 (7)  
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 (7)  /  config  
File Role Description
  Accessible without login Plain text file dailymotion.php Conf. Configuration script

  Files folder image Files (7)  /  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 (7)  /  src  /  Facades  
File Role Description
  Plain text file DailyMotionFacade.php Class Class source

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:47
This week:0
All time:10,760
This week:206Up