Skip to content
This repository was archived by the owner on Dec 16, 2020. It is now read-only.
This repository was archived by the owner on Dec 16, 2020. It is now read-only.

Registering a new account through api #141

@seesoe

Description

@seesoe

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

$result = $snapchat->sendCaptcha('000111110', 'mysnapusername~1435617404564');
REQUEST TO: https://sc-analytics.appspot.com/post_events
DATA: {"common_params":{"user_id":"e770f49b7ca9a855e883a91e0effe26b57b0bcc82d46e1b6294d38f7037a6f69","city":"Unimplemented","sc_user_agent":"Snapchat\/9.10.0.0 (HTC One; Android 4.4.2#302626.7#19; gzip)","session_id":"00000000-0000-0000-0000-000000000000","region":"Unimplemented","latlon":"Unimplemented","friend_count":-1,"country":"Unimplemented"},"events":[{"event_name":"APP_OPEN","event_timestamp":1435617750198,"event_params":{"open_state":"NORMAL","intent_action":"null"}}],"batch_id":"f8c741f6-02b9-0003-0000-2bef9b70b308-Snapchat91000HTCOneAndroid442302626719gzip1435617750198"}

There was an error registering your account
Error code: 400
BAD_REQUEST

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions