api_handle_response: Handle an API response

View source: R/api_url.R

api_handle_responseR Documentation

Handle an API response

Description

Fail, with information, if the status code is not 200. Return the parsed response content otherwise.

Usage

api_handle_response(x)

Arguments

x

an httr::response object.


ecotaxa/ecotaxar documentation built on Jan. 25, 2024, 2:08 p.m.