Skip to content

7aGiven/PhiLogin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhiLogin

SessionToken By Web or QRcode

Introduction

A HTTP Server for API to Login Phigros By Taptap

Python verion by @Dragon_ts

Use

./PhiLogin cors 127.0.0.1:3000

or

./PhiLogin 127.0.0.1:3000

cors argument for auto add CORS Header with no middleware(nginx etc).

API

The {} is Placeholder, Please remove it.

post("/login").body("{device_id}")
response example:
{"device_code":"nieMOsKTp","expires_in":300,"qrcode_url":"https://accounts.taptap.cn/device?qrcode=1&user_code=hycvj"}

device_id: Redmi Note 5, Nova 6(5G), etc

device_code: use at get_token

qrcode_url: Give the url to user, open it on Taptap APP or Web Browser.

post("/token/{device_code}").body("{device_id}")
response example:
{"code":-1,"error":"authorization_pending","error_description":"oauth2.tapapis.com.AUTHORIZATION_PENDING: InvalidArgument: the end-user authorization is pending","msg":"oauth2.tapapis.com.AUTHORIZATION_PENDING: InvalidArgument: the end-user authorization is pending"}
{"sessionToken":"?"}

return code:-1 until user complete qrcode_url

then return sessionToken

About

SessionToken By Web or QRcode

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •