New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

db-fahrplan

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db-fahrplan

API Wrapper for the Deutsche Bahn Fahrplan API

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

Classes

DB

Typedefs

Result : Object

DB

Kind: global class
Version: 1.0
Author: Tom Sacher
License: MIT

new DB(bearer, sandbox)

ParamTypeDescription
bearerStringThe Bearer Token for the API
sandboxBooleanIf true, the module will use http instead of https

DB.getLocation(name) ⇒ Result

Get information about locations matching the given name or name fragment

Kind: instance method of DB
Returns: Result - Result or Error

ParamTypeDescription
nameStringName or name fragment of a location

DB.getArrivalBoard(id, date) ⇒ Result

Get arrival board at a given location at a given daten and time.

Kind: instance method of DB
Returns: Result - Result or Error

ParamTypeDescription
idStringId of location. Use attribute 'id' from the result of 'location'
dateStringDate and time in ISO-8601 format, yyyy-mm-ddThh:mm:ss, example: 2017-04-01 or 2017-04-01T10:30

DB.getDepartureBoard(id, date) ⇒ Result

Get departure board at a given location at a given daten and time.

Kind: instance method of DB
Returns: Result - Result or Error

ParamTypeDescription
idStringId of location. Use attribute 'id' from the result of 'location'
dateStringDate and time in ISO-8601 format, yyyy-mm-ddThh:mm:ss, example: 2017-04-01 or 2017-04-01T10:30

DB.getJourneyDetails(id) ⇒ Result

Retrieve details of a journey. The id of journey should come from an arrival board or a departure board.

Kind: instance method of DB
Returns: Result - Result or Error

ParamTypeDescription
idStringId of a journey. Use attribute 'detailsId' from the result of 'arrivalBoard' or 'departureBoard'

Result : Object

Kind: global typedef
Properties

NameTypeDescription
StatusNumberHTTP Status Code
ResultObjectData from Server

FAQs

Package last updated on 08 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc