Skip to content

Commit 52e8b4c

Browse files
committed
add x-guest-token
Signed-off-by: ふぁ <yuki@yuki0311.com>
1 parent b54a2a5 commit 52e8b4c

File tree

11 files changed

+102
-2
lines changed

11 files changed

+102
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.6.0
1+
6.5.0

twitter-openapi-typescript-generated/src/apis/DefaultApi.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ export class DefaultApi extends runtime.BaseAPI {
8585
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
8686
}
8787

88+
if (this.configuration && this.configuration.apiKey) {
89+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
90+
}
91+
8892
if (this.configuration && this.configuration.accessToken) {
8993
const token = this.configuration.accessToken;
9094
const tokenString = await token("BearerAuth", []);

twitter-openapi-typescript-generated/src/apis/OtherApi.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ export class OtherApi extends runtime.BaseAPI {
5555
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
5656
}
5757

58+
if (this.configuration && this.configuration.apiKey) {
59+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
60+
}
61+
5862
if (this.configuration && this.configuration.accessToken) {
5963
const token = this.configuration.accessToken;
6064
const tokenString = await token("BearerAuth", []);

twitter-openapi-typescript-generated/src/apis/PostApi.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ export class PostApi extends runtime.BaseAPI {
118118
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
119119
}
120120

121+
if (this.configuration && this.configuration.apiKey) {
122+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
123+
}
124+
121125
if (this.configuration && this.configuration.accessToken) {
122126
const token = this.configuration.accessToken;
123127
const tokenString = await token("BearerAuth", []);
@@ -179,6 +183,10 @@ export class PostApi extends runtime.BaseAPI {
179183
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
180184
}
181185

186+
if (this.configuration && this.configuration.apiKey) {
187+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
188+
}
189+
182190
if (this.configuration && this.configuration.accessToken) {
183191
const token = this.configuration.accessToken;
184192
const tokenString = await token("BearerAuth", []);
@@ -240,6 +248,10 @@ export class PostApi extends runtime.BaseAPI {
240248
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
241249
}
242250

251+
if (this.configuration && this.configuration.apiKey) {
252+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
253+
}
254+
243255
if (this.configuration && this.configuration.accessToken) {
244256
const token = this.configuration.accessToken;
245257
const tokenString = await token("BearerAuth", []);
@@ -301,6 +313,10 @@ export class PostApi extends runtime.BaseAPI {
301313
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
302314
}
303315

316+
if (this.configuration && this.configuration.apiKey) {
317+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
318+
}
319+
304320
if (this.configuration && this.configuration.accessToken) {
305321
const token = this.configuration.accessToken;
306322
const tokenString = await token("BearerAuth", []);
@@ -362,6 +378,10 @@ export class PostApi extends runtime.BaseAPI {
362378
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
363379
}
364380

381+
if (this.configuration && this.configuration.apiKey) {
382+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
383+
}
384+
365385
if (this.configuration && this.configuration.accessToken) {
366386
const token = this.configuration.accessToken;
367387
const tokenString = await token("BearerAuth", []);
@@ -423,6 +443,10 @@ export class PostApi extends runtime.BaseAPI {
423443
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
424444
}
425445

446+
if (this.configuration && this.configuration.apiKey) {
447+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
448+
}
449+
426450
if (this.configuration && this.configuration.accessToken) {
427451
const token = this.configuration.accessToken;
428452
const tokenString = await token("BearerAuth", []);

twitter-openapi-typescript-generated/src/apis/TweetApi.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ export class TweetApi extends runtime.BaseAPI {
145145
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
146146
}
147147

148+
if (this.configuration && this.configuration.apiKey) {
149+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
150+
}
151+
148152
if (this.configuration && this.configuration.accessToken) {
149153
const token = this.configuration.accessToken;
150154
const tokenString = await token("BearerAuth", []);
@@ -223,6 +227,10 @@ export class TweetApi extends runtime.BaseAPI {
223227
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
224228
}
225229

230+
if (this.configuration && this.configuration.apiKey) {
231+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
232+
}
233+
226234
if (this.configuration && this.configuration.accessToken) {
227235
const token = this.configuration.accessToken;
228236
const tokenString = await token("BearerAuth", []);
@@ -301,6 +309,10 @@ export class TweetApi extends runtime.BaseAPI {
301309
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
302310
}
303311

312+
if (this.configuration && this.configuration.apiKey) {
313+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
314+
}
315+
304316
if (this.configuration && this.configuration.accessToken) {
305317
const token = this.configuration.accessToken;
306318
const tokenString = await token("BearerAuth", []);
@@ -379,6 +391,10 @@ export class TweetApi extends runtime.BaseAPI {
379391
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
380392
}
381393

394+
if (this.configuration && this.configuration.apiKey) {
395+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
396+
}
397+
382398
if (this.configuration && this.configuration.accessToken) {
383399
const token = this.configuration.accessToken;
384400
const tokenString = await token("BearerAuth", []);
@@ -457,6 +473,10 @@ export class TweetApi extends runtime.BaseAPI {
457473
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
458474
}
459475

476+
if (this.configuration && this.configuration.apiKey) {
477+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
478+
}
479+
460480
if (this.configuration && this.configuration.accessToken) {
461481
const token = this.configuration.accessToken;
462482
const tokenString = await token("BearerAuth", []);
@@ -535,6 +555,10 @@ export class TweetApi extends runtime.BaseAPI {
535555
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
536556
}
537557

558+
if (this.configuration && this.configuration.apiKey) {
559+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
560+
}
561+
538562
if (this.configuration && this.configuration.accessToken) {
539563
const token = this.configuration.accessToken;
540564
const tokenString = await token("BearerAuth", []);
@@ -613,6 +637,10 @@ export class TweetApi extends runtime.BaseAPI {
613637
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
614638
}
615639

640+
if (this.configuration && this.configuration.apiKey) {
641+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
642+
}
643+
616644
if (this.configuration && this.configuration.accessToken) {
617645
const token = this.configuration.accessToken;
618646
const tokenString = await token("BearerAuth", []);
@@ -691,6 +719,10 @@ export class TweetApi extends runtime.BaseAPI {
691719
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
692720
}
693721

722+
if (this.configuration && this.configuration.apiKey) {
723+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
724+
}
725+
694726
if (this.configuration && this.configuration.accessToken) {
695727
const token = this.configuration.accessToken;
696728
const tokenString = await token("BearerAuth", []);
@@ -769,6 +801,10 @@ export class TweetApi extends runtime.BaseAPI {
769801
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
770802
}
771803

804+
if (this.configuration && this.configuration.apiKey) {
805+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
806+
}
807+
772808
if (this.configuration && this.configuration.accessToken) {
773809
const token = this.configuration.accessToken;
774810
const tokenString = await token("BearerAuth", []);

twitter-openapi-typescript-generated/src/apis/UserApi.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ export class UserApi extends runtime.BaseAPI {
8585
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
8686
}
8787

88+
if (this.configuration && this.configuration.apiKey) {
89+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
90+
}
91+
8892
if (this.configuration && this.configuration.accessToken) {
8993
const token = this.configuration.accessToken;
9094
const tokenString = await token("BearerAuth", []);

twitter-openapi-typescript-generated/src/apis/UserListApi.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ export class UserListApi extends runtime.BaseAPI {
9191
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
9292
}
9393

94+
if (this.configuration && this.configuration.apiKey) {
95+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
96+
}
97+
9498
if (this.configuration && this.configuration.accessToken) {
9599
const token = this.configuration.accessToken;
96100
const tokenString = await token("BearerAuth", []);
@@ -169,6 +173,10 @@ export class UserListApi extends runtime.BaseAPI {
169173
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
170174
}
171175

176+
if (this.configuration && this.configuration.apiKey) {
177+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
178+
}
179+
172180
if (this.configuration && this.configuration.accessToken) {
173181
const token = this.configuration.accessToken;
174182
const tokenString = await token("BearerAuth", []);

twitter-openapi-typescript-generated/src/apis/V11GetApi.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ export class V11GetApi extends runtime.BaseAPI {
213213
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
214214
}
215215

216+
if (this.configuration && this.configuration.apiKey) {
217+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
218+
}
219+
216220
if (this.configuration && this.configuration.accessToken) {
217221
const token = this.configuration.accessToken;
218222
const tokenString = await token("BearerAuth", []);
@@ -314,6 +318,10 @@ export class V11GetApi extends runtime.BaseAPI {
314318
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
315319
}
316320

321+
if (this.configuration && this.configuration.apiKey) {
322+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
323+
}
324+
317325
if (this.configuration && this.configuration.accessToken) {
318326
const token = this.configuration.accessToken;
319327
const tokenString = await token("BearerAuth", []);

twitter-openapi-typescript-generated/src/apis/V11PostApi.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ export class V11PostApi extends runtime.BaseAPI {
138138
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
139139
}
140140

141+
if (this.configuration && this.configuration.apiKey) {
142+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
143+
}
144+
141145
if (this.configuration && this.configuration.accessToken) {
142146
const token = this.configuration.accessToken;
143147
const tokenString = await token("BearerAuth", []);
@@ -318,6 +322,10 @@ export class V11PostApi extends runtime.BaseAPI {
318322
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
319323
}
320324

325+
if (this.configuration && this.configuration.apiKey) {
326+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
327+
}
328+
321329
if (this.configuration && this.configuration.accessToken) {
322330
const token = this.configuration.accessToken;
323331
const tokenString = await token("BearerAuth", []);

twitter-openapi-typescript-generated/src/apis/V20GetApi.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,10 @@ export class V20GetApi extends runtime.BaseAPI {
384384
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
385385
}
386386

387+
if (this.configuration && this.configuration.apiKey) {
388+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
389+
}
390+
387391
if (this.configuration && this.configuration.accessToken) {
388392
const token = this.configuration.accessToken;
389393
const tokenString = await token("BearerAuth", []);

0 commit comments

Comments
 (0)