1.0.2 • Published 5 years ago

kuveytturk-api v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

kuveytturk-api

Build Status npm version

Javascript Library for the Kuveyt Turk API!

This library provides a Javascript interface for the Kuveyt Turk API. Making a request to Kuveyt Turk API requires a valid access token and signature. OAuth procedures are eased and signature generation is automated in this library.

Installation

Get the latest version with npm

npm install kuveytturk-api

Usage

You need to get a instance from KuveytturkApi object with the your application credentials.

import { KuveytturkApi } from 'kuveytturk-api'
//...
    this.kuveytturkApi = new KuveytturkApi(
    CLIENT_ID,
    SECRET_ID,
    REDIRECT_URL,
    PRIVATE_KEY);       
//...

Then , you can call Api Products below.

    this.kuveytturkApi.kuveytTurkBranchList().then( (data) => {
		console.log(data);
	}).catch( (error) =>{
		console.log(error);
	});     

Only Api Products which has client credentials authorization flow can be call directly.

  • Information Services - FX Currency List - FX Currency Rates - Kuveyt Turk Branch List - Kuveyt Turk ATM List - Kuveyt Turk XTM List - Bank List - Bank Branch List
  • Authorization Flow - Get Authorization Url - It generates Url for Customer Authentication with your app credentials. - Get Authorization Token - It takes token with Authorization Code. (Refresh token mechanism included.)
    	 ...  I will add all products by one by. 

Getting Help

Please, ask a question on Stack Overflow and tag it with kuveytturk