user_info: Get user information

Description Usage Arguments Details Value Examples

View source: R/user_info.R

Description

Takes Flickr user ID and returns the profile data.

Usage

1
user_info(user_id)

Arguments

user_id

character. The id of the user you wish to obtain information for.

Details

Uses the flickr.profile.getProfile API method from the Flickr API. See https://www.flickr.com/services/api/flickr.profile.getProfile.html for more information on the API method.

See https://www.pixsy.com/academy/flickr-id/ for a guide on finding your Flickr ID.

When running the function you need an API key saved as photosearcher_key.sysdata in your working directory. If this is the first function you run you will be prompted to create and enter your API key. The API key will then be saved as photosearcher_key.sysdata in your working directory and is used for all function.

Value

data.frame. Dataframe of 5 variables from the searched users publicly available information: id, occupation, hometown, city, country.

Examples

1
2
3
4
## Not run: 
user_info(user_id = "155421853@N05")

## End(Not run)

nfox29/photosearcher documentation built on April 27, 2020, 10:34 p.m.