parse_response {rPDBapi}R 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.


[Package rPDBapi version 2.1 Index]