Skip to content

Latest commit

 

History

History
1180 lines (672 loc) · 57.9 KB

TwitterWebAPIApi.md

File metadata and controls

1180 lines (672 loc) · 57.9 KB

\TwitterWebAPIApi

All URIs are relative to http://localhost

Method HTTP request Description
FetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGet Get /api/v1/twitter/web/fetch_latest_post_comments 获取最新的推文评论/Get the latest tweet comments
FetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGet_0 Get /api/v1/twitter/web/fetch_latest_post_comments 获取最新的推文评论/Get the latest tweet comments
FetchPostCommentsApiV1TwitterWebFetchPostCommentsGet Get /api/v1/twitter/web/fetch_post_comments 获取评论/Get comments
FetchPostCommentsApiV1TwitterWebFetchPostCommentsGet_0 Get /api/v1/twitter/web/fetch_post_comments 获取评论/Get comments
FetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGet Get /api/v1/twitter/web/fetch_retweet_user_list 转推用户列表/ReTweet User list
FetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGet_0 Get /api/v1/twitter/web/fetch_retweet_user_list 转推用户列表/ReTweet User list
FetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGet Get /api/v1/twitter/web/fetch_search_timeline 搜索/Search
FetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGet_0 Get /api/v1/twitter/web/fetch_search_timeline 搜索/Search
FetchTrendingApiV1TwitterWebFetchTrendingGet Get /api/v1/twitter/web/fetch_trending 趋势/Trending
FetchTrendingApiV1TwitterWebFetchTrendingGet_0 Get /api/v1/twitter/web/fetch_trending 趋势/Trending
FetchTweetDetailApiV1TwitterWebFetchTweetDetailGet Get /api/v1/twitter/web/fetch_tweet_detail 获取单个推文数据/Get single tweet data
FetchTweetDetailApiV1TwitterWebFetchTweetDetailGet_0 Get /api/v1/twitter/web/fetch_tweet_detail 获取单个推文数据/Get single tweet data
FetchUserFollowersApiV1TwitterWebFetchUserFollowersGet Get /api/v1/twitter/web/fetch_user_followers 用户粉丝/User Followers
FetchUserFollowersApiV1TwitterWebFetchUserFollowersGet_0 Get /api/v1/twitter/web/fetch_user_followers 用户粉丝/User Followers
FetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGet Get /api/v1/twitter/web/fetch_user_followings 用户关注/User Followings
FetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGet_0 Get /api/v1/twitter/web/fetch_user_followings 用户关注/User Followings
FetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGet Get /api/v1/twitter/web/fetch_user_highlights_tweets 获取用户高光推文/Get user highlights tweets
FetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGet_0 Get /api/v1/twitter/web/fetch_user_highlights_tweets 获取用户高光推文/Get user highlights tweets
FetchUserMediaApiV1TwitterWebFetchUserMediaGet Get /api/v1/twitter/web/fetch_user_media 获取用户媒体/Get user media
FetchUserMediaApiV1TwitterWebFetchUserMediaGet_0 Get /api/v1/twitter/web/fetch_user_media 获取用户媒体/Get user media
FetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGet Get /api/v1/twitter/web/fetch_user_post_tweet 获取用户发帖/Get user post
FetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGet_0 Get /api/v1/twitter/web/fetch_user_post_tweet 获取用户发帖/Get user post
FetchUserProfileApiV1TwitterWebFetchUserProfileGet Get /api/v1/twitter/web/fetch_user_profile 获取用户资料/Get user profile
FetchUserProfileApiV1TwitterWebFetchUserProfileGet_0 Get /api/v1/twitter/web/fetch_user_profile 获取用户资料/Get user profile
FetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGet Get /api/v1/twitter/web/fetch_user_tweet_replies 获取用户推文回复/Get user tweet replies
FetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGet_0 Get /api/v1/twitter/web/fetch_user_tweet_replies 获取用户推文回复/Get user tweet replies

FetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGet

ResponseModel FetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGet(ctx, tweetId, optional)

获取最新的推文评论/Get the latest tweet comments

[中文] ### 用途: - 获取最新的推文评论 ### 参数: - tweet_id: 推文ID - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 推文评论 # [English] ### Purpose: - Get the latest tweet comments ### Parameters: - tweet_id: Tweet ID - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - Tweet comments # [示例/Example] tweet_id = "1808168603721650364" cursor = None

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
tweetId string 推文ID/Tweet ID
optional *FetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGetOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGetOpts struct

