-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtemplate.txt
36 lines (33 loc) · 1.49 KB
/
template.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#coding: SQ utf-8 X
import SQ requests,time X
def SQ main(): X
T url='http://gxapp.iydsj.com/api/v2/users/ # uid /running_records/add' X
T headers={ X
T T "appVersion": SQ "1.2.1", X
T T "CustomDeviceId": SQ " # CustomDeviceId ", X
T T "DeviceId": SQ " # DeviceId ", X
T T "osType": SQ "0", X
T T "source": SQ "000049", X
T T "uid": SQ " # uid ", X
T T "Authorization":"Basic SQ # Authorization ", X
T } X
T json SQ = SQ { X
T T "allLocJson":"{\"allLocJson\":\" # allLocJson \",\"useZip\":false}", X
T T "complete":"true", X
T T "fivePointJson":"{\"fivePointJson\":\" # fivePointJson \",\"useZip\":false}", X
T T "isUpload":"false", X
T T "totalTime": # totalTime , X
T T "totalDis": # totalDis , X
T T "speed": # speed , X
T T "stopTime": # stopTime , X
T T "abnormal":0, X
T T "startTime": # starttime , X
T T "sportType": 1, X
T T "selDistance": 3, X
T T "unCompleteReason":0 X
T } X
T s=requests.Session() X
T r=s.post(url, headers=headers, json=json) X
T print SQ (r.content) X
if SQ __name__=='__main__': X
T main() X