Skip to content

Instantly share code, notes, and snippets.

@taylorfinnell
Last active August 29, 2015 14:09
Show Gist options
  • Save taylorfinnell/b4fc6e79dab18e6d3569 to your computer and use it in GitHub Desktop.
Save taylorfinnell/b4fc6e79dab18e6d3569 to your computer and use it in GitHub Desktop.
Snapcash Notes.
Notes on how Snapchat (Snapcash) sends money
On first launch
POST https://feelinsonice-hrd.appspot.com/cash/generate_signature_for_phone
req_token: snip
timestamp: 1416351364135
username: snip
=>
{
"phone_number": "snip",
"signature": "snip",
"status": "OK"
}
Then
With same request as above
POST https://feelinsonice-hrd.appspot.com/cash/generate_access_token
=>
{
"access_token": {
"access_token": "snip",
"expires_at": "2014-12-18T22:56:02Z",
"token_type": "bearer"
},
"status": "OK"
}
With that access token you can at least query transaction history
Authorization: Bearer <access_token>
GET https://cash.square.com/v1/me/cash/payments?limit=20&order=DESC&no_drafts=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment