universal-mcp-applications 0.1.20__py3-none-any.whl → 0.1.22__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of universal-mcp-applications might be problematic. Click here for more details.

Files changed (78) hide show
  1. universal_mcp/applications/BEST_PRACTICES.md +166 -0
  2. universal_mcp/applications/airtable/app.py +0 -1
  3. universal_mcp/applications/apollo/app.py +0 -1
  4. universal_mcp/applications/aws_s3/app.py +40 -39
  5. universal_mcp/applications/browser_use/README.md +1 -0
  6. universal_mcp/applications/browser_use/__init__.py +0 -0
  7. universal_mcp/applications/browser_use/app.py +76 -0
  8. universal_mcp/applications/calendly/app.py +125 -125
  9. universal_mcp/applications/canva/app.py +95 -99
  10. universal_mcp/applications/confluence/app.py +0 -1
  11. universal_mcp/applications/contentful/app.py +4 -5
  12. universal_mcp/applications/domain_checker/app.py +11 -15
  13. universal_mcp/applications/e2b/app.py +4 -4
  14. universal_mcp/applications/elevenlabs/app.py +18 -15
  15. universal_mcp/applications/exa/app.py +17 -17
  16. universal_mcp/applications/falai/app.py +28 -29
  17. universal_mcp/applications/file_system/app.py +9 -9
  18. universal_mcp/applications/firecrawl/app.py +36 -36
  19. universal_mcp/applications/fireflies/app.py +55 -56
  20. universal_mcp/applications/fpl/app.py +49 -50
  21. universal_mcp/applications/ghost_content/app.py +0 -1
  22. universal_mcp/applications/github/app.py +41 -43
  23. universal_mcp/applications/google_calendar/app.py +40 -39
  24. universal_mcp/applications/google_docs/app.py +56 -56
  25. universal_mcp/applications/google_drive/app.py +212 -215
  26. universal_mcp/applications/google_gemini/app.py +1 -5
  27. universal_mcp/applications/google_mail/app.py +91 -90
  28. universal_mcp/applications/google_searchconsole/app.py +29 -29
  29. universal_mcp/applications/google_sheet/app.py +115 -115
  30. universal_mcp/applications/hashnode/README.md +6 -3
  31. universal_mcp/applications/hashnode/app.py +174 -25
  32. universal_mcp/applications/http_tools/app.py +10 -11
  33. universal_mcp/applications/hubspot/__init__.py +1 -1
  34. universal_mcp/applications/hubspot/api_segments/api_segment_base.py +36 -7
  35. universal_mcp/applications/hubspot/api_segments/crm_api.py +368 -368
  36. universal_mcp/applications/hubspot/api_segments/marketing_api.py +115 -115
  37. universal_mcp/applications/hubspot/app.py +131 -72
  38. universal_mcp/applications/jira/app.py +0 -1
  39. universal_mcp/applications/linkedin/app.py +20 -20
  40. universal_mcp/applications/markitdown/app.py +10 -5
  41. universal_mcp/applications/ms_teams/app.py +123 -123
  42. universal_mcp/applications/openai/app.py +40 -39
  43. universal_mcp/applications/outlook/app.py +32 -32
  44. universal_mcp/applications/perplexity/app.py +4 -4
  45. universal_mcp/applications/reddit/app.py +69 -70
  46. universal_mcp/applications/resend/app.py +116 -117
  47. universal_mcp/applications/rocketlane/app.py +0 -1
  48. universal_mcp/applications/scraper/__init__.py +1 -1
  49. universal_mcp/applications/scraper/app.py +234 -16
  50. universal_mcp/applications/serpapi/app.py +14 -14
  51. universal_mcp/applications/sharepoint/app.py +19 -20
  52. universal_mcp/applications/shopify/app.py +0 -1
  53. universal_mcp/applications/slack/app.py +48 -48
  54. universal_mcp/applications/tavily/app.py +4 -4
  55. universal_mcp/applications/twitter/api_segments/compliance_api.py +13 -15
  56. universal_mcp/applications/twitter/api_segments/dm_conversations_api.py +20 -20
  57. universal_mcp/applications/twitter/api_segments/dm_events_api.py +12 -12
  58. universal_mcp/applications/twitter/api_segments/likes_api.py +12 -12
  59. universal_mcp/applications/twitter/api_segments/lists_api.py +37 -39
  60. universal_mcp/applications/twitter/api_segments/spaces_api.py +24 -24
  61. universal_mcp/applications/twitter/api_segments/trends_api.py +4 -4
  62. universal_mcp/applications/twitter/api_segments/tweets_api.py +105 -105
  63. universal_mcp/applications/twitter/api_segments/usage_api.py +4 -4
  64. universal_mcp/applications/twitter/api_segments/users_api.py +136 -136
  65. universal_mcp/applications/twitter/app.py +6 -2
  66. universal_mcp/applications/unipile/app.py +321 -71
  67. universal_mcp/applications/whatsapp/app.py +53 -54
  68. universal_mcp/applications/whatsapp/audio.py +39 -35
  69. universal_mcp/applications/whatsapp/whatsapp.py +176 -154
  70. universal_mcp/applications/whatsapp_business/app.py +92 -92
  71. universal_mcp/applications/yahoo_finance/app.py +105 -63
  72. universal_mcp/applications/youtube/app.py +206 -199
  73. universal_mcp/applications/zenquotes/__init__.py +2 -0
  74. universal_mcp/applications/zenquotes/app.py +3 -3
  75. {universal_mcp_applications-0.1.20.dist-info → universal_mcp_applications-0.1.22.dist-info}/METADATA +2 -1
  76. {universal_mcp_applications-0.1.20.dist-info → universal_mcp_applications-0.1.22.dist-info}/RECORD +78 -74
  77. {universal_mcp_applications-0.1.20.dist-info → universal_mcp_applications-0.1.22.dist-info}/WHEEL +0 -0
  78. {universal_mcp_applications-0.1.20.dist-info → universal_mcp_applications-0.1.22.dist-info}/licenses/LICENSE +0 -0
@@ -19,7 +19,7 @@ class TweetsApi(APISegmentBase):
19
19
  ) -> dict[str, Any]:
