Learn R Programming

consibiocloudclient (version 1.0.0)

get_api_url: Get API URL from environment variable

Description

This function retrieves the API URL from the environment variable named "CONSIBIO_API_HOST", if it is set. If the environment variable is not set, it set and returns a default URL. Optionally, it can append a path to the URL.

Usage

get_api_url(path = NULL)

Value

A character string representing the API URL.

Arguments

path

A character string representing the API URL.

Examples

Run this code
if (FALSE) {
get_api_url("/users/me")
}

Run the code above in your browser using DataLab