DSB
Main Library class
Static Method Summary
| Static Public Methods | ||
| public static |
findMethodInData(method: String, data: Object): Object [Experimental] Try to get just the important data from the data you get back from fetch() |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(username: String | Number, password: String | Number, cookies: String, cache: String | Boolean, axios: Axios) |
|
Method Summary
| Public Methods | ||
| public |
Fetch data |
|
| public |
Fetch data from the original iphone api (Only news and timetables supported) |
|
Static Public Methods
Public Constructors
public constructor(username: String | Number, password: String | Number, cookies: String, cache: String | Boolean, axios: Axios) source
Params:
| Name | Type | Attribute | Description |
| username | String | Number | ||
| password | String | Number | ||
| cookies | String |
|
If you already have session cookies, you can add them here. |
| cache | String | Boolean |
|
In the browser just a boolean and in node a path string. If you don't want to use any cache just use undefined, null or false. |
| axios | Axios |
|
Pass your custom axios instance if you want. |
