getComments: getComments

Description Usage Arguments Details Author(s) Examples

Description

Returns a list of comments that match the API request parameters.

Usage

1
2
getComments(token, part = "snippet", n = 50, max.results = 50, id,
  parent.id, text.format = "html", verbose = FALSE)

Arguments

token

Your token as returned by youOAuth.

part

The part parameter specifies a comma-separated list of one or more activity resource properties that the API response will include. The default value is snippet, can take any of snippet or id. See findParts.

n

Number of results to fecth. The default value is 50.

max.results

Specifies the maximum number of results that should be returned by each API call. Acceptable values are 0 to 50, inclusive. The default value is 50.

id

Specifies a comma-separated list of comment IDs for the resources that are being retrieved. In a comment resource, specifies the comment's ID.

parent.id

Specifies the ID of the comment for which replies should be retrieved. Note: YouTube currently supports replies only for top-level comments. However, replies to replies may be supported in the future.

text.format

Indicates whether the API should return comments formatted as HTML or as plain text. The default value is html.

verbose

If TRUE prints infromational messages in the console. The default value is FALSE.

Details

Must specify one (and only one) of id or parent.id.

Author(s)

John Coene jcoenep@hotmail.com

Examples

1
2
3
4
5
6
## Not run: 
# Authenticate
token <- youOAuth(client.id = "something.apps.googleusercontent.com",
                  client.secret = "XxxXX1XxXxXxxx1xxx1xxXXX")

## End(Not run)

JohnCoene/youTubeDataR documentation built on May 7, 2019, 11:59 a.m.