init_AuthState {gargle} | R Documentation |
Constructor function for objects of class AuthState.
init_AuthState( package = NA_character_, app = NULL, api_key = NULL, auth_active = TRUE, cred = NULL )
package |
Package name, an optional string. The associated package will
generally by implied by the namespace within which the |
app |
A Google OAuth client, preferably constructed via
|
api_key |
Optional. API key (a string). Some APIs accept unauthorized, "token-free" requests for public resources, but only if the request includes an API key. |
auth_active |
Logical. |
cred |
Credentials. Typically populated indirectly via |
An object of class AuthState.
my_client <- gargle_oauth_client( id = "some_long_client_id", secret = "ssshhhhh_its_a_secret", name = "my-nifty-oauth-client" ) init_AuthState( package = "my_package", app = my_client, api_key = "api_key_api_key_api_key", )