pbiQueryBuilder: Build simple REST API queries.

Description Usage Arguments Value Examples

View source: R/pbiQueryBuilder.R

Description

An internal function that acts as a skeleton for building API queries for other functions. This will only work when you have authenticated first.

Usage

1
2
3
pbiQueryBuilder(endpoint, guid = NULL, object = NULL, suffix = NULL,
  method = "GET", version = "v1.0", printCall = FALSE,
  getContent = TRUE)

Arguments

endpoint

Which endpoint of the API to query.

guid

When required, supply a guid. This will often be provided by a loop.

object

Usually reserved for table names, but will be the child of an endpoint (like datasets) or a guid.

suffix

Usually "rows", goes at the end of the URL.

method

Default is GET.

version

The API version.

printCall

Print the URL of the API call used for debugging.

getContent

If TRUE, extract JSON from the response object.

Value

HTTP response object.

Examples

1
## Not run: pbiQueryBuilder(endpoint = "datasets")

olfrost/poweRbi documentation built on May 6, 2019, 6:05 p.m.