parse_response: Parse API Response

View source: R/parse_response.R

parse_responseR Documentation

Parse API Response

Description

This function parses the content of an HTTP response based on the specified format. It supports JSON and plain text formats.

Usage

parse_response(response, format = "json")

Arguments

response

An HTTP response object.

format

A string indicating the expected response format ("json" or "text").

Value

Parsed content from the response.


rPDBapi documentation built on Oct. 19, 2024, 5:08 p.m.