This function returns data that would appear in the authenticated user's timeline feed.

ig_my_timeline(max_id = NULL, min_timestamp = NULL,
  ranked_content = TRUE, return_df = TRUE, paginate = TRUE,
  max_pages = 10, verbose = FALSE)

Arguments

max_id

integer; the unique id identifying the oldest post that you would want to retrieve in this function call

min_timestamp

integer, date, or datetime; a value identifying the oldest post by date that you would want to retrieve in this function call. Dates and various datetime objects will be converted into an integer representing time in epoch (seconds since January 1st, 1970) since that is what the API requires

ranked_content

logical; do you want the feed content to be sorted by rank?

return_df

logical; do you want to return the results as a tbl_df with one row per entity or as a list with one element per entity?

paginate

logical; do you want to paginate through results or just return the first page?

max_pages

integer; a limit to the number of pages to retrieve from paginated endpoints. Instagram feeds have the potential to paginate forever, so by default we stop after pulling 10 pages. If you would like more or less pages returned, then modify this argument.

verbose

logical; do you want informative messages?

Value

tbl_df or list

Examples

my_timeline <- ig_my_timeline()
#> The rank_token is NULL in Rinstapkg's internal .state environment. This can occur if the user is authorized using OAuth 2.0, which doesn't require a rank_token, or the user is not yet performed any authorization routine. #> When/if needed, 'Rinstapkg' will initiate authentication and authorization. #> Or run ig_auth() to trigger this explicitly.
#> Error: Status: fail #> Message: login_required