Skip to contents

Retrieves the profile information of the currently authenticated user.

Usage

api_user_profile(credentials)

Arguments

credentials

An ApiCredentials object from api_login().

Value

A named list with fields: email, first_name, last_name, organization, role, last_login.

See also

api_login() to retrieve credentials.

api_user_update_profile() to update profile information.

Examples

if (FALSE) { # \dontrun{
creds <- api_login("https://api.example.com", "user@example.com", "password")
api_user_profile(creds)
} # }