api_write {request}R Documentation

Write helper

Description

Write helper

Usage

api_write(.data, file, overwrite = FALSE, ...)

Arguments

.data

Result of a call to api

file

(character) Full file path to write to

overwrite

(logical) Will only overwrite existing path if TRUE

...

ignored for now

Examples

## Not run: 
## write to disk
ff <- tempfile(fileext = ".json")
api('https://api.github.com/') %>%
  api_path(repos, ropensci, rgbif, issues) %>%
  api_write(ff)
jsonlite::fromJSON(ff)

## End(Not run)

[Package request version 0.1.0 Index]