Learn R Programming

gofigR (version 1.1.3)

login_with_api_key: Prompts the user for an API key or interactively creates a new one.

Description

Given a password-authenticated GoFigr client, this helper either accepts an existing API key entered by the user or creates a new API key via the API. The newly created key is associated with the authenticated user.

Usage

login_with_api_key(gf, max_attempts)

Value

A character string containing a valid API key, either supplied by the user or newly created.

Arguments

gf

Password-authenticated GoFigr client created by `gofigr_client()`.

max_attempts

Maximum number of attempts when validating a user- supplied API key.