-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
24 lines (18 loc) · 823 Bytes
/
run.py
File metadata and controls
24 lines (18 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import server
def main():
access_token = server.get_access_token()
assert access_token is not None
projects = server.get_procore_projects(
by_region=["San Antonio", "Houston", 72498, "93764"],
)
print(f"Number of projects: {len(projects)}")
for project in projects[:2]:
rfis = server.get_procore_project_rfis(project_id=project["id"])
print(f"RFIs: {project['name']} {len(rfis)}")
events = server.get_procore_project_change_events(project_id=project["id"])
print(f"Events: {project['name']} {len(events)}")
for event in events[:2]:
details = server.get_procore_change_event_details(event_id=event["id"], project_id=project["id"])
print(f"Event: {event['title']} {details['status']}")
if __name__ == "__main__":
main()