Recommend this page to a friend! |
![]() |
Info | Documentation | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 47 | All time: 10,774 This week: 206![]() |
Version | License | PHP version | Categories | |||
dailymotion 1.0.0 | The PHP License | 5 | PHP 5, Web services |
Description | Author | |
This package can manage videos in the DailyMotion site with its API. |
|
Laravel Dailymotion
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'
];
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
]);
Read Full Documentation here
The MIT License (MIT). Please see License File for more information.
Hey dude! Help me out for a couple of :beers:!
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Lic. | License text | ||
![]() ![]() |
Doc. | Documentation |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.