2017 © Pedro Peláez
 

library dailymotion

DailyMotion Bridge for Laravel

image

php-junior/dailymotion

DailyMotion Bridge for Laravel

  • Wednesday, May 23, 2018
  • by Nyi Nyi Lwin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 200 % Grown

The README.md

Dailymotion

Laravel Dailymotion, (*1)

Latest Stable Version Total Downloads, (*2)

Installation

composer require php-junior/dailymotion

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

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

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

This is the contents of the published config file:, (*5)

/*
|--------------------------------------------------------------------------
| 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:, (*6)

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

Upload File, (*7)

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, (*8)

License

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

Support on Beerpay

Hey dude! Help me out for a couple of :beers:!, (*10)

Beerpay Beerpay, (*11)

The Versions

23/05 2018

dev-master

9999999-dev

DailyMotion Bridge for Laravel

  Sources   Download

MIT

The Requires

 

by Avatar Nyi Nyi Lwin

laravel video dailymotion

23/05 2018

0.0.1

0.0.1.0

DailyMotion Bridge for Laravel

  Sources   Download

MIT

The Requires

 

by Avatar Nyi Nyi Lwin

laravel video dailymotion