Skip to contents

Create connection parameters

Usage

create_connection_params(
  identityurl = "http://localhost:50333/identity/connect/token",
  username = "administrator",
  password = "administrator",
  apihosturl = "http://localhost:50034/unifi/v1",
  install = TRUE
)

Arguments

identityurl

The url to connect to the UNIFI API identity server.

username

The username to connect to the UNIFI API identity server.

password

The password to connect to the UNIFI API identity server.

apihosturl

The url to connect to the UNIFI API server (host).

install

if TRUE, will install the token in your .Renviron file for use in future sessions. Defaults to TRUE.

Value

A list containing all parameters needed for the connection, in a connection_params object.

Details

create_connection_params is an utility function that returns the url and token for UNIFI API connection