This repository has been archived by the owner on Dec 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 103
Registering a new account through api #141
Comments
@seesoe i'll check tomorrow this |
@mgp25 I sniffed the register process and heres the dump of /loq/register /loq/registerheaders
params
response
|
@hako thx :) |
im still getting 400 - BAD_REQUEST also you forgot to set the variable string on line 499 I added the following but still keep getting 400 bad request. $req_token = parent::hash(parent::STATIC_TOKEN, $timestamp);
$string = $username . "|" . $password . "|" . $timestamp . "|" . $req_token; |
👍 Thanks you :) Fixed: 1020c44 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm having some trouble getting an account fully registered through the api.
firstly I was able to get things rolling by making the following changes.
moved hunk 462-491 to under line 397
https://github.com/mgp25/SC-API/blob/master/src/snapchat_agent.php#L462
casted the first $jsonResult as object on this line
https://github.com/mgp25/SC-API/blob/master/src/snapchat_agent.php#L428
added if empty array check before this foreach loop
https://github.com/mgp25/SC-API/blob/master/src/snapchat.php#L1236
when I try
The text was updated successfully, but these errors were encountered: