Skip to content

Commit ea7a8cf

Browse files
1 parent dbc9618 commit ea7a8cf

File tree

4 files changed

+41
-0
lines changed

4 files changed

+41
-0
lines changed

src/YouTube.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
565565
'location' => 'query',
566566
'type' => 'string',
567567
],
568+
'postId' => [
569+
'location' => 'query',
570+
'type' => 'string',
571+
],
568572
'searchTerms' => [
569573
'location' => 'query',
570574
'type' => 'string',

src/YouTube/CommentSnippet.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ class CommentSnippet extends \Google\Model
5353
* @var string
5454
*/
5555
public $parentId;
56+
/**
57+
* @var string
58+
*/
59+
public $postId;
5660
/**
5761
* @var string
5862
*/
@@ -204,6 +208,20 @@ public function getParentId()
204208
{
205209
return $this->parentId;
206210
}
211+
/**
212+
* @param string
213+
*/
214+
public function setPostId($postId)
215+
{
216+
$this->postId = $postId;
217+
}
218+
/**
219+
* @return string
220+
*/
221+
public function getPostId()
222+
{
223+
return $this->postId;
224+
}
207225
/**
208226
* @param string
209227
*/

src/YouTube/CommentThreadSnippet.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ class CommentThreadSnippet extends \Google\Model
3131
* @var bool
3232
*/
3333
public $isPublic;
34+
/**
35+
* @var string
36+
*/
37+
public $postId;
3438
protected $topLevelCommentType = Comment::class;
3539
protected $topLevelCommentDataType = '';
3640
/**
@@ -84,6 +88,20 @@ public function getIsPublic()
8488
{
8589
return $this->isPublic;
8690
}
91+
/**
92+
* @param string
93+
*/
94+
public function setPostId($postId)
95+
{
96+
$this->postId = $postId;
97+
}
98+
/**
99+
* @return string
100+
*/
101+
public function getPostId()
102+
{
103+
return $this->postId;
104+
}
87105
/**
88106
* @param Comment
89107
*/

src/YouTube/Resource/CommentThreads.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public function insert($part, CommentThread $postBody, $optParams = [])
7272
* page in the result set that should be returned. In an API response, the
7373
* nextPageToken and prevPageToken properties identify other pages that could be
7474
* retrieved.
75+
* @opt_param string postId Returns the comment threads of the specified post.
7576
* @opt_param string searchTerms Limits the returned comment threads to those
7677
* matching the specified key words. Not compatible with the 'id' filter.
7778
* @opt_param string textFormat The requested text format for the returned

0 commit comments

Comments
 (0)