Skip to content

Commit 4420602

Browse files
Update file_upload_mac_os.py
1 parent 7eaf1e8 commit 4420602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/file_upload_mac_os.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# -*- coding: utf-8 -*-
22
import requests
3-
url = 'https://restapi.tpondemand.com/UploadFile.ashx'
3+
url = 'https://account_name.tpondemand.com/UploadFile.ashx'
44
filename = '/Users/targetprocess/Downloads/qwe.png'
55
f = open (filename, 'rb')
6-
token = 'NjplaXdQeTJDOHVITFBta0QyME85QlhEOWZ0NKWG1RPQ=='
6+
token = 'xxxxxxxxxxxx'
77
params = {'access_token':token}
88
data = {'generalid':'34'}
99
files = {'file':('qwe.png', f, "multipart/form-data")}

0 commit comments

Comments
 (0)