|
@@ -32,7 +32,7 @@ class YoutubeService implements SmmPlatformInterface
|
|
|
$this->client->setRedirectUri(env('DIST_SITE_URL').'/dist/callback/youtube');
|
|
|
$this->client->setScopes([
|
|
|
Google_Service_YouTube::YOUTUBE_UPLOAD,
|
|
|
- Google_Service_YouTube::YOUTUBE,
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -126,6 +126,8 @@ class YoutubeService implements SmmPlatformInterface
|
|
|
$snippet->setDescription($snippetData['description']);
|
|
|
$snippet->setTags($snippetData['tags']);
|
|
|
$snippet->setCategoryId($snippetData['categoryId']);
|
|
|
+
|
|
|
+
|
|
|
|
|
|
$status = new Google_Service_YouTube_VideoStatus();
|
|
|
$status->setPrivacyStatus('public');
|