Unofficial
This module helps you to manage your credit cards, through phone number + pin authentication.
For specif information about the Revolut API see my UnOfficial Revolut's API documentation.
Simple example that utilizes all the current functions available.
require("dotenv").config()importRevolutfrom'revolutapi'letsleep=(ms: number)=>newPromise(resolve=>setTimeout(resolve,ms));(async()=>{//Make sure we have the environment variablesif(!process.env.NUMBER||!process.env.PASSCODE){thrownewError('Missing environment variables')}//Create a new instance of a revolut accountletrevolut=newRevolut(process.env.NUMBER,process.env.PASSCODE)//Signin with the credentials given in the constructorawaitrevolut.signin()//Get all cards on the accountconsole.log(awaitrevolut.getCards())//Create a new virtual card with the label "hello!"letcard=awaitrevolut.newVirtualCard("hello!")//Get the expiry date, cvv and pan of the credit cardletdetails=awaitrevolut.getCardSecrets(card.id)console.log(details)//Revolut takes ~500ms to process the new card into their systemawaitsleep(1000);//Delete the newly created card//await revolut.deleteCard(card.id)})()To build the libary, run npm run build
- Finish the UnOfficial Revolut's API documentation
- Add support for Freezing / UnFreezing Cards
- Add support for retrieving account's information
- Add support for setting limits on cards
- Add support for getting the current limit on a card