Name Type Description Notes

cursor | optional.String| 游标/Cursor |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGet_0

ResponseModel FetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGet_0(ctx, tweetId, optional)

获取最新的推文评论/Get the latest tweet comments

[中文] ### 用途: - 获取最新的推文评论 ### 参数: - tweet_id: 推文ID - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 推文评论 # [English] ### Purpose: - Get the latest tweet comments ### Parameters: - tweet_id: Tweet ID - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - Tweet comments # [示例/Example] tweet_id = "1808168603721650364" cursor = None

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
tweetId string 推文ID/Tweet ID
optional *FetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGet_1Opts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGet_1Opts struct

Name Type Description Notes

cursor | optional.String| 游标/Cursor |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchPostCommentsApiV1TwitterWebFetchPostCommentsGet

ResponseModel FetchPostCommentsApiV1TwitterWebFetchPostCommentsGet(ctx, tweetId, optional)

获取评论/Get comments

[中文] ### 用途: - 获取推文下的评论 ### 参数: - tweet_id: 推文ID - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 评论 # [English] ### Purpose: - Get comments under the tweet ### Parameters: - tweet_id: Tweet ID - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - Comments # [示例/Example] tweet_id = "1808168603721650364" cursor = None

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
tweetId string 推文ID/Tweet ID
optional *FetchPostCommentsApiV1TwitterWebFetchPostCommentsGetOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchPostCommentsApiV1TwitterWebFetchPostCommentsGetOpts struct

Name Type Description Notes

cursor | optional.String| 游标/Cursor |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchPostCommentsApiV1TwitterWebFetchPostCommentsGet_0

ResponseModel FetchPostCommentsApiV1TwitterWebFetchPostCommentsGet_0(ctx, tweetId, optional)

获取评论/Get comments

[中文] ### 用途: - 获取推文下的评论 ### 参数: - tweet_id: 推文ID - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 评论 # [English] ### Purpose: - Get comments under the tweet ### Parameters: - tweet_id: Tweet ID - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - Comments # [示例/Example] tweet_id = "1808168603721650364" cursor = None

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
tweetId string 推文ID/Tweet ID
optional *FetchPostCommentsApiV1TwitterWebFetchPostCommentsGet_2Opts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchPostCommentsApiV1TwitterWebFetchPostCommentsGet_2Opts struct

Name Type Description Notes

cursor | optional.String| 游标/Cursor |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGet

ResponseModel FetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGet(ctx, tweetId, optional)

转推用户列表/ReTweet User list

[中文] ### 用途: - 获取转推用户列表 ### 参数: - tweet_id: 推文ID,可以从推文链接中获取。例如:https://x.com/elonmusk/status/1808168603721650364 中的 1808168603721650364。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 转推用户列表 # [English] ### Purpose: - Get ReTweet User list ### Parameters: - tweet_id: Tweet ID, can be obtained from the tweet link. For example: 1808168603721650364 in https://x.com/elonmusk/status/1808168603721650364 - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - ReTweet User list # [示例/Example] tweet_id = "1808168603721650364" cursor = None

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
tweetId string 推文ID/Tweet ID
optional *FetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGetOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGetOpts struct

Name Type Description Notes

cursor | optional.String| 游标/Cursor |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGet_0

ResponseModel FetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGet_0(ctx, tweetId, optional)

转推用户列表/ReTweet User list

[中文] ### 用途: - 获取转推用户列表 ### 参数: - tweet_id: 推文ID,可以从推文链接中获取。例如:https://x.com/elonmusk/status/1808168603721650364 中的 1808168603721650364。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 转推用户列表 # [English] ### Purpose: - Get ReTweet User list ### Parameters: - tweet_id: Tweet ID, can be obtained from the tweet link. For example: 1808168603721650364 in https://x.com/elonmusk/status/1808168603721650364 - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - ReTweet User list # [示例/Example] tweet_id = "1808168603721650364" cursor = None

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
tweetId string 推文ID/Tweet ID
optional *FetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGet_3Opts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGet_3Opts struct

Name Type Description Notes

cursor | optional.String| 游标/Cursor |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGet

ResponseModel FetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGet(ctx, keyword, optional)

搜索/Search

[中文] ### 用途: - 搜索 ### 参数: - keyword: 搜索关键字 - search_type: 搜索类型,默认为Top,其他可选值为Latest,Media,People, Lists - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 搜索结果 # [English] ### Purpose: - Search ### Parameters: - keyword: Search keyword - search_type: Search type, default is Top, other optional values are Latest, Media, People, Lists - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - Search results # [示例/Example] keyword = "Elon Musk" search_type = "Top" cursor = None

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
keyword string 搜索关键字/Search Keyword
optional *FetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGetOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGetOpts struct

