Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A package built on top of IRCTC Website APIs to make train tickets , managing user profile faster and simpler. Currently this package only works on NodeJs environment and we were not recommending this to use on browser or any other Javascript environment.
A package built on top of IRCTC Website APIs to make train tickets , managing user profile faster and simpler. Currently this package only works on NodeJs environment and we were not recommending this to use on browser or any other Javascript environment.
To install the this package, simply type i or install irctc-api using the node package manager
npm install irctc-api
This Package uses viu
, A rust module uses iterm image protocol for displaying images.
We use that for displaying captcha images on command line for login and bookings as to make your booking flow in a seamless way.
Hence you are required to download the viu executable file related to your OS and Processor Architecture from the viu release Assets then rename the dwnloaded file to viu.exe
and then add the folder where the viu.exe
is stored in your environment variables.
Remeber to add the folder path and not the viu.exe file path in your environment variables.
Currently this project is designed to accept only UPI Collect request as payment option and other payment modes are not supported as of now. When the payment request is initiated, The command line will display the payment request details such that you need to complete the payment from your UPI mobile App.
We request to verify whether viu is working or not by giving the below command
viu example.jpeg -t
This Package exports a class named IRCTC
which contains three functions.
To send a request, you only need to import the IRCTC
.
// ES5 example
const { IRCTC } = require("irctc-api");
// ES6+ example
import { IRCTC } from "irctc-api";
The Code Examples are hosted at Github Repo - suryavaddiraju/irctc-api
To send a request, you:
// a client can be shared by different commands. But it is currently in development untill then use client seperately.
const client = new IRCTC();
const params = {
/** input parameters */
};
const command = client.book(params);
We recommend using await operator to wait for the promise returned by send operation as follows:
// async/await.
try {
const data = await client.book(params);
// process data.
} catch (error) {
// error handling.
} finally {
// finally.
}
Async-await is clean, concise, intuitive, easy to debug and has better error handling as compared to using Promise chains or callbacks.
Please use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
Any modifications will be overwritten the next time the irctc-api
package is updated. To contribute to the package you can check our generate clients scripts.
This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.
FAQs
An exclusive NodeJs only package built on top of IRCTC Website APIs to book train tickets, managing user profile faster and simpler from anywhere in the world
We found that irctc-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.