How to login to any account which have captcha in it using http request?
Twitch login with token
-
{"cookies":[{ "domain":".twitch.tv","name":"auth-token","value":"[[TOKEN]]"}]}
Экшн "Загрузить куки"

-
@Metaferssance Thanks i try it later when im home :)
u also know how i can use this ?
curl -X POST 'https://api.twitch.tv/helix/eventsub/subscriptions' \ -H 'Authorization: Bearer 2gbdx6oar67tqtcmt49t3wpcgycthx' \ -H 'Client-Id: wbmytr93xzw8zbg0p1izqyzzc5mbiz' \ -H 'Content-Type: application/json' \ -d '{"type":"channel.follow","version":"1","condition":{"broadcaster_user_id":"1234"},"transport":{"method":"webhook","callback":"https://example.com/callback","secret":"s3cre77890ab"}}' -
@LongDong Попробуй поискать исходники различных программ на github
Возможно там будет код для подписок с помощью токенов
И так же если тебе нужна авторизация в http-клиенте то это экшн
"HTTP-Клиент Загрузить cookies"
Ну и потом отправляешь нужный запрос с нужными данными на подписку, должно сработать.
Советую поискать готовый код на гитхабе и адаптировать его под бас. -
@LongDong said in Twitch login with token:
@Metaferssance Thanks i try it later when im home :)
u also know how i can use this ?
curl -X POST 'https://api.twitch.tv/helix/eventsub/subscriptions' \ -H 'Authorization: Bearer 2gbdx6oar67tqtcmt49t3wpcgycthx' \ -H 'Client-Id: wbmytr93xzw8zbg0p1izqyzzc5mbiz' \ -H 'Content-Type: application/json' \ -d '{"type":"channel.follow","version":"1","condition":{"broadcaster_user_id":"1234"},"transport":{"method":"webhook","callback":"https://example.com/callback","secret":"s3cre77890ab"}}'Send POST request with Content-Type "application/json", where following params are equal to args from curl:
-d POST body
-h - headers (you should send just Cliend-Id and Authorization headers) -
-
have you checked the cookies? most websites use the bearer token system,
maybe there is something like a "auth_token" cookie, you can create it and paste a twitch token in it and reload page and maybe it'll login. For twitter it works like this, maybe it does the same for twitch -
@gabechico06 На твич недавно защиту от подписок через обычные запросы добавили, просто так теперь они работать не будут, нужно спец токен генерировать
-
You guys found out how to do this? I've been breaking my head on this issue
-
@Metaferssance Привет можешь подробнее рассказать что за спец токен и как его взять и где?