[英]Tweepy find spaces by user ID
Is there a way to search for a spaces by user id?有没有办法通过用户 ID 搜索空间? I tried different values in the query but it didn't work.我在查询中尝试了不同的值,但没有用。
client = tweepy.Client(bearer_token=BEARER_TOKEN,
consumer_key=CONSUMER_KEY,
consumer_secret=CONSUMER_SECRET,
access_token=ACCESS_TOKEN,
access_token_secret=ACCESS_TOKEN_SECRET)
space_url = client.get_space( id="ID_NUMBER")
You seem to be looking for the get_spaces method.您似乎在寻找get_spaces方法。
spaces = client.get_spaces(user_ids="ID_NUMBER")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.