20
20
  """
21
21
  Fetches detailed information for multiple tweets, specified by a list of their IDs. Optional parameters allow response customization by including specific fields (e.g., media, user, polls) and expansions. This function handles batch lookups, distinguishing it from `find_tweet_by_id` which retrieves a single tweet.
22
-
22
+
23
23
  Args:
24
24
  ids (array): An array of IDs for the tweets to retrieve, required for the operation.
25
25
  tweet_fields (array): A comma separated list of Tweet fields to display. Example: "['article', 'attachments', 'author_id', 'card_uri', 'context_annotations', 'conversation_id', 'created_at', 'edit_controls', 'edit_history_tweet_ids', 'entities', 'geo', 'id', 'in_reply_to_user_id', 'lang', 'non_public_metrics', 'note_tweet', 'organic_metrics', 'possibly_sensitive', 'promoted_metrics', 'public_metrics', 'referenced_tweets', 'reply_settings', 'scopes', 'source', 'text', 'username', 'withheld']".
@@ -28,14 +28,14 @@ class TweetsApi(APISegmentBase):
28
28
  poll_fields (array): A comma separated list of Poll fields to display. Example: "['duration_minutes', 'end_datetime', 'id', 'options', 'voting_status']".
29
29
  user_fields (array): A comma separated list of User fields to display. Example: "['affiliation', 'connection_status', 'created_at', 'description', 'entities', 'id', 'location', 'most_recent_tweet_id', 'name', 'pinned_tweet_id', 'profile_banner_url', 'profile_image_url', 'protected', 'public_metrics', 'receives_your_dm', 'subscription_type', 'url', 'username', 'verified', 'verified_type', 'withheld']".
30
30
  place_fields (array): A comma separated list of Place fields to display. Example: "['contained_within', 'country', 'country_code', 'full_name', 'geo', 'id', 'name', 'place_type']".
31
-
31
+
32
32
  Returns:
33
33
  dict[str, Any]: The request has succeeded.
34
-
34
+
35
35
  Raises:
36
36
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
37
37
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
38
-
38
+
39
39
  Tags:
40
40
  Tweets
41
41
  """
@@ -73,7 +73,7 @@ class TweetsApi(APISegmentBase):
73
73
  ) -> dict[str, Any]:
74
74
  """
75
75
  Posts a new tweet for an authenticated user, supporting optional parameters like text, media, polls, replies, and quote tweets. This function constructs a POST request to the `/2/tweets` endpoint, enabling the creation of diverse tweet formats with specific visibility and reply settings.
76
-
76
+
77
77
  Args:
78
78
  card_uri (string): Card Uri Parameter. This is mutually exclusive from Quote Tweet Id, Poll, Media, and Direct Message Deep Link.
79
79
  direct_message_deep_link (string): Link to take the conversation from the public timeline to a private Direct Message.
@@ -85,15 +85,15 @@ class TweetsApi(APISegmentBase):
85
85
  quote_tweet_id (string): Unique identifier of this Tweet. This is returned as a string in order to avoid complications with languages and tools that cannot handle large integers. Example: '1346889436626259968'.
86
86
  reply (object): Tweet information of the Tweet being replied to.
87
87
  reply_settings (string): Settings to indicate who can reply to the Tweet.
88
- text (string): The content of the Tweet. Example: 'Learn how to use the user Tweet timeline and user mention timeline endpoints in the X API v2 to explore Tweet\u2026 https:\/\/t.co\/56a0vZUx7i'.
89
-
88
+ text (string): The content of the Tweet. Example: 'Learn how to use the user Tweet timeline and user mention timeline endpoints in the X API v2 to explore Tweet\u2026 https:\\/\\/t.co\\/56a0vZUx7i'.
89
+
90
90
  Returns:
91
91
  dict[str, Any]: The request has succeeded.
92
-
92
+
93
93
  Raises:
94
94
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
95
95
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
96
-
96
+
97
97
  Tags:
98
98
  Tweets
99
99
  """
@@ -130,20 +130,20 @@ class TweetsApi(APISegmentBase):
130
130
  ) -> Any:
131
131
  """
132
132
  Streams real-time compliance events for tweets, such as deletions and user updates, from a specified partition. Unlike other stream functions that return tweet content, this provides metadata about content and user status changes, supporting optional time-based filtering and backfilling.
133
-
133
+
134
134
  Args:
135
135
  partition (integer): Specifies the partition number from which to retrieve compliance stream events, with a required integer value between 1 and 4.
136
136
  backfill_minutes (integer): Optional integer parameter to specify the number of minutes of data to recover from a stream disconnection, allowing retrieval of missed tweets.
137
137
  start_time (string): Optional string parameter specifying the earliest UTC timestamp from which compliance events will be provided, formatted as YYYY-MM-DDTHH:mm:ssZ. Example: '2021-02-01T18:40:40.000Z'.
138
138
  end_time (string): The `end_time` parameter specifies the latest UTC timestamp (in ISO 8601 format) until which compliance events will be streamed. Example: '2021-02-14T18:40:40.000Z'.
139
-
139
+
140
140
  Returns:
141
141
  Any: The request has succeeded.
142
-
142
+
143
143
  Raises:
144
144
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
145
145
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
146
-
146
+
147
147
  Tags:
148
148
  Compliance
149
149
  """
@@ -176,7 +176,7 @@ class TweetsApi(APISegmentBase):
176
176
  ) -> dict[str, Any]:
177
177
  """
178
178
  Calculates the number of tweets from the entire historical archive that match a given search query. Results can be aggregated by minute, hour, or day over a specific time range to analyze historical tweet volume trends.
179
-
179
+
180
180
  Args:
181
181
  query (string): The "query" parameter is a required string used to filter tweets by specifying keywords or phrases, allowing users to retrieve counts for specific topics or hashtags. Example: '(from:TwitterDev OR from:TwitterAPI) has:media -is:retweet'.
182
182
  start_time (string): The start_time parameter sets the earliest timestamp from which to begin counting Tweets in the full-archive matching the query, formatted as an ISO 8601 string.
@@ -187,14 +187,14 @@ class TweetsApi(APISegmentBase):
187
187
  pagination_token (string): Used to request the next page of results, providing the value of `next_token` from the previous response to paginate through data.
188
188
  granularity (string): The **granularity** parameter specifies the time unit for retrieving tweet counts, allowing options of "minute", "hour", or "day", with "hour" as the default.
189
189
  search_count_fields (array): A comma separated list of SearchCount fields to display. Example: "['end', 'start', 'tweet_count']".
190
-
190
+
191
191
  Returns:
192
192
  dict[str, Any]: The request has succeeded.
193
-
193
+
194
194
  Raises:
195
195
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
196
196
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
197
-
197
+
198
198
  Tags:
199
199
  Tweets
200
200
  """
