Nike+ REST API

Last year I started playing with the Nike+ website; So Nike finally decided to release a proper API to interact with their website. The API is small yet looks functional, but I am having a hard time trying to figure out how to reproduce the results from a simple REST client:

Macintosh:python josevnz$ ./nikeplus_unit_test.py 
send: 'GET /me/sport?access_token=XXXXXX HTTP/1.1\r\nHost: api.nike.com:443\r\nAccept-Encoding: identity\r\nContent-Type: application/jsonrequest\r\nAccept: application/jsonrequest\r\nAppid: Kodegeek/NikePlus\r\n\r\n'
E
======================================================================
ERROR: test_getAggregateSportData (__main__.TestNikePlus)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./nikeplus_unit_test.py", line 16, in test_getAggregateSportData
    activities = activity.getAggregateSportData(True)
  File "/Users/josevnz/Documents/src/python/com/kodegeek/fitness/nikeplus/activity/wrapper.py", line 30, in getAggregateSportData
    res = con.getresponse()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1013, in getresponse
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 402, in begin
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 360, in _read_status
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 430, in readline
error: [Errno 54] Connection reset by peer

----------------------------------------------------------------------
Ran 1 test in 0.570s

FAILED (errors=1)

Contacted the developers, lets see how it goes. But it is exiting, so many possibilities!