twitter-openapi-typescript-generated 0.0.11 → 0.0.13
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.
- package/.openapi-generator/FILES +18 -0
- package/LICENSE +31 -31
- package/LICENSE.AGPL +660 -660
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +86 -18
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/OtherApi.d.ts.map +1 -1
- package/dist/apis/OtherApi.js +43 -9
- package/dist/apis/OtherApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts.map +1 -1
- package/dist/apis/PostApi.js +264 -60
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +1 -2
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +479 -111
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +1 -0
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +92 -18
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +0 -1
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +215 -51
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/apis/UsersApi.d.ts.map +1 -1
- package/dist/apis/UsersApi.js +43 -9
- package/dist/apis/UsersApi.js.map +1 -1
- package/dist/apis/V11GetApi.d.ts.map +1 -1
- package/dist/apis/V11GetApi.js +86 -18
- package/dist/apis/V11GetApi.js.map +1 -1
- package/dist/apis/V11PostApi.d.ts.map +1 -1
- package/dist/apis/V11PostApi.js +72 -6
- package/dist/apis/V11PostApi.js.map +1 -1
- package/dist/apis/V20GetApi.d.ts.map +1 -1
- package/dist/apis/V20GetApi.js +43 -9
- package/dist/apis/V20GetApi.js.map +1 -1
- package/dist/models/BirdwatchEntity.d.ts +45 -0
- package/dist/models/BirdwatchEntity.d.ts.map +1 -0
- package/dist/models/BirdwatchEntity.js +58 -0
- package/dist/models/BirdwatchEntity.js.map +1 -0
- package/dist/models/BirdwatchEntityRef.d.ts +58 -0
- package/dist/models/BirdwatchEntityRef.d.ts.map +1 -0
- package/dist/models/BirdwatchEntityRef.js +69 -0
- package/dist/models/BirdwatchEntityRef.js.map +1 -0
- package/dist/models/BirdwatchPivot.d.ts +91 -0
- package/dist/models/BirdwatchPivot.d.ts.map +1 -0
- package/dist/models/BirdwatchPivot.js +87 -0
- package/dist/models/BirdwatchPivot.js.map +1 -0
- package/dist/models/BirdwatchPivotFooter.d.ts +39 -0
- package/dist/models/BirdwatchPivotFooter.d.ts.map +1 -0
- package/dist/models/BirdwatchPivotFooter.js +55 -0
- package/dist/models/BirdwatchPivotFooter.js.map +1 -0
- package/dist/models/BirdwatchPivotNote.d.ts +32 -0
- package/dist/models/BirdwatchPivotNote.d.ts.map +1 -0
- package/dist/models/BirdwatchPivotNote.js +51 -0
- package/dist/models/BirdwatchPivotNote.js.map +1 -0
- package/dist/models/BirdwatchPivotSubtitle.d.ts +39 -0
- package/dist/models/BirdwatchPivotSubtitle.d.ts.map +1 -0
- package/dist/models/BirdwatchPivotSubtitle.js +55 -0
- package/dist/models/BirdwatchPivotSubtitle.js.map +1 -0
- package/dist/models/ContentItemType.d.ts +1 -0
- package/dist/models/ContentItemType.d.ts.map +1 -1
- package/dist/models/ContentItemType.js +2 -1
- package/dist/models/ContentItemType.js.map +1 -1
- package/dist/models/CoverCta.d.ts +1 -1
- package/dist/models/CoverCta.d.ts.map +1 -1
- package/dist/models/CoverCta.js +1 -2
- package/dist/models/CoverCta.js.map +1 -1
- package/dist/models/DeleteRetweet.d.ts +33 -0
- package/dist/models/DeleteRetweet.d.ts.map +1 -0
- package/dist/models/DeleteRetweet.js +52 -0
- package/dist/models/DeleteRetweet.js.map +1 -0
- package/dist/models/DeleteRetweetResponseResult.d.ts +33 -0
- package/dist/models/DeleteRetweetResponseResult.d.ts.map +1 -0
- package/dist/models/DeleteRetweetResponseResult.js +52 -0
- package/dist/models/DeleteRetweetResponseResult.js.map +1 -0
- package/dist/models/ErrorResponse.d.ts +33 -0
- package/dist/models/ErrorResponse.d.ts.map +1 -0
- package/dist/models/ErrorResponse.js +52 -0
- package/dist/models/ErrorResponse.js.map +1 -0
- package/dist/models/ExtMediaAvailability.d.ts +7 -0
- package/dist/models/ExtMediaAvailability.d.ts.map +1 -1
- package/dist/models/ExtMediaAvailability.js +4 -1
- package/dist/models/ExtMediaAvailability.js.map +1 -1
- package/dist/models/Extensions.d.ts +57 -0
- package/dist/models/Extensions.d.ts.map +1 -0
- package/dist/models/Extensions.js +64 -0
- package/dist/models/Extensions.js.map +1 -0
- package/dist/models/ItemContentUnion.d.ts +3 -0
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.js +5 -0
- package/dist/models/ItemContentUnion.js.map +1 -1
- package/dist/models/ListTweetsTimeline.d.ts +1 -1
- package/dist/models/ListTweetsTimeline.d.ts.map +1 -1
- package/dist/models/ListTweetsTimeline.js +2 -2
- package/dist/models/ListTweetsTimeline.js.map +1 -1
- package/dist/models/MediaExtended.d.ts +1 -1
- package/dist/models/MediaExtended.d.ts.map +1 -1
- package/dist/models/MediaExtended.js +1 -2
- package/dist/models/MediaExtended.js.map +1 -1
- package/dist/models/NoteTweet.d.ts +39 -0
- package/dist/models/NoteTweet.d.ts.map +1 -0
- package/dist/models/NoteTweet.js +55 -0
- package/dist/models/NoteTweet.js.map +1 -0
- package/dist/models/NoteTweetResult.d.ts +33 -0
- package/dist/models/NoteTweetResult.d.ts.map +1 -0
- package/dist/models/NoteTweetResult.js +52 -0
- package/dist/models/NoteTweetResult.js.map +1 -0
- package/dist/models/NoteTweetResultData.d.ts +59 -0
- package/dist/models/NoteTweetResultData.d.ts.map +1 -0
- package/dist/models/NoteTweetResultData.js +65 -0
- package/dist/models/NoteTweetResultData.js.map +1 -0
- package/dist/models/NoteTweetResultMedia.d.ts +32 -0
- package/dist/models/NoteTweetResultMedia.d.ts.map +1 -0
- package/dist/models/NoteTweetResultMedia.js +51 -0
- package/dist/models/NoteTweetResultMedia.js.map +1 -0
- package/dist/models/NoteTweetResultRichText.d.ts +33 -0
- package/dist/models/NoteTweetResultRichText.d.ts.map +1 -0
- package/dist/models/NoteTweetResultRichText.js +52 -0
- package/dist/models/NoteTweetResultRichText.js.map +1 -0
- package/dist/models/NoteTweetResultRichTextTag.d.ts +52 -0
- package/dist/models/NoteTweetResultRichTextTag.d.ts.map +1 -0
- package/dist/models/NoteTweetResultRichTextTag.js +64 -0
- package/dist/models/NoteTweetResultRichTextTag.js.map +1 -0
- package/dist/models/PostCreateTweetRequestFeatures.d.ts +9 -15
- package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestFeatures.js +9 -12
- package/dist/models/PostCreateTweetRequestFeatures.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +3 -2
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.js +3 -2
- package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +38 -0
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts.map +1 -0
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +54 -0
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js.map +1 -0
- package/dist/models/TimelineCommunity.d.ts +34 -0
- package/dist/models/TimelineCommunity.d.ts.map +1 -0
- package/dist/models/TimelineCommunity.js +59 -0
- package/dist/models/TimelineCommunity.js.map +1 -0
- package/dist/models/Tweet.d.ts +20 -0
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +8 -0
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TypeName.d.ts +1 -0
- package/dist/models/TypeName.d.ts.map +1 -1
- package/dist/models/TypeName.js +1 -0
- package/dist/models/TypeName.js.map +1 -1
- package/dist/models/UserResults.d.ts +1 -1
- package/dist/models/UserResults.d.ts.map +1 -1
- package/dist/models/UserResults.js +2 -2
- package/dist/models/UserResults.js.map +1 -1
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +18 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +2 -3
- package/src/apis/DefaultApi.ts +94 -6
- package/src/apis/OtherApi.ts +47 -3
- package/src/apis/PostApi.ts +282 -18
- package/src/apis/TweetApi.ts +526 -51
- package/src/apis/UserApi.ts +103 -6
- package/src/apis/UserListApi.ts +235 -24
- package/src/apis/UsersApi.ts +47 -3
- package/src/apis/V11GetApi.ts +94 -6
- package/src/apis/V11PostApi.ts +94 -6
- package/src/apis/V20GetApi.ts +47 -3
- package/src/models/BirdwatchEntity.ts +91 -0
- package/src/models/BirdwatchEntityRef.ts +102 -0
- package/src/models/BirdwatchPivot.ts +165 -0
- package/src/models/BirdwatchPivotFooter.ts +82 -0
- package/src/models/BirdwatchPivotNote.ts +66 -0
- package/src/models/BirdwatchPivotSubtitle.ts +82 -0
- package/src/models/ContentItemType.ts +2 -1
- package/src/models/CoverCta.ts +2 -3
- package/src/models/DeleteRetweet.ts +73 -0
- package/src/models/DeleteRetweetResponseResult.ts +72 -0
- package/src/models/ErrorResponse.ts +73 -0
- package/src/models/ExtMediaAvailability.ts +10 -1
- package/src/models/Extensions.ts +109 -0
- package/src/models/ItemContentUnion.ts +12 -1
- package/src/models/ListTweetsTimeline.ts +2 -3
- package/src/models/MediaExtended.ts +2 -3
- package/src/models/NoteTweet.ts +82 -0
- package/src/models/NoteTweetResult.ts +73 -0
- package/src/models/NoteTweetResultData.ts +119 -0
- package/src/models/NoteTweetResultMedia.ts +66 -0
- package/src/models/NoteTweetResultRichText.ts +73 -0
- package/src/models/NoteTweetResultRichTextTag.ts +95 -0
- package/src/models/PostCreateTweetRequestFeatures.ts +18 -27
- package/src/models/PostCreateTweetRequestVariablesMedia.ts +11 -4
- package/src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.ts +75 -0
- package/src/models/TimelineCommunity.ts +75 -0
- package/src/models/Tweet.ts +36 -0
- package/src/models/TypeName.ts +1 -0
- package/src/models/UserResults.ts +2 -3
- package/src/models/index.ts +18 -0
- package/tools/openapi-generator-config.yaml +1 -1
- package/twitter-openapi/.vscode/launch.json +8 -0
- package/twitter-openapi/README.md +2 -0
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +5189 -34
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +6987 -34
- package/twitter-openapi/src/config/component/security_schemes.yaml +148 -0
- package/twitter-openapi/src/config/placeholder.json +145 -112
- package/twitter-openapi/src/openapi/paths/timeline.yaml +0 -2
- package/twitter-openapi/src/openapi/schemas/content.yaml +9 -1
- package/twitter-openapi/src/openapi/schemas/general.yaml +2 -2
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +0 -1
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +169 -2
- package/twitter-openapi/src/openapi/schemas/typename.yaml +1 -0
- package/twitter-openapi/src/openapi/schemas/user.yaml +0 -2
- package/twitter-openapi/test/python/test_serialize.py +24 -0
- package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/build.py +35 -31
- package/twitter-openapi/tools/build_config.py +7 -10
- package/twitter-openapi/dist/compatible/paths/bookmarks.yaml +0 -107
- package/twitter-openapi/dist/compatible/paths/follow.yaml +0 -301
- package/twitter-openapi/dist/compatible/paths/other.yaml +0 -99
- package/twitter-openapi/dist/compatible/paths/post.yaml +0 -714
- package/twitter-openapi/dist/compatible/paths/profile.yaml +0 -126
- package/twitter-openapi/dist/compatible/paths/timeline.yaml +0 -416
- package/twitter-openapi/dist/compatible/paths/tweet.yaml +0 -397
- package/twitter-openapi/dist/compatible/paths/user.yaml +0 -233
- package/twitter-openapi/dist/compatible/paths/usertweets.yaml +0 -504
- package/twitter-openapi/dist/compatible/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/compatible/paths/v1.1-post.yaml +0 -237
- package/twitter-openapi/dist/compatible/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/compatible/resources/parameters.yaml +0 -13
- package/twitter-openapi/dist/compatible/response/error.yaml +0 -90
- package/twitter-openapi/dist/compatible/schemas/content.yaml +0 -214
- package/twitter-openapi/dist/compatible/schemas/error.yaml +0 -94
- package/twitter-openapi/dist/compatible/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/compatible/schemas/instruction.yaml +0 -286
- package/twitter-openapi/dist/compatible/schemas/timeline.yaml +0 -27
- package/twitter-openapi/dist/compatible/schemas/tweet.yaml +0 -508
- package/twitter-openapi/dist/compatible/schemas/typename.yaml +0 -23
- package/twitter-openapi/dist/compatible/schemas/user.yaml +0 -222
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -201
- package/twitter-openapi/dist/docs/paths/follow.yaml +0 -587
- package/twitter-openapi/dist/docs/paths/other.yaml +0 -99
- package/twitter-openapi/dist/docs/paths/post.yaml +0 -692
- package/twitter-openapi/dist/docs/paths/profile.yaml +0 -134
- package/twitter-openapi/dist/docs/paths/timeline.yaml +0 -811
- package/twitter-openapi/dist/docs/paths/tweet.yaml +0 -797
- package/twitter-openapi/dist/docs/paths/user.yaml +0 -338
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -1046
- package/twitter-openapi/dist/docs/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/docs/paths/v1.1-post.yaml +0 -237
- package/twitter-openapi/dist/docs/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/docs/resources/parameters.yaml +0 -13
- package/twitter-openapi/dist/docs/response/error.yaml +0 -90
- package/twitter-openapi/dist/docs/schemas/content.yaml +0 -214
- package/twitter-openapi/dist/docs/schemas/error.yaml +0 -94
- package/twitter-openapi/dist/docs/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +0 -286
- package/twitter-openapi/dist/docs/schemas/timeline.yaml +0 -27
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +0 -508
- package/twitter-openapi/dist/docs/schemas/typename.yaml +0 -23
- package/twitter-openapi/dist/docs/schemas/user.yaml +0 -222
package/src/apis/TweetApi.ts
CHANGED
|
@@ -74,20 +74,19 @@ export interface GetSearchTimelineRequest {
|
|
|
74
74
|
pathQueryId: string;
|
|
75
75
|
variables: string;
|
|
76
76
|
features: string;
|
|
77
|
-
fieldToggles: string;
|
|
78
77
|
}
|
|
79
78
|
|
|
80
79
|
export interface GetTweetDetailRequest {
|
|
81
80
|
pathQueryId: string;
|
|
82
81
|
variables: string;
|
|
83
82
|
features: string;
|
|
83
|
+
fieldToggles: string;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
export interface GetUserHighlightsTweetsRequest {
|
|
87
87
|
pathQueryId: string;
|
|
88
88
|
variables: string;
|
|
89
89
|
features: string;
|
|
90
|
-
fieldToggles: string;
|
|
91
90
|
}
|
|
92
91
|
|
|
93
92
|
export interface GetUserMediaRequest {
|
|
@@ -146,15 +145,23 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
146
145
|
}
|
|
147
146
|
|
|
148
147
|
if (this.configuration && this.configuration.apiKey) {
|
|
149
|
-
headerParameters["
|
|
148
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
150
149
|
}
|
|
151
150
|
|
|
152
151
|
if (this.configuration && this.configuration.apiKey) {
|
|
153
|
-
headerParameters["
|
|
152
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
154
153
|
}
|
|
155
154
|
|
|
156
155
|
if (this.configuration && this.configuration.apiKey) {
|
|
157
|
-
headerParameters["
|
|
156
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
160
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
164
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
158
165
|
}
|
|
159
166
|
|
|
160
167
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -173,6 +180,42 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
173
180
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
174
181
|
}
|
|
175
182
|
}
|
|
183
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
184
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
188
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
192
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
196
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
200
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
204
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
208
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
212
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
216
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
217
|
+
}
|
|
218
|
+
|
|
176
219
|
const response = await this.request({
|
|
177
220
|
path: `/graphql/{pathQueryId}/Bookmarks`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
178
221
|
method: 'GET',
|
|
@@ -224,15 +267,23 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
224
267
|
}
|
|
225
268
|
|
|
226
269
|
if (this.configuration && this.configuration.apiKey) {
|
|
227
|
-
headerParameters["
|
|
270
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
228
271
|
}
|
|
229
272
|
|
|
230
273
|
if (this.configuration && this.configuration.apiKey) {
|
|
231
|
-
headerParameters["
|
|
274
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
232
275
|
}
|
|
233
276
|
|
|
234
277
|
if (this.configuration && this.configuration.apiKey) {
|
|
235
|
-
headerParameters["
|
|
278
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
282
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
286
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
236
287
|
}
|
|
237
288
|
|
|
238
289
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -251,6 +302,42 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
251
302
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
252
303
|
}
|
|
253
304
|
}
|
|
305
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
306
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
310
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
314
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
318
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
322
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
326
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
330
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
334
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
338
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
339
|
+
}
|
|
340
|
+
|
|
254
341
|
const response = await this.request({
|
|
255
342
|
path: `/graphql/{pathQueryId}/HomeLatestTimeline`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
256
343
|
method: 'GET',
|
|
@@ -302,15 +389,23 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
302
389
|
}
|
|
303
390
|
|
|
304
391
|
if (this.configuration && this.configuration.apiKey) {
|
|
305
|
-
headerParameters["
|
|
392
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
306
393
|
}
|
|
307
394
|
|
|
308
395
|
if (this.configuration && this.configuration.apiKey) {
|
|
309
|
-
headerParameters["
|
|
396
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
310
397
|
}
|
|
311
398
|
|
|
312
399
|
if (this.configuration && this.configuration.apiKey) {
|
|
313
|
-
headerParameters["
|
|
400
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
404
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
408
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
314
409
|
}
|
|
315
410
|
|
|
316
411
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -329,6 +424,42 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
329
424
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
330
425
|
}
|
|
331
426
|
}
|
|
427
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
428
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
432
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
436
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
440
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
444
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
448
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
452
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
456
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
460
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
461
|
+
}
|
|
462
|
+
|
|
332
463
|
const response = await this.request({
|
|
333
464
|
path: `/graphql/{pathQueryId}/HomeTimeline`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
334
465
|
method: 'GET',
|
|
@@ -380,15 +511,23 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
380
511
|
}
|
|
381
512
|
|
|
382
513
|
if (this.configuration && this.configuration.apiKey) {
|
|
383
|
-
headerParameters["
|
|
514
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
384
515
|
}
|
|
385
516
|
|
|
386
517
|
if (this.configuration && this.configuration.apiKey) {
|
|
387
|
-
headerParameters["
|
|
518
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
388
519
|
}
|
|
389
520
|
|
|
390
521
|
if (this.configuration && this.configuration.apiKey) {
|
|
391
|
-
headerParameters["
|
|
522
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
526
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
530
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
392
531
|
}
|
|
393
532
|
|
|
394
533
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -407,6 +546,42 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
407
546
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
408
547
|
}
|
|
409
548
|
}
|
|
549
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
550
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
554
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
558
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
562
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
566
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
570
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
574
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
578
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
582
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
583
|
+
}
|
|
584
|
+
|
|
410
585
|
const response = await this.request({
|
|
411
586
|
path: `/graphql/{pathQueryId}/Likes`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
412
587
|
method: 'GET',
|
|
@@ -458,15 +633,23 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
458
633
|
}
|
|
459
634
|
|
|
460
635
|
if (this.configuration && this.configuration.apiKey) {
|
|
461
|
-
headerParameters["
|
|
636
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
462
637
|
}
|
|
463
638
|
|
|
464
639
|
if (this.configuration && this.configuration.apiKey) {
|
|
465
|
-
headerParameters["
|
|
640
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
466
641
|
}
|
|
467
642
|
|
|
468
643
|
if (this.configuration && this.configuration.apiKey) {
|
|
469
|
-
headerParameters["
|
|
644
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
648
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
652
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
470
653
|
}
|
|
471
654
|
|
|
472
655
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -485,6 +668,42 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
485
668
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
486
669
|
}
|
|
487
670
|
}
|
|
671
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
672
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
676
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
680
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
684
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
688
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
692
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
696
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
700
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
704
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
705
|
+
}
|
|
706
|
+
|
|
488
707
|
const response = await this.request({
|
|
489
708
|
path: `/graphql/{pathQueryId}/ListLatestTweetsTimeline`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
490
709
|
method: 'GET',
|
|
@@ -519,10 +738,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
519
738
|
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getSearchTimeline.');
|
|
520
739
|
}
|
|
521
740
|
|
|
522
|
-
if (requestParameters.fieldToggles === null || requestParameters.fieldToggles === undefined) {
|
|
523
|
-
throw new runtime.RequiredError('fieldToggles','Required parameter requestParameters.fieldToggles was null or undefined when calling getSearchTimeline.');
|
|
524
|
-
}
|
|
525
|
-
|
|
526
741
|
const queryParameters: any = {};
|
|
527
742
|
|
|
528
743
|
if (requestParameters.variables !== undefined) {
|
|
@@ -533,10 +748,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
533
748
|
queryParameters['features'] = requestParameters.features;
|
|
534
749
|
}
|
|
535
750
|
|
|
536
|
-
if (requestParameters.fieldToggles !== undefined) {
|
|
537
|
-
queryParameters['fieldToggles'] = requestParameters.fieldToggles;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
751
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
541
752
|
|
|
542
753
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -544,15 +755,23 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
544
755
|
}
|
|
545
756
|
|
|
546
757
|
if (this.configuration && this.configuration.apiKey) {
|
|
547
|
-
headerParameters["
|
|
758
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
548
759
|
}
|
|
549
760
|
|
|
550
761
|
if (this.configuration && this.configuration.apiKey) {
|
|
551
|
-
headerParameters["
|
|
762
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
552
763
|
}
|
|
553
764
|
|
|
554
765
|
if (this.configuration && this.configuration.apiKey) {
|
|
555
|
-
headerParameters["
|
|
766
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
770
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
774
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
556
775
|
}
|
|
557
776
|
|
|
558
777
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -571,6 +790,42 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
571
790
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
572
791
|
}
|
|
573
792
|
}
|
|
793
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
794
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
798
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
802
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
806
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
810
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
814
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
818
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
822
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
826
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
827
|
+
}
|
|
828
|
+
|
|
574
829
|
const response = await this.request({
|
|
575
830
|
path: `/graphql/{pathQueryId}/SearchTimeline`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
576
831
|
method: 'GET',
|
|
@@ -605,6 +860,10 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
605
860
|
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getTweetDetail.');
|
|
606
861
|
}
|
|
607
862
|
|
|
863
|
+
if (requestParameters.fieldToggles === null || requestParameters.fieldToggles === undefined) {
|
|
864
|
+
throw new runtime.RequiredError('fieldToggles','Required parameter requestParameters.fieldToggles was null or undefined when calling getTweetDetail.');
|
|
865
|
+
}
|
|
866
|
+
|
|
608
867
|
const queryParameters: any = {};
|
|
609
868
|
|
|
610
869
|
if (requestParameters.variables !== undefined) {
|
|
@@ -615,6 +874,10 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
615
874
|
queryParameters['features'] = requestParameters.features;
|
|
616
875
|
}
|
|
617
876
|
|
|
877
|
+
if (requestParameters.fieldToggles !== undefined) {
|
|
878
|
+
queryParameters['fieldToggles'] = requestParameters.fieldToggles;
|
|
879
|
+
}
|
|
880
|
+
|
|
618
881
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
619
882
|
|
|
620
883
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -622,15 +885,23 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
622
885
|
}
|
|
623
886
|
|
|
624
887
|
if (this.configuration && this.configuration.apiKey) {
|
|
625
|
-
headerParameters["
|
|
888
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
626
889
|
}
|
|
627
890
|
|
|
628
891
|
if (this.configuration && this.configuration.apiKey) {
|
|
629
|
-
headerParameters["
|
|
892
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
630
893
|
}
|
|
631
894
|
|
|
632
895
|
if (this.configuration && this.configuration.apiKey) {
|
|
633
|
-
headerParameters["
|
|
896
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
900
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
904
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
634
905
|
}
|
|
635
906
|
|
|
636
907
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -649,6 +920,42 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
649
920
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
650
921
|
}
|
|
651
922
|
}
|
|
923
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
924
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
928
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
932
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
936
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
940
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
944
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
948
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
952
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
956
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
957
|
+
}
|
|
958
|
+
|
|
652
959
|
const response = await this.request({
|
|
653
960
|
path: `/graphql/{pathQueryId}/TweetDetail`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
654
961
|
method: 'GET',
|
|
@@ -683,10 +990,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
683
990
|
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getUserHighlightsTweets.');
|
|
684
991
|
}
|
|
685
992
|
|
|
686
|
-
if (requestParameters.fieldToggles === null || requestParameters.fieldToggles === undefined) {
|
|
687
|
-
throw new runtime.RequiredError('fieldToggles','Required parameter requestParameters.fieldToggles was null or undefined when calling getUserHighlightsTweets.');
|
|
688
|
-
}
|
|
689
|
-
|
|
690
993
|
const queryParameters: any = {};
|
|
691
994
|
|
|
692
995
|
if (requestParameters.variables !== undefined) {
|
|
@@ -697,10 +1000,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
697
1000
|
queryParameters['features'] = requestParameters.features;
|
|
698
1001
|
}
|
|
699
1002
|
|
|
700
|
-
if (requestParameters.fieldToggles !== undefined) {
|
|
701
|
-
queryParameters['fieldToggles'] = requestParameters.fieldToggles;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
1003
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
705
1004
|
|
|
706
1005
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -708,15 +1007,23 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
708
1007
|
}
|
|
709
1008
|
|
|
710
1009
|
if (this.configuration && this.configuration.apiKey) {
|
|
711
|
-
headerParameters["
|
|
1010
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
712
1011
|
}
|
|
713
1012
|
|
|
714
1013
|
if (this.configuration && this.configuration.apiKey) {
|
|
715
|
-
headerParameters["
|
|
1014
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
716
1015
|
}
|
|
717
1016
|
|
|
718
1017
|
if (this.configuration && this.configuration.apiKey) {
|
|
719
|
-
headerParameters["
|
|
1018
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1022
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1026
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
720
1027
|
}
|
|
721
1028
|
|
|
722
1029
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -735,6 +1042,42 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
735
1042
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
736
1043
|
}
|
|
737
1044
|
}
|
|
1045
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1046
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1050
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1054
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1058
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1062
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1066
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1070
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1074
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1078
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
1079
|
+
}
|
|
1080
|
+
|
|
738
1081
|
const response = await this.request({
|
|
739
1082
|
path: `/graphql/{pathQueryId}/UserHighlightsTweets`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
740
1083
|
method: 'GET',
|
|
@@ -786,15 +1129,23 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
786
1129
|
}
|
|
787
1130
|
|
|
788
1131
|
if (this.configuration && this.configuration.apiKey) {
|
|
789
|
-
headerParameters["
|
|
1132
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
790
1133
|
}
|
|
791
1134
|
|
|
792
1135
|
if (this.configuration && this.configuration.apiKey) {
|
|
793
|
-
headerParameters["
|
|
1136
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
794
1137
|
}
|
|
795
1138
|
|
|
796
1139
|
if (this.configuration && this.configuration.apiKey) {
|
|
797
|
-
headerParameters["
|
|
1140
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1144
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1148
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
798
1149
|
}
|
|
799
1150
|
|
|
800
1151
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -813,6 +1164,42 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
813
1164
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
814
1165
|
}
|
|
815
1166
|
}
|
|
1167
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1168
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1172
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1176
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1180
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1184
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1188
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1192
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1196
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1200
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
1201
|
+
}
|
|
1202
|
+
|
|
816
1203
|
const response = await this.request({
|
|
817
1204
|
path: `/graphql/{pathQueryId}/UserMedia`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
818
1205
|
method: 'GET',
|
|
@@ -864,15 +1251,23 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
864
1251
|
}
|
|
865
1252
|
|
|
866
1253
|
if (this.configuration && this.configuration.apiKey) {
|
|
867
|
-
headerParameters["
|
|
1254
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
868
1255
|
}
|
|
869
1256
|
|
|
870
1257
|
if (this.configuration && this.configuration.apiKey) {
|
|
871
|
-
headerParameters["
|
|
1258
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
872
1259
|
}
|
|
873
1260
|
|
|
874
1261
|
if (this.configuration && this.configuration.apiKey) {
|
|
875
|
-
headerParameters["
|
|
1262
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1266
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1270
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
876
1271
|
}
|
|
877
1272
|
|
|
878
1273
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -891,6 +1286,42 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
891
1286
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
892
1287
|
}
|
|
893
1288
|
}
|
|
1289
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1290
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1294
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1298
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1302
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1306
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1310
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1314
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1318
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1322
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
1323
|
+
}
|
|
1324
|
+
|
|
894
1325
|
const response = await this.request({
|
|
895
1326
|
path: `/graphql/{pathQueryId}/UserTweets`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
896
1327
|
method: 'GET',
|
|
@@ -942,15 +1373,23 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
942
1373
|
}
|
|
943
1374
|
|
|
944
1375
|
if (this.configuration && this.configuration.apiKey) {
|
|
945
|
-
headerParameters["
|
|
1376
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
946
1377
|
}
|
|
947
1378
|
|
|
948
1379
|
if (this.configuration && this.configuration.apiKey) {
|
|
949
|
-
headerParameters["
|
|
1380
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
950
1381
|
}
|
|
951
1382
|
|
|
952
1383
|
if (this.configuration && this.configuration.apiKey) {
|
|
953
|
-
headerParameters["
|
|
1384
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1388
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1392
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
954
1393
|
}
|
|
955
1394
|
|
|
956
1395
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -969,6 +1408,42 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
969
1408
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
970
1409
|
}
|
|
971
1410
|
}
|
|
1411
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1412
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1416
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1420
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1424
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1428
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1432
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1436
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1440
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1444
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
1445
|
+
}
|
|
1446
|
+
|
|
972
1447
|
const response = await this.request({
|
|
973
1448
|
path: `/graphql/{pathQueryId}/UserTweetsAndReplies`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
974
1449
|
method: 'GET',
|