@@ -232,7 +232,7 @@ class TweetsApi(APISegmentBase):
232
232
  ) -> dict[str, Any]:
233
233
  """
234
234
  Retrieves the total count of tweets from the last seven days matching a specified query. Results can be aggregated by minute, hour, or day and filtered by time range or tweet ID. This function contrasts with `tweet_counts_full_archive_search`, which queries the entire tweet history.
235
-
235
+
236
236
  Args:
237
237
  query (string): The search query to filter recent tweets for counting matching tweets. Example: '(from:TwitterDev OR from:TwitterAPI) has:media -is:retweet'.
238
238
  start_time (string): Optional start time for the recent Tweet counts query, specified in ISO 8601 format, which determines the beginning of the time window for which Tweet counts are returned.
@@ -243,14 +243,14 @@ class TweetsApi(APISegmentBase):
243
243
  pagination_token (string): Optional parameter to paginate through the results, used by passing the `next_token` value from the previous response to retrieve the next page of tweet count data.
244
244
  granularity (string): The granularity parameter specifies the time interval for aggregating Tweet counts in the response, with possible values of "minute," "hour" (default), or "day".
245
245
  search_count_fields (array): A comma separated list of SearchCount fields to display. Example: "['end', 'start', 'tweet_count']".
246
-
246
+
247
247
  Returns:
248
248
  dict[str, Any]: The request has succeeded.
249
-
249
+
250
250
  Raises:
251
251
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
252
252
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
253
-
253
+
254
254
  Tags:
255
255
  Tweets
256
256
  """
@@ -289,7 +289,7 @@ class TweetsApi(APISegmentBase):
289
289
  ) -> dict[str, Any]:
290
290
  """
291
291
  Streams all public tweets in real-time from the Firehose API for a specified partition. This unfiltered feed can be customized with optional parameters to backfill data, define a time window, and specify desired tweet, user, and media fields.
292
-
292
+
293
293
  Args:
294
294
  partition (integer): A required integer parameter that specifies the partition from which to retrieve the firehose stream data.
295
295
  backfill_minutes (integer): The backfill_minutes parameter allows requesting up to five minutes of missed streaming data to be delivered upon reconnection, helping recover Tweets lost during short disconnections; it accepts an integer value from 1 to 5 and is available only with Academic Research access.
@@ -301,14 +301,14 @@ class TweetsApi(APISegmentBase):
301
301
  poll_fields (array): A comma separated list of Poll fields to display. Example: "['duration_minutes', 'end_datetime', 'id', 'options', 'voting_status']".
302
302
  user_fields (array): A comma separated list of User fields to display. Example: "['affiliation', 'connection_status', 'created_at', 'description', 'entities', 'id', 'location', 'most_recent_tweet_id', 'name', 'pinned_tweet_id', 'profile_banner_url', 'profile_image_url', 'protected', 'public_metrics', 'receives_your_dm', 'subscription_type', 'url', 'username', 'verified', 'verified_type', 'withheld']".
303
303
  place_fields (array): A comma separated list of Place fields to display. Example: "['contained_within', 'country', 'country_code', 'full_name', 'geo', 'id', 'name', 'place_type']".
304
-
304
+
305
305
  Returns:
306
306
  dict[str, Any]: The request has succeeded.
307
-
307
+
308
308
  Raises:
309
309
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
310
310
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
311
-
311
+
312
312
  Tags:
313
313
  Tweets
314
314
  """
@@ -348,7 +348,7 @@ class TweetsApi(APISegmentBase):
348
348
  ) -> dict[str, Any]:
349
349
  """
350
350
  Streams real-time public tweets from the Firehose API, specifically filtered for the English language. Requires a partition number and supports optional parameters to customize the data payload. It is distinct from other language-specific (`_ja`, `_ko`, `_pt`) or the unfiltered `get_tweets_firehose_stream` functions.
351
-
351
+
352
352
  Args:
353
353
  partition (integer): The `partition` parameter is an integer value required in the query for the GET operation at path "/2/tweets/firehose/stream/lang/en", specifying the partition number for the stream.
354
354
  backfill_minutes (integer): Requests up to five minutes of missed streaming data to be delivered upon reconnection, useful for recovering data lost during brief disconnections.
@@ -360,14 +360,14 @@ class TweetsApi(APISegmentBase):
360
360
  poll_fields (array): A comma separated list of Poll fields to display. Example: "['duration_minutes', 'end_datetime', 'id', 'options', 'voting_status']".
361
361
  user_fields (array): A comma separated list of User fields to display. Example: "['affiliation', 'connection_status', 'created_at', 'description', 'entities', 'id', 'location', 'most_recent_tweet_id', 'name', 'pinned_tweet_id', 'profile_banner_url', 'profile_image_url', 'protected', 'public_metrics', 'receives_your_dm', 'subscription_type', 'url', 'username', 'verified', 'verified_type', 'withheld']".
362
362
  place_fields (array): A comma separated list of Place fields to display. Example: "['contained_within', 'country', 'country_code', 'full_name', 'geo', 'id', 'name', 'place_type']".
363
-
363
+
364
364
  Returns:
365
365
  dict[str, Any]: The request has succeeded.
366
-
366
+
367
367
  Raises:
368
368
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
369
369
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
370
-
370
+
371
371
  Tags:
372
372
  Tweets
373
373
  """
@@ -407,7 +407,7 @@ class TweetsApi(APISegmentBase):
407
407
  ) -> dict[str, Any]:
