Description Usage Arguments Value
Mostly meant for internal socialsampler
use. Loads all
tokens from the token database, or the token registered
with rtweet
if not tokens have been registered with
socialsampler
, creates the corresponding bearer tokens
(see rtweet::bearer_token()
), and returns the token
that can serve meet the requests. If no tokens meet
these requirements, waits until the minimum amount
until the API rate limits reset for a token in the token
database.
1 | find_token(query, requests)
|
query |
The API endpoint you want to query. See https://developer.twitter.com/en/docs/basics/rate-limits. |
requests |
How many requests you need to make. |
A token that make the API request while respecting Twitter API rate limits.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.