Name Type Description Notes

searchType | optional.String| 搜索类型/Search Type | [default to Top] cursor | optional.String| 游标/Cursor |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGet_0

ResponseModel FetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGet_0(ctx, keyword, optional)

搜索/Search

[中文] ### 用途: - 搜索 ### 参数: - keyword: 搜索关键字 - search_type: 搜索类型,默认为Top,其他可选值为Latest,Media,People, Lists - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 搜索结果 # [English] ### Purpose: - Search ### Parameters: - keyword: Search keyword - search_type: Search type, default is Top, other optional values are Latest, Media, People, Lists - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - Search results # [示例/Example] keyword = "Elon Musk" search_type = "Top" cursor = None

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
keyword string 搜索关键字/Search Keyword
optional *FetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGet_4Opts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGet_4Opts struct

Name Type Description Notes

searchType | optional.String| 搜索类型/Search Type | [default to Top] cursor | optional.String| 游标/Cursor |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchTrendingApiV1TwitterWebFetchTrendingGet

ResponseModel FetchTrendingApiV1TwitterWebFetchTrendingGet(ctx, optional)

趋势/Trending

[中文] ### 用途: - 获取趋势 ### 参数: - country: 国家,默认为UnitedStates,其他可选值见下方 - China - India - Japan - Russia - Germany - Indonesia - Brazil - France - UnitedKingdom - Turkey - Italy - Mexico - SouthKorea - Canada - Spain - SaudiArabia - Egypt - Australia - Poland - Iran - Pakistan - Vietnam - Nigeria - Bangladesh - Netherlands - Argentina - Philippines - Malaysia - Colombia - UniteArabEmirates - Romania - Belgium - Switzerland - Singapore - Sweden - Norway - Austria - Kazakhstan - Algeria - Chile - Czechia - Peru - Iraq - Israel - Ukraine - Denmark - Portugal - Hungary - Greece - Finland - NewZealand - Belarus - Slovakia - Serbia - Lithuania - Luxembourg - Estonia ### 返回: - 趋势 # [English] ### Purpose: - Get Trending ### Parameters: - country: Country, default is UnitedStates, other optional values are as follows - China - India - Japan - Russia - Germany - Indonesia - Brazil - France - UnitedKingdom - Turkey - Italy - Mexico - SouthKorea - Canada - Spain - SaudiArabia - Egypt - Australia - Poland - Iran - Pakistan - Vietnam - Nigeria - Bangladesh - Netherlands - Argentina - Philippines - Malaysia - Colombia - UniteArabEmirates - Romania - Belgium - Switzerland - Singapore - Sweden - Norway - Austria - Kazakhstan - Algeria - Chile - Czechia - Peru ### Return: - Trending # [示例/Example] country = "UnitedStates"

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
optional *FetchTrendingApiV1TwitterWebFetchTrendingGetOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchTrendingApiV1TwitterWebFetchTrendingGetOpts struct

Name Type Description Notes
country optional.String 国家/Country [default to UnitedStates]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchTrendingApiV1TwitterWebFetchTrendingGet_0

ResponseModel FetchTrendingApiV1TwitterWebFetchTrendingGet_0(ctx, optional)

趋势/Trending

[中文] ### 用途: - 获取趋势 ### 参数: - country: 国家,默认为UnitedStates,其他可选值见下方 - China - India - Japan - Russia - Germany - Indonesia - Brazil - France - UnitedKingdom - Turkey - Italy - Mexico - SouthKorea - Canada - Spain - SaudiArabia - Egypt - Australia - Poland - Iran - Pakistan - Vietnam - Nigeria - Bangladesh - Netherlands - Argentina - Philippines - Malaysia - Colombia - UniteArabEmirates - Romania - Belgium - Switzerland - Singapore - Sweden - Norway - Austria - Kazakhstan - Algeria - Chile - Czechia - Peru - Iraq - Israel - Ukraine - Denmark - Portugal - Hungary - Greece - Finland - NewZealand - Belarus - Slovakia - Serbia - Lithuania - Luxembourg - Estonia ### 返回: - 趋势 # [English] ### Purpose: - Get Trending ### Parameters: - country: Country, default is UnitedStates, other optional values are as follows - China - India - Japan - Russia - Germany - Indonesia - Brazil - France - UnitedKingdom - Turkey - Italy - Mexico - SouthKorea - Canada - Spain - SaudiArabia - Egypt - Australia - Poland - Iran - Pakistan - Vietnam - Nigeria - Bangladesh - Netherlands - Argentina - Philippines - Malaysia - Colombia - UniteArabEmirates - Romania - Belgium - Switzerland - Singapore - Sweden - Norway - Austria - Kazakhstan - Algeria - Chile - Czechia - Peru ### Return: - Trending # [示例/Example] country = "UnitedStates"

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
optional *FetchTrendingApiV1TwitterWebFetchTrendingGet_5Opts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchTrendingApiV1TwitterWebFetchTrendingGet_5Opts struct

