check_user_id: Validate a User Id

Description Usage Arguments Examples

Description

This function checks whether a supplied user_id fits the pattern of one, mostly to alert users when supplying a username instead of an id.

Usage

1
check_user_id(user_id)

Arguments

user_id

numeric; the unique id to identify an Instagram user which can be found in the "pk" field on a user object

Examples

1
2
3
4
5
6
# check with a real user id
bieber_user_id <- 6860189 # returned using ig_get_user_id("justinbieber")
check_user_id(bieber_user_id)

# this will return a warning that we need a User Id, not a Username
#check_user_id("justinbieber")

eric88tchong/Rinstapkg documentation built on June 12, 2019, 1:06 p.m.