tm1_api_request {tm1r}R Documentation

TM1 API Request

Description

Makes a api request to tm1 server with url and body specified

Usage

tm1_api_request(tm1_connection, url, body ="", type = "GET")

Arguments

tm1_connection

tm1 connection object returned by the function tm1_connection

url

URL address for rest api request

body

body text of request

type

type of api request. Requests in httr package are supported like GET, POST, DELETE, PATCH

Examples

## Not run: 
con_obj <- tm1_connection("localhost", "8881", "admin", "apple")
url <- "https://localhost:8881/api/v1/Cubes('SalesCube')/Dimensions"
tm1_api_request(con_obj, url, type = "GET")


## End(Not run)

[Package tm1r version 1.1.8 Index]