fetch: Fetch a data source.

Description Usage Arguments Value Examples

View source: R/fetch.R

Description

Retrieves a data source by ID (GUID) or by previous list() index from Domo, converts it to a data.frame and returns.

Usage

1
fetch(id, columns = NULL, use.make.names = FALSE, ...)

Arguments

id

A data source id (GUID) or an index from a previous list.

columns

A vector of column names to return from the Domo datasource. (not case sensitive)

...

Additional httr options

Value

A data.frame built from the requested Domo data source.

Examples

1
2
3
4
5
6
7
DomoR::init(Sys.getenv('DOMO_BASE_URL'), Sys.getenv('DEVELOPER_TOKEN'))
df <- DomoR::fetch('4826e3fb-cd23-468d-9aff-96bf5b690247')
DomoR::list_ds(limit=10)
df <- DomoR::fetch(1)
df <- DomoR::fetch('4826e3fb-cd23-468d-9aff-96bf5b690247',
  c('accountid', 'lastname', 'startdate'),
  httr::progress())

domoinc-r/DomoR documentation built on Aug. 8, 2020, 1:42 p.m.