getBatch function

Future<String> getBatch(
  1. int batchNum
)

GET request to the /batches/:batchNum endpoint. Returns a specific batch @param {int} batchNum - Number of a specific batch @returns {Object} Response data with a specific batch

Implementation

Future<String> getBatch(int batchNum) async {
  return extractJSON(
      await get(baseApiUrl, BATCHES_URL + '/' + batchNum.toString()));
}