Home > sncf.js > DisruptionManager > get
DisruptionManager.get() method
Get a disruption by id
Signature:
typescript
get(disruptionID: string): Promise<Disruption>;
Parameters
Parameter | Type | Description |
---|---|---|
disruptionID | string | The id of the disruption to get |
Promise<Disruption>
Example
This example shows the disruption with the id
javascript
const {Client} = require('SNCF.js');
const client = new Client();
client.disruptions.get('DISRUPTION_ID').then(console.log).catch(console.error)