Skip to content

Commit

Permalink
return uploaded video
Browse files Browse the repository at this point in the history
  • Loading branch information
0DUDDU committed Jun 3, 2023
1 parent 487760d commit 3ec1b2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/VideoService.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function uploadVideo(
string $privacyStatus = 'private',
array $tags = [],
array $data = []
): bool {
): Video {
/**
* snippet [title, description, tags and category ID]
* asset resource [snippet metadata and type.]
Expand Down Expand Up @@ -145,7 +145,7 @@ public function uploadVideo(
* set defer to false [to make other calls after the file upload]
*/
$this->client->setDefer(false);
return true;
return $insertRequest;
}

public function deleteVideo(string $id, array $params = []): mixed
Expand Down

0 comments on commit 3ec1b2c

Please sign in to comment.