Skip to content
Permalink
Browse files Browse the repository at this point in the history
Add playlist attachment type (#378)
* Add playlist attachment type

* add viewCountText to video object
  • Loading branch information
ChunkyProgrammer committed May 21, 2023
1 parent 01ec20f commit cf0b631
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/api/channels_endpoint.md
Expand Up @@ -140,7 +140,7 @@ Please refer to the [Community Post Attachment types](#community-post-attachment
{
"authorId": String,
"comments": {
"attachment": ImageAttachment | MultiImageAttachment | VideoAttachment | PollAttachment
"attachment": ImageAttachment | MultiImageAttachment | VideoAttachment | PollAttachment | PlaylistAttachment
"author": String,
"authorIsChannelOwner": Boolean
"authorId": String,
Expand All @@ -161,6 +161,9 @@ Please refer to the [Community Post Attachment types](#community-post-attachment
__VideoAttachment__
See [VideoObject](./common_types.md#videoobject) common type

__PlaylistAttachment__
See [PlaylistObject](./common_types.md#playlistobject) common type

__ImageAttachment__

```javascript
Expand Down
3 changes: 2 additions & 1 deletion docs/api/common_types.md
Expand Up @@ -46,6 +46,7 @@
"descriptionHtml": String,
"viewCount": Number, // Integer
"viewCountText": String,
"lengthSeconds": Number, // Integer
"published": Number, // Unix timestamp
Expand Down Expand Up @@ -85,7 +86,7 @@
```


### PlaylistOject
### PlaylistObject

```javascript
{
Expand Down

0 comments on commit cf0b631

Please sign in to comment.