Skip to content

Commit

Permalink
Add changes from issue below to fix myq login
Browse files Browse the repository at this point in the history
  • Loading branch information
dailow committed Oct 11, 2023
1 parent f6db6a5 commit e5e1fc2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pymyq/const.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
"""The myq constants."""

OAUTH_CLIENT_ID = "IOS_CGI_MYQ"
OAUTH_CLIENT_ID = "ANDROID_CGI_MYQ"
OAUTH_CLIENT_SECRET = "VUQ0RFhuS3lQV3EyNUJTdw=="
OAUTH_BASE_URI = "https://partner-identity.myq-cloud.com"
OAUTH_AUTHORIZE_URI = f"{OAUTH_BASE_URI}/connect/authorize"
OAUTH_REDIRECT_URI = "com.myqops://ios"
OAUTH_LOGIN_URI = f"{OAUTH_BASE_URI}/Account/LoginWithEmail"
OAUTH_REDIRECT_URI = "com.myqops://android"
OAUTH_TOKEN_URI = f"{OAUTH_BASE_URI}/connect/token"
OAUTH_REQUIRED_HEADERS = { "brand": "myq",
"UnifiedFlowRequested": True
}

ACCOUNTS_ENDPOINT = "https://accounts.myq-cloud.com/api/v6.0/accounts"
DEVICES_ENDPOINT = (
Expand Down

0 comments on commit e5e1fc2

Please sign in to comment.