Learn R Programming

rockx (version 0.1.0)

set_username_and_password: Set Username, Password, and Server URL for API Authentication

Description

This function sets the environment variables ROCKX_USERNAME, ROCKX_PASSWORD, and ROCKX_SERVER_URL for authentication and specifying the ODK-X Sync Endpoint.

Usage

set_username_and_password(username, password, server_url)

Value

A message confirming that credentials and server URL have been set.

Arguments

username

A character string containing the API username.

password

A character string containing the API password.

server_url

A character string containing the URL of the ODK-X sync endpoint (e.g., "https://my.sync-endpoint.com").

Examples

Run this code
rockx::set_username_and_password("my_user", "my_password", "https://my.sync-endpoint.com")

Run the code above in your browser using DataLab