Name Type Description Notes
country optional.String 国家/Country [default to UnitedStates]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchTweetDetailApiV1TwitterWebFetchTweetDetailGet

ResponseModel FetchTweetDetailApiV1TwitterWebFetchTweetDetailGet(ctx, tweetId)

获取单个推文数据/Get single tweet data

[中文] ### 用途: - 获取单个推文数据 ### 参数: - tweet_id: 推文ID,可以从推文链接中获取。例如:https://x.com/elonmusk/status/1808168603721650364 中的 1808168603721650364。 ### 返回: - 推文数据 # [English] ### Purpose: - Get single tweet data ### Parameters: - tweet_id: Tweet ID, can be obtained from the tweet link. For example: 1808168603721650364 in https://x.com/elonmusk/status/1808168603721650364 ### Return: - Tweet data # [示例/Example] tweet_id = "1808168603721650364"

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
tweetId string 推文ID/Tweet ID

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchTweetDetailApiV1TwitterWebFetchTweetDetailGet_0

ResponseModel FetchTweetDetailApiV1TwitterWebFetchTweetDetailGet_0(ctx, tweetId)

获取单个推文数据/Get single tweet data

[中文] ### 用途: - 获取单个推文数据 ### 参数: - tweet_id: 推文ID,可以从推文链接中获取。例如:https://x.com/elonmusk/status/1808168603721650364 中的 1808168603721650364。 ### 返回: - 推文数据 # [English] ### Purpose: - Get single tweet data ### Parameters: - tweet_id: Tweet ID, can be obtained from the tweet link. For example: 1808168603721650364 in https://x.com/elonmusk/status/1808168603721650364 ### Return: - Tweet data # [示例/Example] tweet_id = "1808168603721650364"

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
tweetId string 推文ID/Tweet ID

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchUserFollowersApiV1TwitterWebFetchUserFollowersGet

ResponseModel FetchUserFollowersApiV1TwitterWebFetchUserFollowersGet(ctx, screenName, optional)

用户粉丝/User Followers

[中文] ### 用途: - 获取用户粉丝 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 用户粉丝 # [English] ### Purpose: - Get User Followers ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - User Followers # [示例/Example] screen_name = "elonmusk"

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
screenName string 用户名/Screen Name
optional *FetchUserFollowersApiV1TwitterWebFetchUserFollowersGetOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchUserFollowersApiV1TwitterWebFetchUserFollowersGetOpts struct

Name Type Description Notes

cursor | optional.String| 游标/Cursor |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchUserFollowersApiV1TwitterWebFetchUserFollowersGet_0

ResponseModel FetchUserFollowersApiV1TwitterWebFetchUserFollowersGet_0(ctx, screenName, optional)

用户粉丝/User Followers

[中文] ### 用途: - 获取用户粉丝 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 用户粉丝 # [English] ### Purpose: - Get User Followers ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - User Followers # [示例/Example] screen_name = "elonmusk"

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
screenName string 用户名/Screen Name
optional *FetchUserFollowersApiV1TwitterWebFetchUserFollowersGet_7Opts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchUserFollowersApiV1TwitterWebFetchUserFollowersGet_7Opts struct

Name Type Description Notes

cursor | optional.String| 游标/Cursor |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGet

ResponseModel FetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGet(ctx, screenName, optional)

用户关注/User Followings

[中文] ### 用途: - 获取用户关注 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 用户关注 # [English] ### Purpose: - Get User Followings ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - User Followings # [示例/Example] screen_name = "elonmusk"

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
screenName string 用户名/Screen Name
optional *FetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGetOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGetOpts struct

Name Type Description Notes

cursor | optional.String| 游标/Cursor |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGet_0

ResponseModel FetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGet_0(ctx, screenName, optional)

用户关注/User Followings

