Learn R Programming

instaR (version 0.2.4)

getUser: Get basic information about a user

Description

getUser retrieves public information about Instagram user

Usage

getUser(username, token, userid = NULL)

Arguments

username
String, screen name of user.
token
An OAuth token created with instaOAuth.
userid
Numeric ID of user.

Details

IMPORTANT: After June 1st, 2016 only applications that have passed permission review by Instagram will be allowed to access data for users other than the authenticated user. See https://www.instagram.com/developer/review/ for more information.

Examples

Run this code
## Not run: 
# ## See examples for instaOAuth to know how token was created.
# ## Capturing information about @barackobama
#  load("my_oauth")
#  obama <- getUser( username="barackobama", token=my_oauth,)
# ## End(Not run)

Run the code above in your browser using DataLab