In the SnapCrack python project on GitHub, looks like it's making a POST request to (you need an account to see links).
PS aforementioned github project looks majorly ripped from (you need an account to see links)
Code:
def _request(self, endpoint, data=None, files=None,
raise_for_status=True, req_type='post'):
return request(endpoint, self.auth_token, data, files,
raise_for_status, req_type)
Code:
def login(self, username, password):
"""Login to Snapchat account
Returns a dict containing user information on successful login, the
data returned is similar to get_updates.
:param username Snapchat username
:param password Snapchat password
"""
self._unset_auth()
r = self._request('login', {
'username': username,
'password': password
})
result = r.json()
if 'auth_token' in result:
self.auth_token = result['auth_token']
if 'username' in result:
self.username = username
return result
Code:
URL = 'https://feelinsonice-hrd.appspot.com/bq/'
def request(endpoint, auth_token, data=None, files=None,
raise_for_status=True, req_type='post'):
"""Wrapper method for calling Snapchat API which adds the required auth
token before sending the request.
:param endpoint: URL for API endpoint
:param data: Dictionary containing form data
:param raise_for_status: Raise exception for 4xx and 5xx status codes
:param req_type: The request type (GET, POST). Defaults to POST
"""
now = timestamp()
if data is None:
data = {}
data.update({
'timestamp': now,
'req_token': make_request_token(auth_token or STATIC_TOKEN,
str(now))
})
headers = {'User-Agent': 'Snapchat/6.1.2 (iPhone6,2; iOS 7.0.4; gzip)'}
if req_type == 'post':
r = requests.post(URL + endpoint, data=data, files=files,
headers=headers)
else:
r = requests.get(URL + endpoint, params=data, headers=headers)
if raise_for_status:
r.raise_for_status()
return r