408
408
  """
409
409
  Streams real-time tweets specifically in Japanese from the Twitter Firehose API, requiring a partition number. It supports optional parameters for time ranges, backfill, and customizable fields. This method is distinct from other `get_tweets_firehose_stream` variants, which target different languages or the entire stream.
410
-
410
+
411
411
  Args:
412
412
  partition (integer): The partition number used to identify and organize the data stream, which is required for this operation.
413
413
  backfill_minutes (integer): The number of minutes (1 to 5) of missed streaming data to backfill and recover upon reconnection, available only with Academic Research access.
@@ -419,14 +419,14 @@ class TweetsApi(APISegmentBase):
419
419
  poll_fields (array): A comma separated list of Poll fields to display. Example: "['duration_minutes', 'end_datetime', 'id', 'options', 'voting_status']".
420
420
  user_fields (array): A comma separated list of User fields to display. Example: "['affiliation', 'connection_status', 'created_at', 'description', 'entities', 'id', 'location', 'most_recent_tweet_id', 'name', 'pinned_tweet_id', 'profile_banner_url', 'profile_image_url', 'protected', 'public_metrics', 'receives_your_dm', 'subscription_type', 'url', 'username', 'verified', 'verified_type', 'withheld']".
421
421
  place_fields (array): A comma separated list of Place fields to display. Example: "['contained_within', 'country', 'country_code', 'full_name', 'geo', 'id', 'name', 'place_type']".
422
-
422
+
423
423
  Returns:
424
424
  dict[str, Any]: The request has succeeded.
425
-
425
+
426
426
  Raises:
427
427
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
428
428
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
429
-
429
+
430
430
  Tags:
431
431
  Tweets
432
432
  """
@@ -466,7 +466,7 @@ class TweetsApi(APISegmentBase):
466
466
  ) -> dict[str, Any]:
467
467
  """
468
468
  Streams real-time tweets filtered for the Korean language from the Firehose API. This function allows customization via parameters for partitions, time range, backfill, and specific data fields for tweets, users, and media, distinguishing it from other language-specific stream functions.
469
-
469
+
470
470
  Args:
471
471
  partition (integer): The partition parameter specifies the integer partition number to use for streaming tweets.
472
472
  backfill_minutes (integer): The number of minutes (1 to 5) of previously missed Tweets to backfill and deliver upon reconnection, allowing recovery of up to five minutes of data missed during a disconnection; duplicates may occur and this feature requires Academic Research access.
@@ -478,14 +478,14 @@ class TweetsApi(APISegmentBase):
478
478
  poll_fields (array): A comma separated list of Poll fields to display. Example: "['duration_minutes', 'end_datetime', 'id', 'options', 'voting_status']".
479
479
  user_fields (array): A comma separated list of User fields to display. Example: "['affiliation', 'connection_status', 'created_at', 'description', 'entities', 'id', 'location', 'most_recent_tweet_id', 'name', 'pinned_tweet_id', 'profile_banner_url', 'profile_image_url', 'protected', 'public_metrics', 'receives_your_dm', 'subscription_type', 'url', 'username', 'verified', 'verified_type', 'withheld']".
480
480
  place_fields (array): A comma separated list of Place fields to display. Example: "['contained_within', 'country', 'country_code', 'full_name', 'geo', 'id', 'name', 'place_type']".
481
-
481
+
482
482
  Returns:
483
483
  dict[str, Any]: The request has succeeded.
484
-
484
+
485
485
  Raises:
486
486
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
487
487
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
488
-
488
+
489
489
  Tags:
490
490
  Tweets
491
491
  """
@@ -525,7 +525,7 @@ class TweetsApi(APISegmentBase):
525
525
  ) -> dict[str, Any]:
526
526
  """
527
527
  Streams real-time tweets in Portuguese from the Firehose API, requiring a partition number. It allows data customization via optional parameters for time ranges and fields, specifically targeting the Portuguese language stream, unlike other general or language-specific firehose functions.
528
-
528
+
529
529
  Args:
530
530
  partition (integer): The **partition** parameter is a required integer that specifies the partition number for the GET operation at the "/2/tweets/firehose/stream/lang/pt" path, used to distribute the stream of tweets across multiple partitions for efficient processing.
531
531
  backfill_minutes (integer): The number of minutes (1-5) of missed streaming data to recover and deliver upon reconnection, available only for Academic Research access.
@@ -537,14 +537,14 @@ class TweetsApi(APISegmentBase):
537
537
  poll_fields (array): A comma separated list of Poll fields to display. Example: "['duration_minutes', 'end_datetime', 'id', 'options', 'voting_status']".
538
538
  user_fields (array): A comma separated list of User fields to display. Example: "['affiliation', 'connection_status', 'created_at', 'description', 'entities', 'id', 'location', 'most_recent_tweet_id', 'name', 'pinned_tweet_id', 'profile_banner_url', 'profile_image_url', 'protected', 'public_metrics', 'receives_your_dm', 'subscription_type', 'url', 'username', 'verified', 'verified_type', 'withheld']".
539
539
  place_fields (array): A comma separated list of Place fields to display. Example: "['contained_within', 'country', 'country_code', 'full_name', 'geo', 'id', 'name', 'place_type']".
540
-
540
+
541
541
  Returns:
542
542
  dict[str, Any]: The request has succeeded.
543
-
543
+
544
544
  Raises:
545
545
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
546
546
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
547
-
547
+
548
548
  Tags:
549
549
  Tweets
550
550
  """
@@ -574,19 +574,19 @@ class TweetsApi(APISegmentBase):
574
574
  ) -> Any:
575
575
  """
576
576
  Streams real-time Tweet objects labeled for compliance reasons, such as withheld content. Unlike `get_tweets_compliance_stream`, which provides events, this returns the actual tweets. Supports filtering by a time window and backfilling missed data upon reconnection.
577
-
577
+
578
578
  Args:
579
579
  backfill_minutes (integer): The number of minutes (up to five) of missed tweet data to recover and backfill after a disconnection, available for Academic Research access.
580
580
  start_time (string): Optional parameter specifying the earliest UTC timestamp (in ISO 8601/RFC 3339 format) from which to retrieve tweets, allowing filtering by creation time. Example: '2021-02-01T18:40:40.000Z'.
581
581
  end_time (string): Optional parameter specifying the end time in ISO 8601 format for retrieving tweets from a label stream, used to filter tweets created before this time. Example: '2021-02-01T18:40:40.000Z'.
582
-
582
+
583
583
  Returns:
584
584
  Any: The request has succeeded.
585
-
585
+
586
586
  Raises:
587
587
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
588
588
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
589
-
589
+
590
590
  Tags:
591
591
  Compliance
592
592
  """
