sync_x_list_members
Documentation for eth_defi.feed.twitter_api.sync_x_list_members function.
- sync_x_list_members(list_id, twitter_handles, consumer_key, consumer_secret, access_token, access_token_secret, user_cache, bearer_token, db, *, add_delay_seconds=1.0, rate_limit_sleep_max_seconds=1200.0, suspended_member_callback=None)
Sync X list membership with the provided Twitter handles.
Only runs when the set of handles has changed (hash-based detection using
feed_sync_statetable). Returns the number of members added.Requires full OAuth 1.0a credentials for list write operations.
- Parameters
suspended_member_callback (Optional[Callable[[str, str], None]]) – Optional callback called as
callback(handle, user_id)when X resolves a handle but refuses to add it to the list because the account is suspended. Scanner orchestration uses this to stamp the existingtwitter-handle-resolved-unknown-atYAML marker.list_id (str) –
consumer_key (str) –
consumer_secret (str) –
access_token (str) –
access_token_secret (str) –
user_cache (eth_defi.feed.twitter_api.TwitterUserCache) –
bearer_token (str) –
add_delay_seconds (float) –
rate_limit_sleep_max_seconds (float) –
- Return type