Using API Key from prior development, make callout to the work order list endpoint and render the data in a basic way on screen.
You should follow best practices to the extent possible with what we already know.
Create a swift class for storing credentials, and generally try to keep the code clean and modular and reusable.
![image](https://user-images.githubusercontent.com/46267354/125508563-c969ee01-8a14-4149-a85e-55b0383715db.png)
API URI: /api/work_order/list
Response: [{address_city: "Largo"
address_state: "FL"
address_street: "3083 Hickory Drive"
address_zip_code: "33770"
app_action: "open"
approval_status: "Not Started"
created_date: "2021-03-08T16:15:48+00:00"
description: "Pool - Fencing"
due_date: "2021-03-31"
image_url_full: "https://s3.amazonaws.com/allyearimages/05748491/unflagged_001.jpg"
image_url_medium: "https://s3.amazonaws.com/allyearimages/05748491/unflagged_001.jpg"
image_url_small: "https://s3.amazonaws.com/allyearimages/05748491/unflagged_001.jpg"
image_url_tiny: "https://s3.amazonaws.com/allyearimages/05748491/unflagged_001.jpg"
image_url_tiny2: "https://s3.amazonaws.com/allyearimages/05748491/unflagged_001.jpg"
instructions_summary: "Approved Item - Pre-Approved - Install:\n1. 4' self-latching gate.\n2. 95 LF - 4' Pool Fencing.\n3. Rope and Float\n\nApproved: $2,110.00
Address Verification - Photograph - Provide property verification photos (front of house, street, house number)
Disclaimer - General - Please make sure to follow all laws, local ordinances, and codes, regardless of instructions listed above. Call from site and add notes to your work order as needed.
By accepting, completing, or attempting to complete this order, you acknowledge that you are aware of the state and local declarations concerning the Novel Coronavirus Disease (COVID-19) Outbreak for the municipality which the subject property is located. By completing an order in conflict to any and all declarations, you do so at your own risk and assume all responsibility.Contact your vendor support lead to request reassignment of this order should you be unable to complete it."
interior_access_needed: true
last_status_update: {won: "05993352", delay_reason: "Not Delayed", expected_upload_date: "2021-07-08",โฆ}
delay_reason: "Not Delayed"
expected_upload_date: "2021-07-08"
explanation: "Asdfasdfasdfsadsdfasdfa"
order_status: "On Time"
won: "05993352"
lot_size_sq_ft: 79
priority: 0
status: "Open"
support_contact: "Jessica Klein"
uri: "/api/work_order/05993352"
vendor_name: "Joel McCall"
won: "05993352"
work_order_type: "Approved Bid"
work_ordered: "Approved Bid"}, ...]