0

一些 Tweeter 用户可以获得直接消息,而有些则不能。我想要一个机器人,它可以在不发送消息的情况下找到可以获取 DM 的用户。这是一个选择吗?

这些是用户的论点:

blocked_by
blocking
contributors_enabled
created_at datetime.datetime(2009, 7, 27, 10, 25, 17) default_profile
default_profile_image
description entities favourites_count
follow_request_sent
followers_count following
friends_count
geo_enabled
has_extended_profile
id
id_str
is_translation_enabled
is_translator
lang
listed_count location muting
name
notifications
profile_background_color
profile_background_image_url profile_background_image_url_https profile_background_tile
profile_banner_url profile_image_url profile_image_url_https profile_link_color
profile_sidebar_border_color
profile_sidebar_fill_color
profile_text_color
profile_use_background_image
protected
screen_name status
statuses_count
time_zone
translate_url
utc_offset
已验证
withheld_in_countries

4

1 回答 1

0

v2 中还没有这样的功能。但在 v1.1 中,它在GET friendships/show. 响应包括参数can_dm(即,如果您可以 DM 其他用户)。

参考:https ://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-friendships-show

于 2021-07-07T09:30:52.547 回答