Skip to content

Commit

Permalink
Update document for the initialization more
Browse files Browse the repository at this point in the history
  • Loading branch information
kangkyu committed Apr 9, 2020
1 parent b08ba0f commit 03faefb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions CHANGELOG.md
Expand Up @@ -6,8 +6,7 @@ For more information about changelogs, check
[Keep a Changelog](http://keepachangelog.com) and
[Vandamme](http://tech-angels.github.io/vandamme).


## Unreleased
## 0.33.0 - Unreleased

If your code calls reports methods such as `views`, `likes`, or `reports`,
do not include `by: :week` option since `7DayTotals` dimension will no longer be
Expand All @@ -20,6 +19,11 @@ If you keep using `by: :week` option after this change it will raise an error
the gem upgrade, like any other random input).

* [REMOVAL] Remove `by: :week` option for reports.
* [FEATURE] Add back the option of initializing a resource by its URL.

**Breaking change**

If your code is using constant `Yt::URL::CHANNEL_PATTERNS` etc then it's moved to `Yt::Resource::CHANNEL_PATTERNS`, `Yt::Resource::VIDEO_PATTERNS`, and `Yt::Resource::PLAYLIST_PATTERNS`.

## 0.32.6 - 2020-02-07

Expand All @@ -43,10 +47,6 @@ the gem upgrade, like any other random input).
* [FEATURE] Get one asset [by request](https://developers.google.com/youtube/partner/docs/v1/assets/get) (thank you @jcohenho)
* [FEATURE] Add `update` method to Yt::Claim (thank you @jcohenho)

**Breaking change**

If your code is using constant `Yt::URL::CHANNEL_PATTERNS` etc then it's moved to `Yt::Resource::CHANNEL_PATTERNS` etc.

## 0.32.3 - 2019-03-15

* [ENHANCEMENT] Add `Yt::URL` to get id, kind, and its resource (channel, video, playlist)
Expand Down
8 changes: 4 additions & 4 deletions YOUTUBE_IT.md
Expand Up @@ -141,7 +141,7 @@ client = YouTubeIt::Client.new
client.videos_by(:query => "penguin", :author => "liz")
# with yt: the 'author' filter was removed from YouTube API V3, so the
# request must be done using the channel of the requested author
channel = Yt::Channel.new id: 'UCxxxxxxxxx'
channel = Yt::Channel.new url: 'youtube.com/liz'
channel.videos.where(q: 'penguin')
```

Expand Down Expand Up @@ -176,7 +176,7 @@ client = YouTubeIt::Client.new
client.videos_by(:user => 'liz')
# with yt: the 'author' filter was removed from YouTube API V3, so the
# request must be done using the channel of the requested author
channel = Yt::Channel.new id: 'UCxxxxxxxxx'
channel = Yt::Channel.new url: 'youtube.com/liz'
channel.videos.where(q: 'penguin')
```

Expand All @@ -188,7 +188,7 @@ client = YouTubeIt::Client.new
client.videos_by(:favorites, :user => 'liz')
# with yt: note that only *old* channels have a "Favorites" playlist, since
# "Favorites" has been deprecated by YouTube in favor of "Liked Videos".
channel = Yt::Channel.new id: 'UCxxxxxxxxx'
channel = Yt::Channel.new url: 'youtube.com/liz'
channel.related_playlists.find{|p| p.title == 'Favorites'}
```

Expand Down Expand Up @@ -832,4 +832,4 @@ TODO
$ client.activity(user) #default current user
-->
-->

0 comments on commit 03faefb

Please sign in to comment.