@@ -616,7 +616,7 @@ class TweetsApi(APISegmentBase):
616
616
  ) -> dict[str, Any]:
617
617
  """
618
618
  Streams a real-time, random sample of public tweets from the API. It allows data customization through optional field and expansion parameters. This function targets the standard (~1%) sample stream, distinct from `get_tweets_sample_stream` which accesses the partitioned 10% stream.
619
-
619
+
620
620
  Args:
621
621
  backfill_minutes (integer): The number of minutes (1 to 5) of missed streaming Tweets to backfill and receive upon reconnection, available for Academic Research access.
622
622
  tweet_fields (array): A comma separated list of Tweet fields to display. Example: "['article', 'attachments', 'author_id', 'card_uri', 'context_annotations', 'conversation_id', 'created_at', 'edit_controls', 'edit_history_tweet_ids', 'entities', 'geo', 'id', 'in_reply_to_user_id', 'lang', 'non_public_metrics', 'note_tweet', 'organic_metrics', 'possibly_sensitive', 'promoted_metrics', 'public_metrics', 'referenced_tweets', 'reply_settings', 'scopes', 'source', 'text', 'username', 'withheld']".
@@ -625,14 +625,14 @@ class TweetsApi(APISegmentBase):
625
625
  poll_fields (array): A comma separated list of Poll fields to display. Example: "['duration_minutes', 'end_datetime', 'id', 'options', 'voting_status']".
626
626
  user_fields (array): A comma separated list of User fields to display. Example: "['affiliation', 'connection_status', 'created_at', 'description', 'entities', 'id', 'location', 'most_recent_tweet_id', 'name', 'pinned_tweet_id', 'profile_banner_url', 'profile_image_url', 'protected', 'public_metrics', 'receives_your_dm', 'subscription_type', 'url', 'username', 'verified', 'verified_type', 'withheld']".
627
627
  place_fields (array): A comma separated list of Place fields to display. Example: "['contained_within', 'country', 'country_code', 'full_name', 'geo', 'id', 'name', 'place_type']".
628
-
628
+
629
629
  Returns:
630
630
  dict[str, Any]: The request has succeeded.
631
-
631
+
632
632
  Raises:
633
633
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
634
634
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
635
-
635
+
636
636
  Tags:
637
637
  Tweets
638
638
  """
@@ -669,7 +669,7 @@ class TweetsApi(APISegmentBase):
669
669
  ) -> dict[str, Any]:
670
670
  """
671
671
  Streams a 10% random sample of real-time tweets from a specified partition, offering a larger volume than `sample_stream`. It supports optional time-based filtering and customization of returned data for tweets, media, users, and places using field selectors and expansions.
672
-
672
+
673
673
  Args:
674
674
  partition (integer): The "partition" parameter specifies the partition number for the stream, which is required for the GET operation at path "/2/tweets/sample10/stream".
675
675
  backfill_minutes (integer): The `backfill_minutes` parameter allows you to request up to five minutes of missed streaming data to be delivered upon reconnection, helping recover data lost during disconnections; it is only available for Academic Research access.
@@ -681,14 +681,14 @@ class TweetsApi(APISegmentBase):
681
681
  poll_fields (array): A comma separated list of Poll fields to display. Example: "['duration_minutes', 'end_datetime', 'id', 'options', 'voting_status']".
682
682
  user_fields (array): A comma separated list of User fields to display. Example: "['affiliation', 'connection_status', 'created_at', 'description', 'entities', 'id', 'location', 'most_recent_tweet_id', 'name', 'pinned_tweet_id', 'profile_banner_url', 'profile_image_url', 'protected', 'public_metrics', 'receives_your_dm', 'subscription_type', 'url', 'username', 'verified', 'verified_type', 'withheld']".
683
683
  place_fields (array): A comma separated list of Place fields to display. Example: "['contained_within', 'country', 'country_code', 'full_name', 'geo', 'id', 'name', 'place_type']".
684
-
684
+
685
685
  Returns:
686
686
  dict[str, Any]: The request has succeeded.
687
-
687
+
688
688
  Raises:
689
689
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
690
690
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
691
-
691
+
692
692
  Tags:
693
693
  Tweets
694
694
  """
@@ -733,7 +733,7 @@ class TweetsApi(APISegmentBase):
733
733
  ) -> dict[str, Any]:
734
734
  """
735
735
  Searches the entire historical archive of public Tweets using a specific query. It supports filtering by time range and pagination, allowing customization of returned fields. This differs from `tweets_recent_search`, which only covers the last seven days, and `tweet_counts_full_archive_search`, which returns counts instead of tweet data.
736
-
736
+
737
737
  Args:
738
738
  query (string): The "query" parameter is a required string input used to specify the search criteria for retrieving tweets. Example: '(from:TwitterDev OR from:TwitterAPI) has:media -is:retweet'.
739
739
  start_time (string): Optional timestamp specifying the earliest date and time from which to retrieve Tweets, formatted as YYYY-MM-DDTHH:mm:ssZ in ISO 8601/RFC 3339 format; if not specified and end_time is provided, it defaults to 30 days before end_time.
@@ -750,14 +750,14 @@ class TweetsApi(APISegmentBase):
750
750
  poll_fields (array): A comma separated list of Poll fields to display. Example: "['duration_minutes', 'end_datetime', 'id', 'options', 'voting_status']".
751
751
  user_fields (array): A comma separated list of User fields to display. Example: "['affiliation', 'connection_status', 'created_at', 'description', 'entities', 'id', 'location', 'most_recent_tweet_id', 'name', 'pinned_tweet_id', 'profile_banner_url', 'profile_image_url', 'protected', 'public_metrics', 'receives_your_dm', 'subscription_type', 'url', 'username', 'verified', 'verified_type', 'withheld']".
752
752
  place_fields (array): A comma separated list of Place fields to display. Example: "['contained_within', 'country', 'country_code', 'full_name', 'geo', 'id', 'name', 'place_type']".
753
-
753
+
754
754
  Returns:
755
755
  dict[str, Any]: The request has succeeded.
756
-
756
+
757
757
  Raises:
758
758
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
759
759
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
760
-
760
+
761
761
  Tags:
762
762
  Tweets
763
763
  """
