This page documents the api for getting data from the Peel Capture website.
Get Companies
https://beta.peelcapture.com/do/api/companies
Returns: string array – list of company names.
url = "http://beta.peelcapture.com/do/api/companies" ret = requests.post(url, auth=('email@domain.com', 'password')) for company in json.loads(ret.content): print(company)
Get Projects
http://beta.peelcapture.com/do/api/projects
Parameter: companyName
Returns: dictionary, Project Id -> Project Name
url = "http://beta.peelcapture.com/do/api/projects" data = {'companyName': 'Company Name'} ret = requests.post(url, data=data, auth=('email@domain.com', 'passsword')) for id, project in json.loads(ret.content).items(): print(id, project)
Get Shoots
http://beta.peelcapture.com/do/api/shoots
Parameter: projectId
Returns: Dictionary: Shoot Id -> Dictionary: uuid, name
url = "http://beta.peelcapture.com/do/api/shoots" data = {'projectId' : 3} ret = requests.post(url, data=data, auth=('email@domain.com', 'passsword')) for id, shoot in json.loads(ret.content).items(): print(id, shoot["uuid"], shoot["name"])
Create new Shoot
http://beta.peelcapture.com/do/api/shoots/new/{id}
Get Takes
http://beta.peelcapture.com/do/api/takes
Parameter: projectId
Returns: Dictionary ShootID -> Dictionary Takes
Parameter shootId
Returns: Array -> Dictionary Take
url = "http://beta.peelcapture.com/do/api/takes" data = {'projectId' : 3} ret = requests.post(url, data=data, auth=('email@domain.com', 'passsword')) for id, take in json.loads(ret.content).items(): print(id, take)
url = "http://beta.peelcapture.com/do/api/takes" data = {'shootId' : 3} ret = requests.post(url, data=data, auth=('email@domain.com', 'passsword')) for take in json.loads(ret.content): print(take)
Get Orders
http://beta.peelcapture.com/do/api/orders
Parameter: projectId
Returns: Dictionary Order Id -> Order name
url = "http://beta.peelcapture.com/do/api/orders" data = {'projectId': 3} ret = requests.post(url, data=data, auth=('email@domain.com', 'passsword')) for order in json.loads(ret.content): print(order)
Get Ranges
http://beta.peelcapture.com/do/api/ranges
Parameter: orderId
Returns: List of Dictionary Ranges
url = "http://beta.peelcapture.com/do/api/ranges" data = {'orderId': 1} ret = requests.post(url, data=data, auth=('email@domain.com', 'passsword')) for range in json.loads(ret.content): print(range)