Skip to content

JavaScript wrapper which provides functions to interact with the Nessie API.

Notifications You must be signed in to change notification settings

nessieisreal/nessie-javascript-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 

Repository files navigation

Nessie-JavaScript-SDK

Synopsis

Capital One Nessie API SDK written in JavaScript and wrapped in require-jquery. This SDK can be easily embedded in web apps.

Installation for Web App

  1. Download the lib directory.
  2. Save the library in the web project directory.
  3. Include the library in the header of the project (double check your directory path!) as shown below:
<script data-main="lib/capital_one" src="lib/require-jquery.js"></script>

Usage

  1. Require the Nessie library you intend to use, within the function to execute after the DOM is ready.
  2. Set the api key. With the api key set, you're ready to use to client to get any data that you need.
$(function(){
	require(['account'], function (account) {
		var apikey = 'YOUR-API-KEY';
		accountDemo(apikey, account);
	});
});

Each Nessie client method returns an object which provides access to data for your desired use.

function accountDemo (apikey, account) {
	console.log('Account Demo');
	var custAccount = account.initWithKey(apikey);
	console.log("[Account - Get All] : Sample Account Nickname: (" + custAccount.getAllAccounts()[0].nickname + ")");
}

You can find examples here.

About

JavaScript wrapper which provides functions to interact with the Nessie API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published