@@ -807,7 +807,7 @@ class TweetsApi(APISegmentBase):
807
807
  ) -> dict[str, Any]:
808
808
  """
809
809
  Searches for tweets from the past seven days matching a specific query. Allows advanced filtering, pagination, and data expansions to customize results. Unlike `tweet_counts_recent_search`, it returns full tweet objects instead of just a count.
810
-
810
+
811
811
  Args:
812
812
  query (string): A string parameter used to specify the search query for retrieving recent tweets. Example: '(from:TwitterDev OR from:TwitterAPI) has:media -is:retweet'.
813
813
  start_time (string): Optional parameter to specify the earliest time to search for tweets, formatted as ISO8601/RFC3339 (e.g., 2023-05-12T00:00:00Z).
@@ -824,14 +824,14 @@ class TweetsApi(APISegmentBase):
824
824
  poll_fields (array): A comma separated list of Poll fields to display. Example: "['duration_minutes', 'end_datetime', 'id', 'options', 'voting_status']".
825
825
  user_fields (array): A comma separated list of User fields to display. Example: "['affiliation', 'connection_status', 'created_at', 'description', 'entities', 'id', 'location', 'most_recent_tweet_id', 'name', 'pinned_tweet_id', 'profile_banner_url', 'profile_image_url', 'protected', 'public_metrics', 'receives_your_dm', 'subscription_type', 'url', 'username', 'verified', 'verified_type', 'withheld']".
826
826
  place_fields (array): A comma separated list of Place fields to display. Example: "['contained_within', 'country', 'country_code', 'full_name', 'geo', 'id', 'name', 'place_type']".
827
-
827
+
828
828
  Returns:
829
829
  dict[str, Any]: The request has succeeded.
830
-
830
+
831
831
  Raises:
832
832
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
833
833
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
834
-
834
+
835
835
  Tags:
836
836
  Tweets
837
837
  """
@@ -875,7 +875,7 @@ class TweetsApi(APISegmentBase):
875
875
  ) -> dict[str, Any]:
876
876
  """
877
877
  Streams real-time tweets matching a user's pre-configured filtering rules from the Twitter API. Unlike `sample_stream` or `get_tweets_firehose_stream`, this provides a targeted feed. Optional parameters can customize returned data fields and specify a time window.
878
-
878
+
879
879
  Args:
880
880
  backfill_minutes (integer): The "backfill_minutes" parameter allows clients to request up to five minutes of missed data upon reconnection, helping to recover Tweets that were missed due to a disconnection.
881
881
  start_time (string): The "start_time" parameter specifies the earliest UTC timestamp (in ISO 8601 format) from which to include Tweets in the search results. Example: '2021-02-01T18:40:40.000Z'.
@@ -886,14 +886,14 @@ class TweetsApi(APISegmentBase):
886
886
  poll_fields (array): A comma separated list of Poll fields to display. Example: "['duration_minutes', 'end_datetime', 'id', 'options', 'voting_status']".
887
887
  user_fields (array): A comma separated list of User fields to display. Example: "['affiliation', 'connection_status', 'created_at', 'description', 'entities', 'id', 'location', 'most_recent_tweet_id', 'name', 'pinned_tweet_id', 'profile_banner_url', 'profile_image_url', 'protected', 'public_metrics', 'receives_your_dm', 'subscription_type', 'url', 'username', 'verified', 'verified_type', 'withheld']".
888
888
  place_fields (array): A comma separated list of Place fields to display. Example: "['contained_within', 'country', 'country_code', 'full_name', 'geo', 'id', 'name', 'place_type']".
889
-
889
+
890
890
  Returns:
891
891
  dict[str, Any]: The request has succeeded.
892
-
892
+
893
893
  Raises:
894
894
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
895
895
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
896
-
896
+
897
897
  Tags:
898
898
  Tweets
899
899
  """
@@ -922,19 +922,19 @@ class TweetsApi(APISegmentBase):
922
922
  ) -> dict[str, Any]:
923
923
  """
924
924
  Retrieves the active filtering rules for a Twitter API v2 filtered stream. It can fetch all rules or a subset specified by rule IDs, with support for pagination to manage large rule sets, complementing the `add_or_delete_rules` and `search_stream` functions.
925
-
925
+
926
926
  Args:
927
927
  ids (array): Optional array of rule IDs to fetch a subset of rules from the user's active rule set.
928
928
  max_results (integer): The maximum number of stream filtering rules to return per response, up to 1000; defaults to 1000 if not specified.
929
929
  pagination_token (string): The `pagination_token` parameter is a string used to request the next page of results in a paginated response, typically obtained from the `next_token` value in the previous response.
930
-
930
+
931
931
  Returns:
932
932
  dict[str, Any]: The request has succeeded.
933
-
933
+
934
934
  Raises:
935
935
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
936
936
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
937
-
937
+
938
938
  Tags:
939
939
  Tweets
940
940
  """
@@ -957,20 +957,20 @@ class TweetsApi(APISegmentBase):
957
957
  ) -> dict[str, Any]:
958
958
  """
959
959
  Adds or removes filtering rules for a tweet stream. Supports a dry-run mode to validate rule syntax without application and an option to delete all existing rules. This function directly modifies the active rule set used by the `search_stream` function.
960
-
960
+
961
961
  Args:
962
962
  dry_run (boolean): Indicates whether to test the syntax of the rule without applying it to the stream, allowing validation of rule changes without taking effect.
963
963
  delete_all (boolean): Indicates whether to delete all existing rules for the user before applying new rules; if true, all existing rules will be deleted.
964
964
  add (array): add
965
965
  delete (object): IDs and values of all deleted user-specified stream filtering rules.
966
-
966
+
967
967
  Returns:
968
968
  dict[str, Any]: The request has succeeded.
969
-
969
+
970
970
  Raises:
971
971
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
972
972
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
973
-
973
+
974
974
  Tags:
975
975
  Tweets
976
976
  """
@@ -997,17 +997,17 @@ class TweetsApi(APISegmentBase):
997
997
  def get_stream_rule_usage(self, rules_count_fields=None) -> dict[str, Any]:
