Skip to content
This repository has been archived by the owner on Jun 6, 2020. It is now read-only.

Turbo87/strepla-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strepla-api

scoring*StrePla "API" wrapper

Installation

yarn add strepla-api

Usage

const { overview, scoreDay } = require('strepla-api');

(async function() {
  let cID = 388;
  let o = await overview(cID);
  // -> http://strepla.de/scs/Public/overview.aspx?cId=388 in JSON form

  let idDay = 5701;
  let d = await scoreDay(cID, idDay);
  // -> http://strepla.de/scs/Public/scoreDay.aspx?cId=388&idDay=5701 in JSON form
})();

License

This project is licensed under the MIT License.