Learn R Programming

tm1r (version 1.1.8)

tm1_api_request: 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

Run this code
# 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")

# }

Run the code above in your browser using DataLab