998
998
  """
999
999
  Retrieves the number of active filtered stream rules for the user's project and app. This helps manage usage against API limits by providing metadata about rule counts, not the number of tweets matching those rules.
1000
-
1000
+
1001
1001
  Args:
1002
1002
  rules_count_fields (array): A comma separated list of RulesCount fields to display. Example: "['all_project_client_apps', 'cap_per_client_app', 'cap_per_project', 'client_app_rules_count', 'project_rules_count']".
1003
-
1003
+
1004
1004
  Returns:
1005
1005
  dict[str, Any]: The request has succeeded.
1006
-
1006
+
1007
1007
  Raises:
1008
1008
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1009
1009
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1010
-
1010
+
1011
1011
  Tags:
1012
1012
  General
1013
1013
  """
@@ -1024,17 +1024,17 @@ class TweetsApi(APISegmentBase):
1024
1024
  def delete_tweet_by_id(self, id) -> dict[str, Any]:
1025
1025
  """
1026
1026
  Deletes a specific Tweet, identified by its unique ID, on behalf of the authenticated user. This function permanently removes the targeted Tweet by sending a DELETE request to the API's corresponding endpoint.
1027
-
1027
+
1028
1028
  Args:
1029
1029
  id (string): id
1030
-
1030
+
1031
1031
  Returns:
1032
1032
  dict[str, Any]: The request has succeeded.
1033
-
1033
+
1034
1034
  Raises:
1035
1035
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1036
1036
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1037
-
1037
+
1038
1038
  Tags:
1039
1039
  Tweets
1040
1040
  """
@@ -1058,7 +1058,7 @@ class TweetsApi(APISegmentBase):
1058
1058
  ) -> dict[str, Any]:
1059
1059
  """
1060
1060
  Retrieves detailed information for a single Tweet by its unique ID. It supports optional parameters to customize the response by specifying fields for the tweet, user, and media. Unlike `find_tweets_by_id`, which retrieves a batch of tweets, this function fetches exactly one.
1061
-
1061
+
1062
1062
  Args:
1063
1063
  id (string): id
1064
1064
  tweet_fields (array): A comma separated list of Tweet fields to display. Example: "['article', 'attachments', 'author_id', 'card_uri', 'context_annotations', 'conversation_id', 'created_at', 'edit_controls', 'edit_history_tweet_ids', 'entities', 'geo', 'id', 'in_reply_to_user_id', 'lang', 'non_public_metrics', 'note_tweet', 'organic_metrics', 'possibly_sensitive', 'promoted_metrics', 'public_metrics', 'referenced_tweets', 'reply_settings', 'scopes', 'source', 'text', 'username', 'withheld']".
@@ -1067,14 +1067,14 @@ class TweetsApi(APISegmentBase):
1067
1067
  poll_fields (array): A comma separated list of Poll fields to display. Example: "['duration_minutes', 'end_datetime', 'id', 'options', 'voting_status']".
1068
1068
  user_fields (array): A comma separated list of User fields to display. Example: "['affiliation', 'connection_status', 'created_at', 'description', 'entities', 'id', 'location', 'most_recent_tweet_id', 'name', 'pinned_tweet_id', 'profile_banner_url', 'profile_image_url', 'protected', 'public_metrics', 'receives_your_dm', 'subscription_type', 'url', 'username', 'verified', 'verified_type', 'withheld']".
1069
1069
  place_fields (array): A comma separated list of Place fields to display. Example: "['contained_within', 'country', 'country_code', 'full_name', 'geo', 'id', 'name', 'place_type']".
1070
-
1070
+
1071
1071
  Returns:
1072
1072
  dict[str, Any]: The request has succeeded.
1073
-
1073
+
1074
1074
  Raises:
1075
1075
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1076
1076
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1077
-
1077
+
1078
1078
  Tags:
1079
1079
  Tweets
1080
1080
  """
@@ -1108,7 +1108,7 @@ class TweetsApi(APISegmentBase):
1108
1108
  ) -> dict[str, Any]:
1109
1109
  """
1110
1110
  Retrieves a list of users who have liked a specific tweet, identified by its ID. Supports pagination and allows for customization of the returned data fields for users and tweets, including expansions for related objects.
1111
-
1111
+
1112
1112
  Args:
1113
1113
  id (string): id
1114
1114
  max_results (integer): Specifies the maximum number of liking users to return in a response, with a default value of 100 and a maximum allowed value of 100.
@@ -1116,14 +1116,14 @@ class TweetsApi(APISegmentBase):
1116
1116
  user_fields (array): A comma separated list of User fields to display. Example: "['affiliation', 'connection_status', 'created_at', 'description', 'entities', 'id', 'location', 'most_recent_tweet_id', 'name', 'pinned_tweet_id', 'profile_banner_url', 'profile_image_url', 'protected', 'public_metrics', 'receives_your_dm', 'subscription_type', 'url', 'username', 'verified', 'verified_type', 'withheld']".
1117
1117
  expansions (array): A comma separated list of fields to expand. Example: "['affiliation.user_id', 'most_recent_tweet_id', 'pinned_tweet_id']".
1118
1118
  tweet_fields (array): A comma separated list of Tweet fields to display. Example: "['article', 'attachments', 'author_id', 'card_uri', 'context_annotations', 'conversation_id', 'created_at', 'edit_controls', 'edit_history_tweet_ids', 'entities', 'geo', 'id', 'in_reply_to_user_id', 'lang', 'non_public_metrics', 'note_tweet', 'organic_metrics', 'possibly_sensitive', 'promoted_metrics', 'public_metrics', 'referenced_tweets', 'reply_settings', 'scopes', 'source', 'text', 'username', 'withheld']".
1119
-
1119
+
1120
1120
  Returns:
1121
1121
  dict[str, Any]: The request has succeeded.
1122
-
1122
+
1123
1123
  Raises:
1124
1124
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1125
1125
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1126
-
1126
+
1127
1127
  Tags:
1128
1128
  Users
1129
1129
  """
@@ -1160,7 +1160,7 @@ class TweetsApi(APISegmentBase):
1160
1160
  ) -> dict[str, Any]:
