Coder Social home page Coder Social logo

laravel's Introduction

Laravel Vimeo

vimeo

A Vimeo bridge for Laravel.

// Fetching data.
$vimeo->request('/users/dashron', ['per_page' => 2], 'GET');

// Upload videos.
$vimeo->upload('/home/aaron/foo.mp4');

// Want to use a facade?
Vimeo::uploadImage('/videos/123/images', '/home/aaron/bar.png', true);

Build Status StyleCI Coverage Status Latest Version License

Installation

Require this package, with Composer, in the root directory of your project.

$ composer require vimeo/laravel

Add the service provider to config/app.php in the providers array, or if you're using Laravel 5.5, this can be done via the automatic package discovery.

Vimeo\Laravel\VimeoServiceProvider::class

If you want you can use the facade. Add the reference in config/app.php to your aliases array.

'Vimeo' => Vimeo\Laravel\Facades\Vimeo::class

Configuration

Laravel Vimeo requires connection configuration. To get started, you'll need to publish all vendor assets:

$ php artisan vendor:publish --provider="Vimeo\Laravel\VimeoServiceProvider"

This will create a config/vimeo.php file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

You are free to change the configuration file as needed, but the default expected values are below:

VIMEO_CLIENT=
VIMEO_SECRET=
VIMEO_ACCESS=

and for setting up the alternate connection...

VIMEO_ALT_CLIENT=
VIMEO_ALT_SECRET=
VIMEO_ALT_ACCESS=

Default Connection Name

This option default is where you may specify which of the connections below you wish to use as your default connection for all work. Of course, you may use many connections at once using the manager class. The default value for this setting is main.

Vimeo Connections

This option connections is where each of the connections are setup for your application. Example configuration has been included, but you may add as many connections as you would like.

Usage

VimeoManager

This is the class of most interest. It is bound to the ioc container as vimeo and can be accessed using the Facades\Vimeo facade. This class implements the ManagerInterface by extending AbstractManager. The interface and abstract class are both part of Graham Campbell's Laravel Manager package, so you may want to go and checkout the docs for how to use the manager class over at that repository. Note that the connection class returned will always be an instance of Vimeo\Vimeo.

Facades\Vimeo

This facade will dynamically pass static method calls to the vimeo object in the ioc container which by default is the VimeoManager class.

VimeoServiceProvider

This class contains no public methods of interest. This class should be added to the providers array in config/app.php. This class will setup ioc bindings.

Examples

Here you can see an example of just how simple this package is to use. Out of the box, the default adapter is main. After you enter your authentication details in the config file, it will just work:

// You can alias this in config/app.php.
use Vimeo\Laravel\Facades\Vimeo;

Vimeo::request('/me/videos', ['per_page' => 10], 'GET');
// We're done here - how easy was that, it just works!

Vimeo::upload('/bar.mp4');
// This example is simple and there are far more methods available.

The Vimeo manager will behave like it is a Vimeo\Vimeo. If you want to call specific connections, you can do that with the connection method:

use Vimeo\Laravel\Facades\Vimeo;

// Writing this…
Vimeo::connection('main')->upload('/bar.mp4');

// …is identical to writing this
Vimeo::upload('/bar.mp4');

// and is also identical to writing this.
Vimeo::connection()->upload('/bar.mp4');

// This is because the main connection is configured to be the default.
Vimeo::getDefaultConnection(); // This will return main.

// We can change the default connection.
Vimeo::setDefaultConnection('alternative'); // The default is now alternative.

If you prefer to use dependency injection over facades like me, then you can inject the manager:

use Vimeo\Laravel\VimeoManager;

class Foo
{
    protected $vimeo;

    public function __construct(VimeoManager $vimeo)
    {
        $this->vimeo = $vimeo;
    }

    public function bar()
    {
        $this->vimeo->upload('/foo.mp4');
    }
}

App::make('Foo')->bar();

Documentation

