This function is required for Use Case 3. It is automatically triggered once a day, to parse information from the Odlo web feed and updates the garment database in the Dress Me Up Data Store.
The cloud function runs once per day, reads the updated CSV file and makes the necessary changes in the Google Firestore Database of the project.
The input is a CSV file in the following URL:
- The service triggers a function once a day that retrieves and parses the CSV file from the link.
- It then uploads new entries and refreshes the status of the garments in the Firebase Datastore.
- Success / Error code.
- Results are written to
garmentsData Store collection.