api_query function

Query construction

Query construction

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

Examples

## 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)

See Also

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

  • Maintainer: Scott Chamberlain
  • License: MIT + file LICENSE
  • Last published: 2016-01-03