getUserMedia: Extract recent media published by a user.

Description Usage Arguments Author(s) Examples

View source: R/getUserMedia.R

Description

getUserMedia retrieves public media from a given user and, optionally, downloads recent pictures to a specified folder.

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.

Usage

1
2
getUserMedia(username, token, n = 30, folder = NULL, userid = NULL,
  verbose = TRUE)

Arguments

username

String, screen name of user.

token

An OAuth token created with instaOAuth.

n

Maximum number of media to return. Currently it is only possible to download the 20 most recent pictures or videos on the authenticated user's profile, unless Instagram has approved the application.

folder

If different than NULL, will download all pictures to this folder.

userid

Numeric ID of user.

verbose

If TRUE (default), outputs details about progress of function on the console.

Author(s)

Pablo Barbera [email protected]

Examples

1
2
3
4
5
6
7
## Not run: 
## See examples for instaOAuth to know how token was created.
## Capturing information about 50 most recent pictures by @barackobama
 load("my_oauth")
 obama <- getUserMedia( username="barackobama", token=my_oauth, n=50, folder="barackobama")

## End(Not run)

instaR documentation built on May 29, 2017, 10:04 p.m.

Related to getUserMedia in instaR...