1161
1161
  """
1162
1162
  Retrieves a list of tweets that have quoted a specified tweet ID. Supports pagination and allows for response customization by specifying additional data fields for tweets, media, users, polls, and places through various expansion parameters.
1163
-
1163
+
1164
1164
  Args:
1165
1165
  id (string): id
1166
1166
  max_results (integer): Specifies the maximum number of quote Tweets to return in the response, ranging from 1 to 100, with a default of 10.
@@ -1172,14 +1172,14 @@ class TweetsApi(APISegmentBase):
1172
1172
  poll_fields (array): A comma separated list of Poll fields to display. Example: "['duration_minutes', 'end_datetime', 'id', 'options', 'voting_status']".
1173
1173
  user_fields (array): A comma separated list of User fields to display. Example: "['affiliation', 'connection_status', 'created_at', 'description', 'entities', 'id', 'location', 'most_recent_tweet_id', 'name', 'pinned_tweet_id', 'profile_banner_url', 'profile_image_url', 'protected', 'public_metrics', 'receives_your_dm', 'subscription_type', 'url', 'username', 'verified', 'verified_type', 'withheld']".
1174
1174
  place_fields (array): A comma separated list of Place fields to display. Example: "['contained_within', 'country', 'country_code', 'full_name', 'geo', 'id', 'name', 'place_type']".
1175
-
1175
+
1176
1176
  Returns:
1177
1177
  dict[str, Any]: The request has succeeded.
1178
-
1178
+
1179
1179
  Raises:
1180
1180
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1181
1181
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1182
-
1182
+
1183
1183
  Tags:
1184
1184
  Tweets
1185
1185
  """
@@ -1216,7 +1216,7 @@ class TweetsApi(APISegmentBase):
1216
1216
  ) -> dict[str, Any]:
1217
1217
  """
1218
1218
  Retrieves a list of users who retweeted a specific tweet, identified by its ID. Supports pagination and allows customizing the response with optional fields. This function returns user objects, unlike `find_tweets_that_retweet_atweet` which returns the actual retweet objects.
1219
-
1219
+
1220
1220
  Args:
1221
1221
  id (string): id
1222
1222
  max_results (integer): The `max_results` parameter specifies the maximum number of users to return who have retweeted the specified Tweet, with a default value of 100 and a required range of 1 to 100.
@@ -1224,14 +1224,14 @@ class TweetsApi(APISegmentBase):
1224
1224
  user_fields (array): A comma separated list of User fields to display. Example: "['affiliation', 'connection_status', 'created_at', 'description', 'entities', 'id', 'location', 'most_recent_tweet_id', 'name', 'pinned_tweet_id', 'profile_banner_url', 'profile_image_url', 'protected', 'public_metrics', 'receives_your_dm', 'subscription_type', 'url', 'username', 'verified', 'verified_type', 'withheld']".
1225
1225
  expansions (array): A comma separated list of fields to expand. Example: "['affiliation.user_id', 'most_recent_tweet_id', 'pinned_tweet_id']".
1226
1226
  tweet_fields (array): A comma separated list of Tweet fields to display. Example: "['article', 'attachments', 'author_id', 'card_uri', 'context_annotations', 'conversation_id', 'created_at', 'edit_controls', 'edit_history_tweet_ids', 'entities', 'geo', 'id', 'in_reply_to_user_id', 'lang', 'non_public_metrics', 'note_tweet', 'organic_metrics', 'possibly_sensitive', 'promoted_metrics', 'public_metrics', 'referenced_tweets', 'reply_settings', 'scopes', 'source', 'text', 'username', 'withheld']".
1227
-
1227
+
1228
1228
  Returns:
1229
1229
  dict[str, Any]: The request has succeeded.
1230
-
1230
+
1231
1231
  Raises:
1232
1232
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1233
1233
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1234
-
1234
+
1235
1235
  Tags:
1236
1236
  Users
1237
1237
  """
@@ -1267,7 +1267,7 @@ class TweetsApi(APISegmentBase):
1267
1267
  ) -> dict[str, Any]:
1268
1268
  """
1269
1269
  Retrieves Tweet objects that are retweets of a specified tweet ID, supporting pagination and data customization. This function returns the actual retweets, distinguishing it from `tweets_id_retweeting_users` which returns the users who retweeted.
1270
-
1270
+
1271
1271
  Args:
1272
1272
  id (string): id
1273
1273
  max_results (integer): Specifies the maximum number of retweets to return per request, with a default of 100 and a maximum value of 100.
@@ -1278,14 +1278,14 @@ class TweetsApi(APISegmentBase):
1278
1278
  poll_fields (array): A comma separated list of Poll fields to display. Example: "['duration_minutes', 'end_datetime', 'id', 'options', 'voting_status']".
1279
1279
  user_fields (array): A comma separated list of User fields to display. Example: "['affiliation', 'connection_status', 'created_at', 'description', 'entities', 'id', 'location', 'most_recent_tweet_id', 'name', 'pinned_tweet_id', 'profile_banner_url', 'profile_image_url', 'protected', 'public_metrics', 'receives_your_dm', 'subscription_type', 'url', 'username', 'verified', 'verified_type', 'withheld']".
1280
1280
  place_fields (array): A comma separated list of Place fields to display. Example: "['contained_within', 'country', 'country_code', 'full_name', 'geo', 'id', 'name', 'place_type']".
1281
-
1281
+
1282
1282
  Returns:
1283
1283
  dict[str, Any]: The request has succeeded.
1284
-
1284
+
1285
1285
  Raises:
1286
1286
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1287
1287
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1288
-
1288
+
1289
1289
  Tags:
1290
1290
  Tweets
1291
1291
  """
@@ -1313,18 +1313,18 @@ class TweetsApi(APISegmentBase):
1313
1313
  def set_reply_visibility(self, tweet_id, hidden=None) -> dict[str, Any]:
1314
1314
  """
1315
1315
  Updates the visibility of a specific reply tweet. This function sends a PUT request to hide or unhide a reply, identified by its `tweet_id`, based on the provided boolean `hidden` parameter, thus managing its state within a conversation.
1316
-
1316
+
1317
1317
  Args:
1318
1318
  tweet_id (string): tweet_id
1319
1319
  hidden (boolean): hidden
1320
-
1320
+
1321
1321
  Returns:
1322
1322
  dict[str, Any]: The request has succeeded.
1323
-
1323
+
1324
1324
  Raises:
1325
1325
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1326
1326
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1327
-
1327
+
1328
1328
  Tags:
1329
1329
  Tweets
1330
1330
  """