After hours of searching, i've did'nt found a solution yet. The most relevant post i've found is : Youtube API : Service account
According to this part of the Google documentation : here
That i've read is that YT API did not support Service Accounts, so i've found no other solution yet.
There is any way to uploading videos to specific Google (YT) account, without ask the users of my service to log to their Google account ? The fact is that I want to any users on my website can upload some videos in private mode to my Youtube account, but google, when creating the client though this portion of code :
$client = new Google_Client();
$key = file_get_contents("some/path/to/".KEY_FILE);
$client->setClientId(CLIENT_ID);
$client->setAssertionCredentials(
new Google_AssertionCredentials(
SERVICE_ACCOUNT_NAME,
array('https://www.googleapis.com/auth/youtube'),
$key
)
);
$client->setRedirectUri('some_url');
$client->setDeveloperKey('some_DEV_KEY');
request to my user to get logged in with his own Google account...
Any way to bypass this login request by enter my own credentials in the code ?
Sorry for not-so-good english, and thank you.