client_as {rtweet} | R Documentation |
Set default client for the current session
Description
client_as()
sets up the default client used by rtweet API calls with PKCE. See rtweet_user()
to learn more about the three
available authentication options.
Usage
client_as(client = NULL)
Arguments
client |
One of the following options:
|
Value
Invisibly returns the previous authentication mechanism.
See Also
Other client:
client_get()
,
client_has_default()
,
client_save()
Examples
## Not run:
# Use app auth for the remainder of this session:
my_app <- rtweet_app()
auth_as(my_app)
# Switch back to the default user based auth
client_as()
client_list()
## End(Not run)
[Package rtweet version 2.0.0 Index]