Hey Im trying to implement your solution in node and Im getting 401 on login requests
Can you help me find the problem, this is my headers:
headers:
{ '9GAG-9GAG_TOKEN': 'b9116705f47c6a1ea0dab3704299c74e2f90e7af',
'9GAG-TIMESTAMP': '1512853562688',
'9GAG-APP_ID': 'com.ninegag.android.app',
'9GAG-DEVICE_UUID': 'e11e2abd6bee41478d570fc7a8cfe35a',
'X-Device-UUID': 'e11e2abd6bee41478d570fc7a8cfe35a',
'9GAG-DEVICE_TYPE': 'android',
'9GAG-BUCKET_NAME': 'MAIN_RELEASE',
'X-Package-ID': 'com.ninegag.android.app',
'9GAG-REQUEST-SIGNATURE': '7880eb1a0bfb953e964938faf5f94409c9271f20' },
and this is my login uri :
http://api.9gag.com/v2/user-token/loginMethod/9gag/loginName/dummymail@gmail.com/password/c3581516868fb3b71746931cac66390e/language/en_US/pushToken/ae3f12b4db9090723b468ebde1589d1a2a93fe9a
And Im getting a 401 with:
{"meta":{"errorMessage":"Not authorized.","status":"Failure","errorCode":"UNAUTHORIZED","sid":"9gVQ01EVjlHTUVkMMRVTywEVFRjTn1TY"},"data":{"dummyField":"dummyValue"}}
I changed my real email for dummyMail but in the original request its my real 9gag mail - user.
I checked first with your code (which is working by me) and run some checks, I generate the same signature as you (based on the same timestamp, same uuid and appid picked from your code).
Im getting Mad :(
BTW you have duplicated X-Package-ID header in your code :
headers = {
'9GAG-9GAG_TOKEN': self.token,
'9GAG-TIMESTAMP': str(utils.get_timestamp()),
'9GAG-APP_ID': self.app_id,
'X-Package-ID': self.app_id,
'9GAG-DEVICE_UUID': self.device_uuid,
'X-Device-UUID': self.device_uuid,
'9GAG-DEVICE_TYPE': 'android',
'9GAG-BUCKET_NAME': 'MAIN_RELEASE',
'X-Package-ID': 'com.ninegag.android.app'
}
Thanks in Advance!
Regards.
Hey Im trying to implement your solution in node and Im getting 401 on login requests
Can you help me find the problem, this is my headers:
headers:
{ '9GAG-9GAG_TOKEN': 'b9116705f47c6a1ea0dab3704299c74e2f90e7af',
'9GAG-TIMESTAMP': '1512853562688',
'9GAG-APP_ID': 'com.ninegag.android.app',
'9GAG-DEVICE_UUID': 'e11e2abd6bee41478d570fc7a8cfe35a',
'X-Device-UUID': 'e11e2abd6bee41478d570fc7a8cfe35a',
'9GAG-DEVICE_TYPE': 'android',
'9GAG-BUCKET_NAME': 'MAIN_RELEASE',
'X-Package-ID': 'com.ninegag.android.app',
'9GAG-REQUEST-SIGNATURE': '7880eb1a0bfb953e964938faf5f94409c9271f20' },
and this is my login uri :
http://api.9gag.com/v2/user-token/loginMethod/9gag/loginName/dummymail@gmail.com/password/c3581516868fb3b71746931cac66390e/language/en_US/pushToken/ae3f12b4db9090723b468ebde1589d1a2a93fe9a
And Im getting a 401 with:
{"meta":{"errorMessage":"Not authorized.","status":"Failure","errorCode":"UNAUTHORIZED","sid":"9gVQ01EVjlHTUVkMMRVTywEVFRjTn1TY"},"data":{"dummyField":"dummyValue"}}
I changed my real email for dummyMail but in the original request its my real 9gag mail - user.
I checked first with your code (which is working by me) and run some checks, I generate the same signature as you (based on the same timestamp, same uuid and appid picked from your code).
Im getting Mad :(
BTW you have duplicated X-Package-ID header in your code :
Thanks in Advance!
Regards.