Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (7 sloc) 385 Bytes
import requests
tagtogAPIUrl = "https://www.tagtog.net/-api/settings/v1/folders/add"
auth = requests.auth.HTTPBasicAuth(username='username', password='password')
params = {'project':'projectName', 'owner': 'ownername'}
payload = {'parentPath': 'pool', 'newFolderName':'myNewFolder'}
response = requests.post(tagtogAPIUrl, auth=auth, json=payload, params=params)
print(response.text)
You can’t perform that action at this time.