get_resources: Retrieve a resource

Description Usage Arguments Value

View source: R/resources.R

Description

This is function pulls a resource at PSI - MIS web API. It returns a list the content, path, and the response.

Usage

1
get_resources(url = "", type = NULL, id = NULL, ...)

Arguments

url

a character string (or more extended vector, e.g., for the "libcurl." method) naming the base URL of the server.

type

a character string with the name of a resource to pull. e.g data elements, maps, charts. By default it will retrieves all the resource end points available at PSI - MIS.

id

a character string, the id of a specific resource to pull.

...

allow additional arguments to be passed. Example a filter, or a query.

Value

an S3 type object with the content of the resource, path and the response


INyabuto/fixthis documentation built on Jan. 18, 2020, 7:17 p.m.