ibmfoodtrust

0.0.1 • Public • Published

trellisfw-ift

IBM Food Trust Javascript API.

Connecting to the IBM Food Trust

const IFT = require("trellisfw-ift");

let _IFT = new IFT({
  organization_id: "",
  apiKey: ""
});

/**
 * connecting to IFT framework
 * retriving a certificate to the IFT
 */
_IFT.connect().then(response => {
  _IFT.getCertificateManager("e623ec02f73ce20428201045b1f68df5");
});

Creating a new Certificate in the IBM Food Trust (IFT):

const IFT = require("trellisfw-ift");

let _IFT = new IFT({
  organization_id: "",
  apiKey: ""
});

_IFT.connect().then(response => {
  _IFT.putCertificate(_audit, _certificate).then(response => {
    console.log(response);
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    2

Package Sidebar

Install

npm i ibmfoodtrust

Weekly Downloads

2

Version

0.0.1

License

Apache-2.0

Unpacked Size

58.5 kB

Total Files

10

Last publish

Collaborators

  • serviopalacios