getSlot function

Future<String> getSlot(
  1. int slotNum
)

GET request to the /slots/:slotNum endpoint. Returns the information for a specific slot @param {int} slotNum - The nunmber of a slot @returns {Object} Response data with a specific slot

Implementation

Future<String> getSlot(int slotNum) async {
  return extractJSON(
      await get(baseApiUrl, SLOTS_URL + '/' + slotNum.toString()));
}