api_query: Query construction

Description Usage Arguments See Also Examples

View source: R/query.R

Description

Query construction

Usage

1
2
3

Arguments

.data

Result of a call to api

...

Comma separated list of unquoted variable names

.dots

Used to work around non-standard evaluation

See Also

Other dsl: api_body, api_config, api_error_handler, api_path, api_template, api, auth

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Not run: 
## NSE
api("http://api.plos.org/search") %>%
  api_query(q = ecology, wt = json, fl = 'id,journal') %>%
  peep

api("http://api.plos.org/search") %>%
  api_query(q = ecology, wt = json, fl = id, fl = journal) %>%
  peep

## SE
api("http://api.plos.org/search") %>%
  api_query_(q = "ecology", wt = "json", fl = 'id', fl = 'journal') %>%
  peep

## NSE
api("http://api.plos.org/search") %>%
  api_query(q = ecology, wt = json, fl = 'id,journal')
## SE
api("http://api.plos.org/search") %>%
  api_query_(q = "ecology", wt = "json", fl = 'id', fl = 'journal')

## End(Not run)

sckott/request documentation built on Aug. 11, 2018, 6:11 p.m.