result_handlers: Simple functions to handle http response

Description Usage Arguments Details Value Functions Examples

Description

When creating operations from api one can define how the response from http should be handled. These functions can be used for simple result handling.

Usage

1
2
3
4
5

Arguments

x

A response object from httr package (see response object in httr package documentation)

Details

See get_operations for details.

Value

Content of http response

Functions

Examples

1
2
3
4
## Not run: 
operations <- get_operations(api, handle_response = content_or_stop)

## End(Not run)

rapiclient documentation built on Jan. 18, 2020, 1:10 a.m.