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 Sept. 11, 2024, 6:37 p.m.