Package Exports
- ibmfoodtrust
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ibmfoodtrust) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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);
});