google / python-lakeside

Apache License 2.0
45 stars 18 forks source link

URL for API authentication is not working anymore #19

Closed dclobato closed 4 years ago

dclobato commented 4 years ago

It appears to me that the URL used for authentication (https://home-api.eufylife.com/v1/user/email/login) is not working anymore.

bemasher commented 4 years ago

I just checked the current version of the iOS app through a proxy on my desktop that it is still using that URL and the same POST body:

POST https://home-api.eufylife.com/v1/user/email/login

{"email":"username@email-server.com","password":"password1","client_id":"eufyhome-app","client_secret":"GQCpr9dSp3uQpsOMgJ4xQ"}`
{
    "access_token": "@#$%#%$&^#%^$&#%$^@#$%@$#",
    "email": "username@email.com",
    "expires_in": 7776000,
    "refresh_token": "#$%*()#$%*(@#!#%$%$^&^&*",
    "res_code": 1,
    "token_type": "Bearer",
    "user_id": "000000",
    "user_info": {
        "id": "000000",
        "nick_name": "username",
        "email": "username@email.com",
        "mobile": "",
        "phone_code": "1",
        "country": "US",
        "timezone": "America/Phoenix",
        "avatar": "",
        "unit_height": "",
        "registered_region": "US",
        "request_host": "https://api.eufylife.com",
        "t9147_sdk_flag": 0,
        "language": "en"
    }
}
dclobato commented 4 years ago

weird... Now it is working fine :-/

Better close this issue...