Skip to content

Commit 9059aff

Browse files
feat(api): api update
1 parent e52e7fb commit 9059aff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+75
-3333
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 115
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/xquik%2Fx-twitter-scraper-93bb7d4f1475c8043af464ec88244a034456c549136c8477f284f0a33192e1c9.yml
3-
openapi_spec_hash: 74dca63c872249274ad99b111dea0833
1+
configured_endpoints: 102
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/xquik%2Fx-twitter-scraper-f4a2baf44e99ee3fa87e08d50099bc70680c9ef2e612290ab1f749396266455d.yml
3+
openapi_spec_hash: 1b7655f5b5cc5ffb69e41461cd4d9158
44
config_hash: 8894c96caeb6df84c9394518810221bd

api.md

Lines changed: 18 additions & 70 deletions
Large diffs are not rendered by default.

src/x_twitter_scraper/resources/radar.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
from __future__ import annotations
44

5+
from typing_extensions import Literal
6+
57
import httpx
68

79
from ..types import radar_retrieve_trending_topics_params
@@ -50,7 +52,8 @@ def retrieve_trending_topics(
5052
count: int | Omit = omit,
5153
hours: int | Omit = omit,
5254
region: str | Omit = omit,
53-
source: str | Omit = omit,
55+
source: Literal["github", "google_trends", "hacker_news", "polymarket", "reddit", "trustmrr", "wikipedia"]
56+
| Omit = omit,
5457
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5558
# The extra values given here take precedence over values defined on the client or passed to this method.
5659
extra_headers: Headers | None = None,
@@ -132,7 +135,8 @@ async def retrieve_trending_topics(
132135
count: int | Omit = omit,
133136
hours: int | Omit = omit,
134137
region: str | Omit = omit,
135-
source: str | Omit = omit,
138+
source: Literal["github", "google_trends", "hacker_news", "polymarket", "reddit", "trustmrr", "wikipedia"]
139+
| Omit = omit,
136140
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
137141
# The extra values given here take precedence over values defined on the client or passed to this method.
138142
extra_headers: Headers | None = None,

0 commit comments

Comments
 (0)