parse_response: Parse json response to list

Description Usage Arguments Details Examples

Description

Takes in an object with a class of "response" returned from calling any of the wrapper functions. Also pipe friendly.

Usage

1
parse_response(response)

Arguments

response

A response object

Details

As long as "status": true, returned item would most likely be a deep list, which means apart from the status and message, other elements of the returned lists would be lists as well

Examples

1
2
bank_list <- list_banks(auth$secret)
parse_response(bank_list)

ebinabo/paystack documentation built on May 16, 2019, 8:16 p.m.