[中文] ### 用途: - 获取用户关注 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 用户关注 # [English] ### Purpose: - Get User Followings ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - User Followings # [示例/Example] screen_name = "elonmusk"

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
screenName string 用户名/Screen Name
optional *FetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGet_8Opts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGet_8Opts struct

Name Type Description Notes

cursor | optional.String| 游标/Cursor |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGet

ResponseModel FetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGet(ctx, userId, optional)

获取用户高光推文/Get user highlights tweets

[中文] ### 用途: - 获取用户高光推文 ### 参数: - userId: 用户ID - count: 数量,默认为20 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 - JSONPath: $.data.data.user.result.timeline_v2.timeline.instructions.[1].entries.[-1].content.value ### 返回: - 用户高光推文 # [English] ### Purpose: - Get user highlights tweets ### Parameters: - userId: User ID - count: Count, default is 20 - cursor: Cursor, default is None, used for paging, obtained from the last request - JSONPath: $.data.data.user.result.timeline_v2.timeline.instructions.[1].entries.[-1].content.value ### Return: - User highlights tweets # [示例/Example] userId = "44196397" count = 20 cursor = None

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
userId string 用户ID/User ID
optional *FetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGetOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGetOpts struct

Name Type Description Notes

count | optional.Int32| 数量/Count | [default to 20] cursor | optional.String| 游标/Cursor |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGet_0

ResponseModel FetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGet_0(ctx, userId, optional)

获取用户高光推文/Get user highlights tweets

[中文] ### 用途: - 获取用户高光推文 ### 参数: - userId: 用户ID - count: 数量,默认为20 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 - JSONPath: $.data.data.user.result.timeline_v2.timeline.instructions.[1].entries.[-1].content.value ### 返回: - 用户高光推文 # [English] ### Purpose: - Get user highlights tweets ### Parameters: - userId: User ID - count: Count, default is 20 - cursor: Cursor, default is None, used for paging, obtained from the last request - JSONPath: $.data.data.user.result.timeline_v2.timeline.instructions.[1].entries.[-1].content.value ### Return: - User highlights tweets # [示例/Example] userId = "44196397" count = 20 cursor = None

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
userId string 用户ID/User ID
optional *FetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGet_9Opts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGet_9Opts struct

Name Type Description Notes

count | optional.Int32| 数量/Count | [default to 20] cursor | optional.String| 游标/Cursor |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchUserMediaApiV1TwitterWebFetchUserMediaGet

ResponseModel FetchUserMediaApiV1TwitterWebFetchUserMediaGet(ctx, screenName, optional)

获取用户媒体/Get user media

[中文] ### 用途: - 获取用户媒体 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - rest_id: 用户ID,例如:44196397,如果使用用户ID则会忽略用户名,两者只能选其一。 ### 返回: - 用户媒体 # [English] ### Purpose: - Get user media ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - rest_id: User ID, for example: 44196397, if the user ID is used, the username will be ignored, only one of them can be selected. ### Return: - User media # [示例/Example] screen_name = "elonmusk"

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
screenName string 用户名/Screen Name
optional *FetchUserMediaApiV1TwitterWebFetchUserMediaGetOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchUserMediaApiV1TwitterWebFetchUserMediaGetOpts struct

Name Type Description Notes

restId | optional.Int32| 用户ID/User ID |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchUserMediaApiV1TwitterWebFetchUserMediaGet_0

ResponseModel FetchUserMediaApiV1TwitterWebFetchUserMediaGet_0(ctx, screenName, optional)

获取用户媒体/Get user media

[中文] ### 用途: - 获取用户媒体 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - rest_id: 用户ID,例如:44196397,如果使用用户ID则会忽略用户名,两者只能选其一。 ### 返回: - 用户媒体 # [English] ### Purpose: - Get user media ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - rest_id: User ID, for example: 44196397, if the user ID is used, the username will be ignored, only one of them can be selected. ### Return: - User media # [示例/Example] screen_name = "elonmusk"

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
screenName string 用户名/Screen Name
optional *FetchUserMediaApiV1TwitterWebFetchUserMediaGet_10Opts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchUserMediaApiV1TwitterWebFetchUserMediaGet_10Opts struct

Name Type Description Notes

restId | optional.Int32| 用户ID/User ID |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGet

ResponseModel FetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGet(ctx, optional)

获取用户发帖/Get user post

