A
A
Andr Lw12015-07-07 12:00:18
YouTube
Andr Lw1, 2015-07-07 12:00:18

How to fix an error when working with Youtube API?

Good time of the day!
I am writing a project on Laravel 4.2, I need to upload videos from the site to my Youtube channel using the Youtube API v3.
To do this, I use a ready-made package: packalyst.com/packages/package/evandentremont/lara... I
set everything up, client_id, secret_key are registered in the project. Access_token added to the database, as suggested by the package author.
But when uploading a video:

$data = Input::all();
$data['title'] = 'title';
$data['description'] = 'desc';
$data['tags'] = 'tag';
$data['category_id'] = '2';
$data['status'] = 'unlisted';	
$youtubeVideoId = Youtube::upload($data);

It gives the following error:
Error calling POST https://www.googleapis.com//upload/youtube/v3/vide...
(400) Uploads must be sent to the upload URL.
Re-send this request to https://www.googleapis.com/upload/youtube/v3/video... ,snippet&uploadType=multipart

Second day can't get past this error.
I am attaching a screenshot of the error.
3477d7b60fa64e6bb536391fb8e0b693.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rikcon, 2015-07-07
@lw1

https://www.googleapis.com//upload
You have two slashes after googleapis.com, correct it and it will work)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question