Parser: Download api v2 parser

ParserR Documentation

Download api v2 parser

Description

Parse the JSON response from cube/report v2 download api and convert the data into a R data frame

Public fields

response

JSON response from the cube/report v2 download api

Active bindings

response

JSON response from the cube/report v2 download api

Methods

Public methods


Method new()

Usage
Parser$new(response)

Method parse()

Usage
Parser$parse(response)

Method to_dataframe()

Usage
Parser$to_dataframe()

Method clone()

The objects of this class are cloneable with this method.

Usage
Parser$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

## Not run: 
# Create a parser object
p <- Parser$new(response)

# Parse the first request
p$parse(response)

# Return the data frame
p$to_dataframe()

## End(Not run)

mstrio documentation built on April 13, 2022, 5:07 p.m.