diff options
Diffstat (limited to 'src/sources/HttpSource.ts')
| -rw-r--r-- | src/sources/HttpSource.ts | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/sources/HttpSource.ts b/src/sources/HttpSource.ts deleted file mode 100644 index f9391aa..0000000 --- a/src/sources/HttpSource.ts +++ /dev/null @@ -1,23 +0,0 @@ -import * as request from 'request-promise-native'; - -import {ISource} from './ISource'; - -export class HttpSource implements ISource { - private _base_uri = 'http://splus.ostfalia.de/semesterplan123.php'; - - constructor(private _course: string) { - } - - getData(weekOfYear: number): PromiseLike<string> { - return request({ - method: 'POST', - uri: this._base_uri, - qs: { - identifier: this._course, - }, - formData: { - weeks: weekOfYear.toString(), - }, - }); - } -} |
