Home > sncf.js > RequestManager > request
RequestManager.request() method
Make a request to the API
Signature:
typescript
request(path: string, params?: any): Promise<any>;
Parameters
Parameter | Type | Description |
---|---|---|
path | string | The path to url |
params | any | (Optional) The parameters to encode |
Promise<any>