Skip to main content
100%

Building an API with ReadMe Build

✓ Published0🌍 Public
Aachalvs
Last edited Jul 4, 2018
Created on Jul 4, 2018

This example shows a text-based API endpoint that returns the daily status of FIFA World Cup 2018 matches, including scores, penalties, and match outcomes. It uses the `request` library to fetch match data from the `https://worldcup.sfg.io/matches/today` endpoint, and the `moment` library to format match times in GMT. The code constructs a human-readable schedule string for each game, handling completed, live, and upcoming statuses, and optionally sends the schedule via SMS using the `api` module from ReadMe Build. It outputs the schedule as plain text, or a message if no matches occur that day.

AI-generated description

Similar vizzes