Skip to content

iimmpact/iimmpact-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IIMMPACT API - The Node Js library for IIMMPACT API

Installation

npm

npm install @iimmpact/iimmpact-api --save

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var IimmpactApi = require('@iimmpact/iimmpact-api');

var api = new IimmpactApi.AuthorizationTokenApi()

var tokenRequest = new IimmpactApi.TokenRequest(); // {TokenRequest} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1TokenPost(tokenRequest, callback);

Documentation for API Endpoints

All URIs are relative to https://api.iimmpact.com

Class Method HTTP request Description
IimmpactApi.AuthorizationTokenApi v1TokenPost POST /v1/token
IimmpactApi.AuthorizationTokenApi v1TokenRefreshPost POST /v1/token/refresh
IimmpactApi.CallbackUrlApi v1CallbackUrlGet GET /v1/callback-url
IimmpactApi.CallbackUrlApi v1CallbackUrlPost POST /v1/callback-url
IimmpactApi.CarInsuranceApi v1CarInsuranceGet GET /v1/car-insurance
IimmpactApi.JPJRecordsApi v1JpjDrivingLicenseGet GET /v1/jpj/driving-license
IimmpactApi.JPJRecordsApi v1JpjDrivingTestResultsGet GET /v1/jpj/driving-test-results
IimmpactApi.JPJRecordsApi v1JpjMotorVehicleExpiryGet GET /v1/jpj/motor-vehicle-expiry
IimmpactApi.JPJRecordsApi v1JpjSummonsGet GET /v1/jpj/summons
IimmpactApi.LowBalanceWarningApi v1LowBalanceThresholdGet GET /v1/low-balance-threshold
IimmpactApi.LowBalanceWarningApi v1LowBalanceThresholdPost POST /v1/low-balance-threshold
IimmpactApi.MyAccountApi v1AuthChangePasswordPost POST /v1/auth/change-password
IimmpactApi.MyAccountApi v1AuthNewPasswordChallengePost POST /v1/auth/new-password-challenge
IimmpactApi.MyAccountApi v1BalanceGet GET /v1/balance
IimmpactApi.ProductEnquiryApi v1ProductsGet GET /v1/products
IimmpactApi.ServicesApi v1BillPresentmentGet GET /v1/bill-presentment
IimmpactApi.ServicesApi v1NetworkstatusGet GET /v1/networkstatus
IimmpactApi.ServicesApi v1TopupPost POST /v1/topup
IimmpactApi.TransactionHistoryApi v1BalanceStatementGet GET /v1/balance-statement
IimmpactApi.TransactionHistoryApi v1TransactionsGet GET /v1/transactions

Documentation for Models

Documentation for Authorization

IIMMPACT-COGNITO

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

SSO

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

api_key

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published