There are other classes in this package that are not documented here. This is because the package is a Laravel wrapper of the official Vimeo package.

License

Apache License 2.0 © Vimeo

laravel's People

Contributors

aaronm67 avatar benholmen avatar erunion avatar grahamcampbell avatar jasonmccreary avatar jnbn avatar muglug avatar netr avatar omranic avatar pgtruesdell avatar repat avatar safwanad-dardak avatar sdebacker avatar sergiosalvatore avatar sventour avatar urakozz avatar vinkla avatar wyattcast44 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel's Issues

Domain Level Privacy is very very confusing

How does someone restrict video with domain level embed privacy? I am trying to upload video like this:-

$vimeo = Vimeo\Laravel\Facades\Vimeo::upload($video, [
        'name' => 'Temporary Video',
        'privacy' => [
            'view' => 'anybody',
            'download' => "false",
            'embed' => 'whitelist',
            'comments' => 'nobody',
        ],

and I make second request as below :-

dd(Vimeo\Laravel\Facades\Vimeo::connection('main')->request($vimeo.'/privacy/domains/{Domain.com}', [], 'PUT'));

Now, first I get an error as below:-

array:3 [▼
  "body" => null
  "status" => 204
  "headers" => array:17 [▶]

That is no content received with status code 204 and request complete.

I want to make the video available only when it is embedded in my domain and can not be seen anywhere else, nor anyone should be able to download it. So, My Question is:

  1. Will privacy.view remain "anybody" or "nobody" or "private" for displaying video only on an embed with the whitelisted domain?
  2. How do I verify, if a video is "domain locked" only?

Wrong documentation package

$vimeo->upload('/home/aaron/foo.mp4', false);

upload not working, returning error
'Unable to get an upload ticket.[You have provided an invalid parameter. Please contact developer of this application.]'
false is incorrect parameter, must be integer

cURL error 55: SSL_write() returned SYSCALL, errno = 10053

Upload is failing with SSL_write() error 55 errorno=10053 errors when I try to upload files greater than 50 MB. same file failed many times.File less then 30 MB seem to work.
for reference i'm attaching a screen shot.
vimeoerror

os -windows
php version -7.2
laravel version -5.8
"vimeo/laravel": "^5.3",

Upload successful but script crashes without error

We used in a project the package /vinkla/vimeo and updated to this package.

We upload the videos to vimeo with a queue. The upload still works as expected but after the upload the job immediately stops without any error and all code after the upload don't run.

Laravel 5.7
vimeo/larave 5.1

    try {
  
          $uri = Vimeo::upload(public_path($event_video->locale_path), array(
              'name' => 'Vimeo API SDK test upload',
              'description' => "This video was uploaded through the Vimeo API's PHP SDK."
          ));
//crash here after successful video upload to vimeo

          } catch (VimeoUploadException $e) {
              // We may have had an error. We can't resolve it here necessarily, so report it to the user.
              echo 'Error uploading ' . $file_name . "\n";
              echo 'Server reported: ' . $e->getMessage() . "\n";
          } catch (VimeoRequestException $e) {
              echo 'There was an error making the request.' . "\n";
              echo 'Server reported: ' . $e->getMessage() . "\n";
          } 

Laravel 5.0 support

Hi,

I'd love to give your package a try. Could you update "illuminate/support": "~4.0" to dev-master for Laravel 5 support?

Thanks! :)

Cannot require via composer

Hi Guys!

I need some help.

I'm trying to use this package, but for some reasons, I can't install it via composer.
getting error as be low screenshot.

image

can someone assist me with this please.

Add support for Laravel 5.6

  • vinkla/vimeo 3.7.0 requires illuminate/support 5.5.* -> satisfiable by illuminate/support[5.5.x-dev, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40].

Keep getting Class vimeo does not exist use a facade

After doing all the config stuff I keep getting this error with a facade.
$servicearr = Vimeo::request("/videos/194590665");

Class vimeo does not exist

` 'Vimeo' => Vinkla\Vimeo\Facades\Vimeo::class,

			'FFMPEG' => LinkThrow\Ffmpeg\Facade\FfmpegFacade::class,

			'Form' => Collective\Html\FormFacade::class,

			'Html' => Collective\Html\HtmlFacade::class`

The facade is setup correctly and so is the provider:

` Alaouy\Youtube\YoutubeServiceProvider::class,

			Vinkla\Vimeo\VimeoServiceProvider::class,

			LinkThrow\Ffmpeg\Provider\FfmpegServiceProvider::class,

			Collective\Html\HtmlServiceProvider::class`

This is the result:
`ReflectionException in Container.php line 749:

Class vimeo does not exist

in Container.php line 749

at ReflectionClass->__construct('vimeo') in Container.php line 749

at Container->build('vimeo', array()) in Container.php line 644

at Container->make('vimeo', array()) in Application.php line 709

at Application->make('vimeo') in Container.php line 1203

at Container->offsetGet('vimeo') in Facade.php line 175

at Facade::resolveFacadeInstance('vimeo') in Facade.php line 144

at Facade::getFacadeRoot() in Facade.php line 231

at Facade::__callStatic('request', array('/videos/194590665')) in BlaController.php line 76

at BlaController->services()

at call_user_func_array(array(object(BlaController), 'services'), array()) in Controller.php line 55

at Controller->callAction('services', array()) in ControllerDispatcher.php line 44

at ControllerDispatcher->dispatch(object(Route), object(BlaController), 'services') in Route.php line 189

at Route->runController() in Route.php line 144

at Route->run(object(Request)) in Router.php line 653

at Router->Illuminate\Routing{closure}(object(Request)) in Pipeline.php line 53`

php artisan vendor:publish

Did not create a vimeo.php file for me but I created it manually.

My other facades do work. In the same function I run Youtube::getVideoInfo('l-yrXB95qDo'); and that works just fine.

`use Alaouy\Youtube\Facades\Youtube;

use Vinkla\Vimeo\Facades\Vimeo;`
Is in the top of the page.

Unable to complete request.[error setting certificate verify locations: CAfile...

Hi!

I've been using your library for a website in production for a few months now and everything has been smooth. Now I'm trying to develop an update to that website and I cannot run it on local anymore.

I get this:

ErrorException in Vimeo.php line 154:
Unable to complete request.[error setting certificate verify locations:
CAfile: /home/vagrant/workshop/radiotalbot.tv/vendor/vimeo/vimeo-api/certificates/vimeo-api.cer
CApath: /etc/ssl/certs] (View: /home/vagrant/workshop/radiotalbot.tv/resources/views/home/partials/header_with_categories.blade.php) (View: /home/vagrant/workshop/radiotalbot.tv/resources/views/home/partials/header_with_categories.blade.php)

The error happens immediately when I use Vimeo::request(). Any idea? I'm not finding anything really useful on Google so I guess maybe Vimeo changed something on their API?

My production website www.radiotalbot.tv still works perfectly though (I've not run composer update yet on the server just in case this problem would happen live..)

Any idea? Thanks!

Domain Level Privacy

Vimeo has a domain-level privacy feature which restrict the Vimeo content only for certain domain name. Does it work with this library?

Laravel 6.0 support

Any chance you can make this package compatible for Laravel 6 and publish in packagist as soon as you can

Vimeo Upload Error - VimeoRequestException: Connection timed out

The vimeo uploads has been working for over a year so far without a problem and there has been no changes to the server php or sql or any other settings. However, the past 3 days, some of the slighly large video uploads are failing and I get the following error in the laravel log:

[2019-10-14 04:22:38] production.ERROR: Vimeo\Exceptions\VimeoRequestException: Unable to complete request.[Connection timed out after 30001 milliseconds] in /home/myapp/vendor/vimeo/vimeo-api/src/Vimeo/Vimeo.php:449
Stack trace:
#0 /home/myapp/vendor/vimeo/vimeo-api/src/Vimeo/Vimeo.php(529): Vimeo\Vimeo->_request('https://1512435...', Array)
#1 /home/myapp/vendor/vimeo/vimeo-api/src/Vimeo/Vimeo.php(282): Vimeo\Vimeo->perform_upload('/home/myapp...', Array)
#2 /home/myapp/vendor/graham-campbell/manager/src/AbstractManager.php(236): Vimeo\Vimeo->upload('/home/myapp...')
#3 /home/myapp/bootstrap/cache/compiled.php(6468): GrahamCampbell\Manager\AbstractManager->__call('upload', Array)
#4 /home/myapp/app/Jobs/VimeoUploadJob.php(58): Illuminate\Support\Facades\Facade::__callStatic('upload', Array)
#5 [internal function]: App\Jobs\VimeoUploadJob->handle()
#6 /home/myapp/bootstrap/cache/compiled.php(1375): call_user_func_array(Array, Array)
#7 /home/myapp/bootstrap/cache/compiled.php(9961): Illuminate\Container\Container->call(Array)
#8 /home/myapp/bootstrap/cache/compiled.php(10076): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}(Object(App\Jobs\VimeoUploadJob))
#9 /home/myapp/bootstrap/cache/compiled.php(10054): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(App\Jobs\VimeoUploadJob))
#10 /home/myapp/bootstrap/cache/compiled.php(9964): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#11 /home/myapp/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(47): Illuminate\Bus\Dispatcher->dispatchNow(Object(App\Jobs\VimeoUploadJob), false)
#12 /home/myapp/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(73): Illuminate\Queue\CallQueuedHandler->call(Object(Illuminate\Queue\Jobs\BeanstalkdJob), Array)
#13 /home/myapp/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(203): Illuminate\Queue\Jobs\Job->fire()
#14 /home/myapp/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(153): Illuminate\Queue\Worker->process('beanstalkd', Object(Illuminate\Queue\Jobs\BeanstalkdJob), Object(Illuminate\Queue\WorkerOptions))
#15 /home/myapp/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(75): Illuminate\Queue\Worker->runNextJob('beanstalkd', 'high,default,pd...', Object(Illuminate\Queue\WorkerOptions))
#16 /home/myapp/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(100): Illuminate\Queue\Worker->daemon('beanstalkd', 'high,default,pd...', Object(Illuminate\Queue\WorkerOptions))
#17 /home/myapp/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(84): Illuminate\Queue\Console\WorkCommand->runWorker('beanstalkd', 'high,default,pd...')
#18 [internal function]: Illuminate\Queue\Console\WorkCommand->fire()
#19 /home/myapp/bootstrap/cache/compiled.php(1375): call_user_func_array(Array, Array)
#20 /home/myapp/vendor/laravel/framework/src/Illuminate/Console/Command.php(169): Illuminate\Container\Container->call(Array)
#21 /home/myapp/vendor/symfony/console/Command/Command.php(261): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#22 /home/myapp/vendor/laravel/framework/src/Illuminate/Console/Command.php(155): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#23 /home/myapp/vendor/symfony/console/Application.php(817): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 /home/myapp/vendor/symfony/console/Application.php(185): Symfony\Component\Console\Application->doRunCommand(Object(Illuminate\Queue\Console\WorkCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#25 /home/myapp/vendor/symfony/console/Application.php(116): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#26 /home/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(121): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#27 /home/myapp/artisan(35): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#28 {main}  

What may be the reason here please?

I use Laravel 5.3, php 7 and use beanstalkd to process queue workers that does the uploading from my server to vimeo via API.

Laravel 7.0 support

Can this package be used with laravel 7.0? The package works fine on laravel 6.0.

When attempted to install this package on laravel 7.0 I get an error message similar to this existing issue #59

No user credentials were provided - Something went wrong error

Quite a weird issue. I have provided "all" details as mentioned in below:

VIMEO_CLIENT=XXXXXX
VIMEO_SECRET=XXXXXX
VIMEO_ACCESS=XXXXXX

Where XXXXX is my correct credentials.

When I do Vimeo::getDefaultConnection();
I get main as a return and connection['main'] has following values:

'connections' => [
    'main' => [
        'client_id' => env('VIMEO_CLIENT'),
        'client_secret' => env('VIMEO_SECRET'),
        'access_token' => env('VIMEO_ACCESS'),
    ],
],

But Whenever I do simple call:-

dd(Vimeo\Laravel\Facades\Vimeo::connection('main')->request('/me/videos', ['per_page' => 10], 'GET'));

I get following error:

array:3 [▼
  "body" => array:4 [▼
    "error" => "Something strange occurred. Please contact the app owners."
    "link" => null
    "developer_message" => "No user credentials were provided."
    "error_code" => 8003
  ]
  "status" => 401
  "headers" => array:16 [▼
    "Server" => "nginx"
    "Content-Type" => "application/vnd.vimeo.error+json"
    "Cache-Control" => "private, no-store, no-cache"
    "Strict-Transport-Security" => "max-age=15552000; includeSubDomains; preload"
    "WWW-Authenticate" => "Bearer error="invalid_token""
    "X-Vimeo-DC" => "ge"
    "Accept-Ranges" => "bytes"
    "Via" => "1.1 varnish"
    "Content-Length" => "157"
    "Date" => "Thu, 25 Apr 2019 05:11:13 GMT"
    "Connection" => "keep-alive"
    "X-Served-By" => "cache-bwi5140-BWI, cache-hhn1542-HHN"
    "X-Cache" => "MISS, MISS"
    "X-Cache-Hits" => "0, 0"
    "X-Timer" => "S1556169074.612260,VS0,VE116"
    "Vary" => "Accept,Vimeo-Client-Id,Accept-Encoding"
  ]
]

Any help would be appreciated, I am using Laravel 5.8 with Latest vimeo-laravel bridge package.

Getting memory allocation issues

I am working on an article of how to upload videos in a Laravel web app, and keep running into the issue below when trying to upload "large" videos.

[2019-05-24 22:55:35] local.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 104857624 bytes) {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 1): Allowed memory size of 134217728 bytes exhausted (tried to allocate 104857624 bytes) at C:\\laragon\\www\\vimeo\\vendor\\ankitpokhrel\\tus-php\\src\\File.php:413)
[stacktrace]

As the error suggests it is running out of memory, but it is also saying it's attempting to allocate less bytes than the max...? Can't seem to make heads or tails of it.

My example project repo is here and all configured for testing, and the draft article is here.

Any help, tips, or suggestions would be greatly appreciated. Willing to submit a PR if I can figure out where the issue is coming from.

POST request to bypass storing video on local server

How can your package be used to bypass storing the file on a local server and upload directly to Vimeo?
I want the user to be able to upload a file directly to Vimeo bypassing storing it on my server using your package.

No uri returned on upload

Using Laravel 5.6.34
My video uploads fine (I can see it either queuing in the vimeo video list or finished uploading) but I'm not getting a URI back from the API call.

The code I'm using is:

if($request->vimeo` == 1){
                $vimeo_result = $this->vimeo_upload($new_path,$item);
                Log::Debug('Vimeo Result: '.$vimeo_result);
            }

From what I can see - the Log::Debug for $vimeo_result should be giving me the URI of the newly uploaded video.

Love the implementation by the way, excellent!

edit: fixed format

Dynamically set access_token?

I've created a multi-user web app, and I'm storing each user's Vimeo token in the database.

Is there a way to dynamically set the access_token for a Vimeo connection?

Thank you in advance for your assistance — and for creating this project!

upload video

I've tried to upload video without success using this code:
$video = public_path('Wildog.mp4');
$u = Vimeo::upload($video);

My laravel version is 5.6, installed with composer.
Php 7.1.14

I can't figured out, I have no error and in my vimeo account the video is created (empty).
The page seems "loading" but no one single byte is transferred to vimeo.

Parameters (name, permissions)

When adding parameters like in the official package and as you've mentioned in a previous ticket marked resolved it just returns...

Unable to get an upload ticket.[You have provided an invalid parameter. Please contact developer of this application.]

Is it just not possible with this library to pass things like name??

Add better tests

This is important. The tests should be integrated with Laravel.

Version Issue Workaround for "invalid_bucket"

Currently installation is broken due to the peer dependency tus @ v0.1.0 which hard requires carbon v1 as seen here: https://packagist.org/packages/ankitpokhrel/tus-php#v0.1.0

image
image

aliasing carbon before you require the laravel package with:

composer require "nesbot/carbon:2.26 as 1.25.0"

solves this issue for now. but should be fixed on package side.

after that a fresh install of the package gives the correct 3.0.2 version:

composer require "vimeo/laravel"
Using version ^5.4 for vimeo/laravel
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 4 installs, 0 updates, 0 removals
  - Installing ankitpokhrel/tus-php (v0.1.0): Loading from cache
  - Installing vimeo/vimeo-api (3.0.2): Loading from cache
  - Installing graham-campbell/manager (v4.3.0): Loading from cache
  - Installing vimeo/laravel (5.4.1): Loading from cache

solving all kinds of issues related to invalid_bucket

Laravel 5.8 support?

Hi, can u support 5.8 in packagist, please? cant pull this package with new release.

Laravel 5.8 vendor publish

Hello,

I followed the instructions and when I got to the vendor publish part it won't create an vimeo.php in config.

Am I doing something wrong?

image
image

Unable to upload video sometimes

Sometimes unable to upload video on my vimeo pro account. what's the issue?
no errors. no blockages still don't get response.

Installation Process with Laravel 4

At this point "php artisan vendor:publish" I get "There are no commands defined in the "vendor" namespace.

So I copied the \vendor\vinkla\vimeo\src\config\config.php to \app\config\vimeo.php because that's what the command was supposed to do, right?

I inserted my identifier, code and token there but the basic example:
Vimeo::request('/me/videos', ['per_page' => 10], 'GET');

Just gives me:
array(3) { ["body"]=> NULL ["status"]=> int(0) ["headers"]=> array(0) { } }

Now I am lost.

Can you point me in the right direction? I don't know where to start to get a response from the api.
My goal ist to get infos about my videos which are not shown on vimeo and only embeddable on my site.

Can't install this for Laravel 5.5

 Problem 1
    - Installation request for vimeo/laravel ^5.0 -> satisfiable by vimeo/laravel[5.0.0].
    - Conclusion: remove laravel/framework v5.5.35
    - Conclusion: don't install laravel/framework v5.5.35
    - vimeo/laravel 5.0.0 requires illuminate/contracts 5.6.* -> satisfiable by illuminate/contracts[v5.6.0, v5.6.1, v5.6.2, v5.6.3, v5.6.4, v5.6.5].
    - don't install illuminate/contracts v5.6.0|don't install laravel/framework v5.5.35
    - don't install illuminate/contracts v5.6.1|don't install laravel/framework v5.5.35
    - don't install illuminate/contracts v5.6.2|don't install laravel/framework v5.5.35
    - don't install illuminate/contracts v5.6.3|don't install laravel/framework v5.5.35
    - don't install illuminate/contracts v5.6.4|don't install laravel/framework v5.5.35
    - don't install illuminate/contracts v5.6.5|don't install laravel/framework v5.5.35
    - Installation request for laravel/framework (locked at v5.5.35, required as 5.5.*) -> satisfiable by laravel/framework[v5.5.35].

Do your package really needs Eloquent 5.6.* ?

Manager Class?

Have you considered using my manager package to allow you to easily have multiple connections to vimeo?

Add suport for Laravel newest versions.

- vinkla/vimeo 3.4.0 requires illuminate/support 5.1.* || 5.2.* || 5.3.* -> satisfiable by laravel/framework[v5.3.30], illuminate/support[v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4].

Laravel 7 support

I tried to install the version 5.5 package, but it still has the same compatibility problem as the other versions. Has anyone managed to install on the Laravel 7 version?
Anotação 2020-03-10 183341

Add configuration for chunk size

Please add a config param for $default_chunk_size in \vimeo\vimeo-api\src\Vimeo\Vimeo.php, so that we can set a value that suits our needs. 100MB is not a reasonable value for some servers resulting in an Exception "cURL error 55: SSL_write() returned SYSCALL"

You must provide a valid authenticated access token

I saw that someone else already reported this issue and even when your answer was not very friendly to him I was wondering if you already figure it out?

I am wondering if this is related to the domain that I register when I registered the app, but I am confuse because they say that you can enter anyone if you are in develop environment.

 'connections' => [

        'main' => [
            'client_id' =>  env('VIMEO_CLIENT_ID'),
            'client_secret' => env('VIMEO_CLIENT_SECRET'),
            'access_token' => null,
        ],

        'alternative' => [
            'client_id' => 'your-client-id',
            'client_secret' => 'your-client-secret',
            'access_token' => null,
        ],

    ],

VimeoUploadException in Vimeo.php line 365:

HI,
I just add your script in laravel application, setup vimeo keys and try to upload, but get this error. Can you help me?

VimeoUploadException in Vimeo.php line 365:

Unable to get an upload ticket.[You must provide a valid authenticated access token.]

Streaming uploads

Can you please post some example of Streaming uploads. I can't see that much help in your documentation. @vinkla @

Laravel 5.6 installation

Good day!
When make upgrade upgrade or instalation on Laravel 5.6:

$ /usr/local/bin/composer require vimeo/laravel
Using version ^4.0 for vimeo/laravel
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for vimeo/laravel ^4.0 -> satisfiable by vimeo/laravel[4.0.0].
- Conclusion: remove laravel/framework v5.6.3
- Conclusion: don't install laravel/framework v5.6.3
- vimeo/laravel 4.0.0 requires illuminate/contracts 5.5.* -> satisfiable by illuminate/contracts[v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34].
- don't install illuminate/contracts v5.5.0|don't install laravel/framework v5.6.3
- don't install illuminate/contracts v5.5.16|don't install laravel/framework v5.6.3
- don't install illuminate/contracts v5.5.17|don't install laravel/framework v5.6.3
- don't install illuminate/contracts v5.5.2|don't install laravel/framework v5.6.3
- don't install illuminate/contracts v5.5.28|don't install laravel/framework v5.6.3
- don't install illuminate/contracts v5.5.33|don't install laravel/framework v5.6.3
- don't install illuminate/contracts v5.5.34|don't install laravel/framework v5.6.3
- Installation request for laravel/framework (locked at v5.6.3, required as 5.6.*) -> satisfiable by laravel/framework[v5.6.3].

Installation failed, reverting ./composer.json to its original content.

Vimeo upload failed: Client error

Hello,
we currently have a blocking issue with vimeo/laravel. Our project use laravel 5.8 and while trying to upload a video, we have an error :
Vimeo upload failed: [ "Client error: POST https://files.tus.vimeo.com/files/vimeo-prod-src-tus-eu` resulted in a 400 Bad Request response:\n{"error":"Invalid bucket"}\n\n"
]`

That problem occurs because we use Carbon 2 in our project for an other package and the dependency of vimeo/laravel called vimeo/vimeo-api use ankitpokhrel/tus-php locked to version 0.1.0 that user Carbon 1. But for our package (and for laravel 6), Carbon 2 is needed.
Could you provide a solution ?
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.