iimmpact/iimmpact-php

1.0.0 2021-01-12 09:25 UTC

This package is auto-updated.

Last update: 2025-06-13 14:59:58 UTC


README

This library generated by iimmpact

Requirements

PHP 5.5 and later

Installation & Usage

Composer

composer require iimmpact/iimmpact-php

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new iimmpact\Api\AuthorizationTokenApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$token_request = new \iimmpact\Model\TokenRequest(); // \iimmpact\Model\TokenRequest | 

try {
    $result = $apiInstance->v1TokenPost($token_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthorizationTokenApi->v1TokenPost: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

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

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