[中文] ### 用途: - 获取用户发帖 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - rest_id: 用户ID,例如:44196397,如果使用用户ID则会忽略用户名,两者只能选其一。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中的JSON中获取。 ### 返回: - 用户发帖 # [English] ### Purpose: - Get user post ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - rest_id: User ID, for example: 44196397, if the user ID is used, the username will be ignored, only one of them can be selected. - cursor: Cursor, default is None, used for paging, obtained from the JSON in the last request. # [示例/Example] screen_name = "elonmusk" rest_id = 44196397 cursor = None

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
optional *FetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGetOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGetOpts struct

Name Type Description Notes
screenName optional.String 用户名/Screen Name
restId optional.Int32 用户ID/User ID
cursor optional.String 游标/Cursor

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGet_0

ResponseModel FetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGet_0(ctx, optional)

获取用户发帖/Get user post

[中文] ### 用途: - 获取用户发帖 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - rest_id: 用户ID,例如:44196397,如果使用用户ID则会忽略用户名,两者只能选其一。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中的JSON中获取。 ### 返回: - 用户发帖 # [English] ### Purpose: - Get user post ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - rest_id: User ID, for example: 44196397, if the user ID is used, the username will be ignored, only one of them can be selected. - cursor: Cursor, default is None, used for paging, obtained from the JSON in the last request. # [示例/Example] screen_name = "elonmusk" rest_id = 44196397 cursor = None

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
optional *FetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGet_11Opts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGet_11Opts struct

Name Type Description Notes
screenName optional.String 用户名/Screen Name
restId optional.Int32 用户ID/User ID
cursor optional.String 游标/Cursor

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchUserProfileApiV1TwitterWebFetchUserProfileGet

ResponseModel FetchUserProfileApiV1TwitterWebFetchUserProfileGet(ctx, optional)

获取用户资料/Get user profile

[中文] ### 用途: - 获取用户资料 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - rest_id: 用户ID,例如:44196397,如果使用用户ID则会忽略用户名,两者只能选其一。 ### 返回: - 用户资料 # [English] ### Purpose: - Get user profile ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - rest_id: User ID, for example: 44196397, if the user ID is used, the username will be ignored, only one of them can be selected. ### Return: - User profile # [示例/Example] screen_name = "elonmusk"

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
optional *FetchUserProfileApiV1TwitterWebFetchUserProfileGetOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchUserProfileApiV1TwitterWebFetchUserProfileGetOpts struct

Name Type Description Notes
screenName optional.String 用户名/Screen Name
restId optional.Int32 用户ID(如果使用用户ID则会忽略用户名)/User ID (If the user ID is used, the user name will be ignored)

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchUserProfileApiV1TwitterWebFetchUserProfileGet_0

ResponseModel FetchUserProfileApiV1TwitterWebFetchUserProfileGet_0(ctx, optional)

获取用户资料/Get user profile

[中文] ### 用途: - 获取用户资料 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - rest_id: 用户ID,例如:44196397,如果使用用户ID则会忽略用户名,两者只能选其一。 ### 返回: - 用户资料 # [English] ### Purpose: - Get user profile ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - rest_id: User ID, for example: 44196397, if the user ID is used, the username will be ignored, only one of them can be selected. ### Return: - User profile # [示例/Example] screen_name = "elonmusk"

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
optional *FetchUserProfileApiV1TwitterWebFetchUserProfileGet_12Opts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchUserProfileApiV1TwitterWebFetchUserProfileGet_12Opts struct

Name Type Description Notes
screenName optional.String 用户名/Screen Name
restId optional.Int32 用户ID(如果使用用户ID则会忽略用户名)/User ID (If the user ID is used, the user name will be ignored)

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGet

ResponseModel FetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGet(ctx, screenName, optional)

获取用户推文回复/Get user tweet replies

[中文] ### 用途: - 获取用户推文回复 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 用户推文回复 # [English] ### Purpose: - Get user tweet replies ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - User tweet replies # [示例/Example] screen_name = "elonmusk" cursor = None

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
screenName string 用户名/Screen Name
optional *FetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGetOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGetOpts struct

Name Type Description Notes

cursor | optional.String| 游标/Cursor |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGet_0

ResponseModel FetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGet_0(ctx, screenName, optional)

获取用户推文回复/Get user tweet replies

[中文] ### 用途: - 获取用户推文回复 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 用户推文回复 # [English] ### Purpose: - Get user tweet replies ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - User tweet replies # [示例/Example] screen_name = "elonmusk" cursor = None

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
screenName string 用户名/Screen Name
optional *FetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGet_13Opts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a FetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGet_13Opts struct

Name Type Description Notes

cursor | optional.String| 游标/Cursor |

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]