Connect

If you have TWT_API_KEY, TWT_API_SECRET, TWT_ACCESS_TOKEN,
and TWT_ACCESS_SECRET set as environmental variables, you can use
all the methods without explicitly connecting. However, if you want to
explicitly connect beforehand, you can also pass in a connection as
conn to any method:

Pagination

This will keep track of the max_id of each request and iterate
through results until everything has been retrieved (or until otherwise
specified - more below). For each request, it will wait for a defualt of
15 seconds so as to avoid rate limiting.

Custom Options

We’ve added some custom options for each method, they are as follows:

throttle - the time in seconds to wait between each request (only
relevant when paginate = True)

max_requests - the maximum number of requests to make (only
relevant when paginate = True)

wait - the default number of seconds to wait after an error

backoff - the factor to multiply wait by after each error

timeout - the time in seconds at which point we should abandon an
error prone request. Here, birdfeeder will log a warning, but
will otherwise fail silently.