{"id":20498245,"url":"https://github.com/thenoim/dsbapi","last_synced_at":"2025-08-21T15:31:22.364Z","repository":{"id":17495025,"uuid":"82095176","full_name":"TheNoim/DSBAPI","owner":"TheNoim","description":"DSB mobile API","archived":false,"fork":false,"pushed_at":"2024-11-30T06:29:04.000Z","size":4388,"stargazers_count":25,"open_issues_count":11,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-12T15:17:43.273Z","etag":null,"topics":["api","dsb","hacktoberfest","javascript","mobile","nodejs","npm"],"latest_commit_sha":null,"homepage":"https://noim.me/DSBAPI/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheNoim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-15T18:56:33.000Z","updated_at":"2024-11-28T05:53:57.000Z","dependencies_parsed_at":"2024-01-08T15:51:05.326Z","dependency_job_id":null,"html_url":"https://github.com/TheNoim/DSBAPI","commit_stats":{"total_commits":149,"total_committers":6,"mean_commits":"24.833333333333332","dds":0.4093959731543624,"last_synced_commit":"a32347354374a1bb1979bf12420c5c3271c3a494"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheNoim%2FDSBAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheNoim%2FDSBAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheNoim%2FDSBAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheNoim%2FDSBAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheNoim","download_url":"https://codeload.github.com/TheNoim/DSBAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230520391,"owners_count":18238948,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","dsb","hacktoberfest","javascript","mobile","nodejs","npm"],"created_at":"2024-11-15T18:13:33.102Z","updated_at":"2024-12-20T01:14:35.789Z","avatar_url":"https://github.com/TheNoim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Test Status](https://github.com/TheNoim/DSBAPI/workflows/Test%20the%20dsb/badge.svg) [![Greenkeeper badge](https://badges.greenkeeper.io/TheNoim/DSBAPI.svg)](https://greenkeeper.io/)\n\n## Installation\n\nUse your favorite package manager for javascript\n\n```bash\nyarn add dsbapi\n# Or\nnpm install dsbapi --save\n```\n\n_Note: Requires `node \u003e= 8`_\n\n## How to use:\n\n### Read the Documentation\n\n##### [https://noim.me/DSBAPI/](https://noim.me/DSBAPI/)\n\n### In NodeJS\n\n```javascript\nconst DSB = require('dsbapi');\n\nconst dsb = new DSB('USERNAME', 'PASSWORD');\n\ndsb.fetch()\n\t.then(data =\u003e {\n\t\tconst timetables = DSB.findMethodInData('timetable', data);\n\t\tconst tiles = DSB.findMethodInData('tiles', data);\n\n\t\t// Work with it\n\t})\n\t.catch(e =\u003e {\n\t\t// An error occurred :(\n\t\tconsole.log(e);\n\t});\n```\n\nOr with modern javascript\n\n```javascript\nimport DSB from 'dsbapi';\n\nconst dsb = new DSB('USERNAME', 'PASSWORD');\n\nasync function getMyShit() {\n\tconst data = await dsb.fetch();\n\tconst timetables = DSB.findMethodInData('timetable', data);\n\tconst tiles = DSB.findMethodInData('tiles', data);\n\n\t// YEAH\n}\n\ngetMyShit();\n```\n\n### Fetch V1\n\nThe old iPhone API is not active anymore. You need to use the new fetch() method. After you got the data with the fetch() method you can find the timetables with the findMethodInData method. Look at the example above.\n\n### Browser\n\nIt will probably not work in the browser. The dsb does not set cors, so you are not able to use this module on the client side of your website. You can only use it on the backend.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenoim%2Fdsbapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthenoim%2Fdsbapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenoim%2Fdsbapi/lists"}