lookupEntity: Function to lookup a single entity over the Entity Lookup API...

Description Usage Arguments Value Author(s) Examples

View source: R/lookupEntity.R

Description

Function to lookup a single entity over the Entity Lookup API Endpoint

Usage

1
2
3
4
5
6
7
lookupEntity(
  id,
  path,
  card = "fields",
  please_parse = TRUE,
  print_error = TRUE
)

Arguments

id

UUID or permalink of the person you wish to look up

path

The path to the entity e.g. organizations, people, etc.

please_parse

TRUE or FALSE. By default TRUE. If set to FALSE, it will return the data directly from the JSON, if set to TRUE, it will parse it into a data.frame object

print_error

Logical. Default to TRUE and thus if the request fails, an error will be printed out.

Value

either a data.frame (if parse = TRUE) or a list (if parse = FALSE)

Author(s)

Layla Rohkohl, byehity@gmail.com

Examples

1
lookupEntity("facebook", "organizations", please_parse = T)

Lyrohk/cruncher documentation built on Dec. 17, 2021, 1:17 a.m.