AuthenticationService
AuthenticationService.Rd
Provides methods for authenticating with the PetroVisor API.
Details
This class includes methods to obtain access tokens using various authentication mechanisms such as API keys, user credentials, and refresh tokens.
Examples
if (FALSE) { # \dontrun{
# Create an instance of the AuthenticationService
auth_service <- AuthenticationService$new()
# Get access token using API key
token <- auth_service$get_access_token(
key = "your_api_key",
discovery_url = "https://example.com"
)
# Get access token using username and password
token <- auth_service$get_access_token(
username = "user",
password = "pass",
discovery_url = "https://example.com"
)
# Get access token using refresh token
token <- auth_service$get_access_token(
refresh_token = "your_refresh_token",
discovery_url = "https://example.com"
)
} # }