Skip to content

Commit

Permalink
add comment about yt_outh to all man pages
Browse files Browse the repository at this point in the history
  • Loading branch information
soodoku committed Nov 10, 2016
1 parent 214b88d commit e0e3f58
Show file tree
Hide file tree
Showing 45 changed files with 137 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# version 0.6.0

* Based on CRAN feedback, add comment about yt_outh to all man pages
* video_id is returned as part of the list for get_stats, get_video_details
* handles errors stemming from bad video id for get_stats, get_video_details
* fixed bug in get_comment that delivers separate results for diff. filters, error handling for bad comment_id, and now comment_id returned as part of df
Expand Down
3 changes: 3 additions & 0 deletions R/get_captions.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#'
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' get_captions(video_id="yJXTXN4xrI8")
#' get_captions(id="y3ElXcEME3lSISz6izkWVT5GvxjPu8pA")
#' }
Expand Down
3 changes: 3 additions & 0 deletions R/get_channel_stats.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
#'
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' get_channel_stats(channel_id="UChTJTbr5kf3hYazJZO-euHg")
#' }

Expand Down
3 changes: 3 additions & 0 deletions R/get_comment_threads.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
#'
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' get_comment_threads(filter = c(video_id="N708P-A45D0"))
#' }

Expand Down
3 changes: 3 additions & 0 deletions R/get_comments.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
#'
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' get_comments(filter = c(comment_id="z13dh13j5rr0wbmzq04cifrhtuypwl4hsdk"))
#' get_comments(filter =
#' c(comment_id="z13dh13j5rr0wbmzq04cifrhtuypwl4hsdk, z13dh13j5rr0wbmzq04cifrhtuypwl4hsdk"))
Expand Down
3 changes: 3 additions & 0 deletions R/get_playlist_items.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
#'
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' get_playlist_items(filter= c(playlist_id="PLrEnWoR732-CN09YykVof2lxdI3MLOZda"))
#' }

Expand Down
3 changes: 3 additions & 0 deletions R/get_playlists.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
#'
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' get_playlists(filter=c(channel_id="UChTJTbr5kf3hYazJZO-euHg"))
#' }

Expand Down
3 changes: 3 additions & 0 deletions R/get_related_videos.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#' @references \url{https://developers.google.com/youtube/v3/docs/search/list}
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' get_related_videos(video_id="yJXTXN4xrI8")
#' }

Expand Down
3 changes: 3 additions & 0 deletions R/get_stats.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
#'
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' get_stats(video_id="N708P-A45D0")
#' }

Expand Down
3 changes: 3 additions & 0 deletions R/get_subscriptions.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
#'
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' get_subscriptions(filter=c(channel_id="UChTJTbr5kf3hYazJZO-euHg"))
#' }

Expand Down
3 changes: 3 additions & 0 deletions R/get_video_details.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' get_video_details(video_id="yJXTXN4xrI8")
#' }

Expand Down
3 changes: 3 additions & 0 deletions R/list_abuse_report_reasons.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#' @references \url{https://developers.google.com/youtube/v3/docs/videoAbuseReportReasons/list}
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' list_abuse_report_reasons()
#' list_abuse_report_reasons(part="id")
#' list_abuse_report_reasons(part="snippet")
Expand Down
3 changes: 3 additions & 0 deletions R/list_caption_tracks.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
#'
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' list_caption_tracks(video_id="yJXTXN4xrI8")
#' }

Expand Down
3 changes: 3 additions & 0 deletions R/list_channel_activities.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
#'
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' list_channel_activities(filter = c(channel_id="UCRw8bIz2wMLmfgAgWm903cA"))
#' list_channel_activities(filter = c(channel_id="UCRw8bIz2wMLmfgAgWm903cA", regionCode="US"))
#' }
Expand Down
3 changes: 3 additions & 0 deletions R/list_channel_resources.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
#' @examples
#'
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' list_channel_resources(filter = c(channel_id = "UCT5Cx1l4IS3wHkJXNyuj4TA"))
#' list_channel_resources(filter = c(username = "latenight"), part="id, contentDetails")
#' list_channel_resources(filter = c(username = "latenight"), part="id, contentDetails",
Expand Down
3 changes: 3 additions & 0 deletions R/list_channel_sections.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
#' @examples
#'
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' list_channel_sections(c(channel_id="UCRw8bIz2wMLmfgAgWm903cA"))
#' }

Expand Down
3 changes: 3 additions & 0 deletions R/list_channel_videos.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
#' @examples
#'
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' list_channel_videos(channel_id = "UCT5Cx1l4IS3wHkJXNyuj4TA")
#' list_channel_videos(channel_id = "UCT5Cx1l4IS3wHkJXNyuj4TA", max_results=10)
#' }
Expand Down
3 changes: 3 additions & 0 deletions R/list_guidecats.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
#'
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' list_guidecats(c(region_code = "JP"))
#' }

Expand Down
8 changes: 7 additions & 1 deletion R/list_langs.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
#' List Languages That Youtube Currently Supports
#'
#' @return data.frame with 3 columns: hl (two letter abbreviation), name (of the language), etag
#' @param hl Language used for text values. Optional. Default is \code{en-US}. For other allowed language codes, see \code{\link{list_langs}}.
#' @param \dots Additional arguments passed to \code{\link{tuber_GET}}.
#'
#' @return data.frame with 3 columns: hl (two letter abbreviation), name (of the language), etag
#'
#' @export
#'
#' @references \url{https://developers.google.com/youtube/v3/docs/i18nLanguages/list}
#'
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' list_langs()
#' }

Expand Down
3 changes: 3 additions & 0 deletions R/list_regions.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#' @references \url{https://developers.google.com/youtube/v3/docs/i18nRegions/list}
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' list_regions()
#' }

Expand Down
3 changes: 3 additions & 0 deletions R/list_videocats.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
#'
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' list_videocats(c(region_code = "JP"))
#' }

Expand Down
3 changes: 3 additions & 0 deletions R/list_videos.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#' @references \url{https://developers.google.com/youtube/v3/docs/search/list}
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' list_videos()
#' }

Expand Down
3 changes: 3 additions & 0 deletions R/yt_topic_search.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#' @export
#' @examples
#' \dontrun{
#'
#' # Set API token via yt_oauth() first
#'
#' yt_topic_search(topic="Barack Obama")
#' }

Expand Down
3 changes: 3 additions & 0 deletions man/get_captions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/get_channel_stats.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/get_comment_threads.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/get_comments.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/get_playlist_items.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/get_playlists.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/get_related_videos.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/get_stats.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/get_subscriptions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/get_video_details.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/list_abuse_report_reasons.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/list_caption_tracks.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/list_channel_activities.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/list_channel_resources.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/list_channel_sections.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/list_channel_videos.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e0e3f58

Please sign in to comment.