diff --git a/client/api/__init__.py b/client/api/__init__.py index 7d6e78e..2865219 100644 --- a/client/api/__init__.py +++ b/client/api/__init__.py @@ -210,14 +210,15 @@ def get(self): return json.loads(response.text) class imink(): - def __init__(self, id_token, timestamp, guid, iteration): + def __init__(self, na_id, id_token, timestamp, guid, iteration): self.headers = { 'User-Agent': 'NSO-RPC/%s' % version, 'Content-Type': 'application/json; charset=utf-8', } self.body = { 'token': id_token, - 'hashMethod': str(iteration), + 'hash_method': str(iteration), + 'na_id': na_id, } self.url = 'https://api.imink.app' @@ -250,8 +251,9 @@ def __init__(self, userInfo, userLang, accessToken, guid): self.userInfo = userInfo self.accessToken = accessToken + self.na_id = userInfo['id'] - self.imink = imink(self.accessToken, self.timestamp, self.guid, 1).get() + self.imink = imink(self.na_id, self.accessToken, self.timestamp, self.guid, 1).get() self.timestamp = int(self.imink['timestamp']) self.guid = self.imink['request_id']