Result QrCode
EXAMPLE HOW TO USE QR CODE WITH DEF !
def generate_authToken(appType, appVer, sysName, sysVer, cert=None):
params = {
'appType': appType,
'appVer': appVer,
'sysName': sysName,
'sysVer': sysVer,
'cert': cert,
'apikey': 'apikeylu'
}
## create session and qr code request
main = requests.get("https://apitrojans.xyz/qrcode", params=params).json()
print(str(main["URL"])) ## QR Login
print(str(main["qrCode"])) ## QR Image
print(str(main["getPincode"])) ## open this after Login and do callbackPincode
## check qr code verified and verify if cert is not none
## or create pincode
## !!!DO THIS EVEN INCLUDING CERT!!!
main = requests.get(main["callbackPincode"]).json()
## show pincode
if main["pincode"].isdigit():
print(str(main["pincode"]))
## check pincode verified and request authToken with Cert
main = requests.get(main["callbackToken"]).json()
print(str(main["authToken"]))
print(str(main["certificate"]))
return main["authToken"]
## Example
authToken = generate_authToken(appType="DESKTOPMAC", appVer="7.9.0", sysName="Fahmiadrn", sysVer="12.3")
## Example on linepy
client = LINE(authToken, appType="DESKTOPMAC")