Learn R Programming

request (version 0.1.0)

api_query: Query construction

Description

Query construction

Usage

api_query(.data, ...)
api_query_(.data, ..., .dots)

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, auth

Examples

Run this code
## 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)

Run the code above in your browser using DataLab