1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 15:40:26 +01:00

add guest token

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-06-05 09:20:56 +09:00
parent 44cfa3ea4a
commit 57e5454870
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
5 changed files with 31 additions and 5 deletions

View file

@ -17,10 +17,15 @@ components:
name: ct0
type: apiKey
CsrfToken:
description: document.cookie.split('; ').find(row => row.startsWith('ct0='));
description: ''
in: header
name: x-csrf-token
type: apiKey
GuestToken:
description: document.cookie.split('; ').find(row => row.startsWith('gt='));
in: header
name: x-guest-token
type: apiKey
info:
contact:
email: yuki@yuki0311.com

View file

@ -31,10 +31,15 @@ components:
name: ct0
type: apiKey
CsrfToken:
description: document.cookie.split('; ').find(row => row.startsWith('ct0='));
description: ''
in: header
name: x-csrf-token
type: apiKey
GuestToken:
description: document.cookie.split('; ').find(row => row.startsWith('gt='));
in: header
name: x-guest-token
type: apiKey
UserAgent:
description: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/112.0.0.0 Safari/537.36

View file

@ -31,10 +31,15 @@ components:
name: ct0
type: apiKey
CsrfToken:
description: document.cookie.split('; ').find(row => row.startsWith('ct0='));
description: ''
in: header
name: x-csrf-token
type: apiKey
GuestToken:
description: document.cookie.split('; ').find(row => row.startsWith('gt='));
in: header
name: x-guest-token
type: apiKey
UserAgent:
description: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/112.0.0.0 Safari/537.36

View file

@ -31,10 +31,15 @@ components:
name: ct0
type: apiKey
CsrfToken:
description: document.cookie.split('; ').find(row => row.startsWith('ct0='));
description: ''
in: header
name: x-csrf-token
type: apiKey
GuestToken:
description: document.cookie.split('; ').find(row => row.startsWith('gt='));
in: header
name: x-guest-token
type: apiKey
UserAgent:
description: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/112.0.0.0 Safari/537.36

View file

@ -22,7 +22,7 @@ components:
type: apiKey
in: header
name: x-csrf-token
description: "document.cookie.split('; ').find(row => row.startsWith('ct0='));"
description: ""
CookieCt0:
type: apiKey
@ -30,6 +30,12 @@ components:
name: ct0
description: "document.cookie.split('; ').find(row => row.startsWith('ct0='));"
GuestToken:
type: apiKey
in: header
name: x-guest-token
description: "document.cookie.split('; ').find(row => row.startsWith('gt='));"
CookieAuthToken:
type: apiKey
in: cookie