Skip to content

Commit

Permalink
Update extralives.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vocabexpresshaxer authored Aug 16, 2018
1 parent eab2d04 commit 2637d43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extralives.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, **kwargs):
def verify(phone: str) -> str:
try:
return requests.post("https://api-quiz.hype.space/verifications", headers={
"x-hq-client": "iOS/1.3.12 b96"}, data={
"x-hq-client": "Android/1.15.0"}, data={
"method": "sms",
"phone": phone
}).json()["verificationId"]
Expand All @@ -65,7 +65,7 @@ def verify(phone: str) -> str:

def verify2(phone: str) -> str:
try:
return requests.post("https://api-quiz.hype.space/verifications", headers={"x-hq-client": "iOS/1.3.12 b96"},
return requests.post("https://api-quiz.hype.space/verifications", headers={"x-hq-client": "Android/1.15.0"},
data={
"method": "call",
"phone": phone
Expand Down Expand Up @@ -151,7 +151,7 @@ def __init__(self, **kwargs):


class HQClient:
def __init__(self, auth_token: str, client: str="Android/1.6.2", user_agent: str="okhttp/3.8.0", caching=False, cache_time=15, no_ws_requests=False):
def __init__(self, auth_token: str, client: str="Android/1.15.0", user_agent: str="okhttp/3.8.0", caching=False, cache_time=15, no_ws_requests=False):
self.auth_token = auth_token
self.headers = {
"x-hq-client": client,
Expand All @@ -171,7 +171,7 @@ def default_headers(self) -> dict:
return {
"x-hq-client": self.headers["x-hq-client"],
"authorization": "Bearer " + self.auth_token,
"user-agent": self.headers["user-agent"]
"user-agent": "Android/1.15.0"
}

def valid_auth(self) -> bool:
Expand Down

0 comments on commit 2637d43

Please sign in to comment.