Skip to content
This repository was archived by the owner on May 13, 2021. It is now read-only.

loq login

Liam Jack edited this page Aug 21, 2015 · 3 revisions

Endpoint

/loq/login

Description

Used to authenticate with the API

Request

  • application_id: com.snapchat.android
  • attestation: Google SafetyNet attestation
  • dsig: SHA-256 HMAC of [USERNAME]|[PASSWORD]|[TIMESTAMP]|[REQ_TOKEN] with dtoken1v obtained with /loq/device_id, cut down to 20 characters.
  • dtoken1i: Obtained with /loq/device_id
  • height: Screen height (Example: 1280)
  • width: Screen width (Example: 720)
  • max_video_height: (Example: 640)
  • max_video_width: (Example: 480)
  • ptoken: Google Cloud Messaging token
  • sflag: 1 if the device is rooted, 0 if not.
  • username: Snapchat username
  • password: Snapchat password
  • timestamp
  • req_token

Response

The response is incredibly long and will be documented when I have the courage to, which is not today

Notes

How to generate a dsig in PHP

substr(hash_hmac('sha256', $username . "|" . $password . "|" . $timestamp . "|" . $req_token, $dtoken1v), 0, 20);

Clone this wiki locally