Skip to content

nuaudit/nuaudit-node-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

yarn install nuaudit-node-sdk

Usage

import Nuaudit from 'nuaudit-node-sdk';

const nuaudit = new Nuaudit(
    "API_KEY_SECRET",
    "ORGANIZATION_ID",
    "TRAIL_ID"
)

(async () => {
    await nuaudit.createRecord(
        "Added artwork to the gallery.",
        {
            "type": "human",
            "id": "jane",
            "name": "Jane",
            "email": "jane@example.org",
            "ipAddress": "127.0.0.1"
        },
        {
            "type": "artwork",
            "id": "thepainting",
            "title": "The painting",
            "material": "canvas",
            "paint": "oil",
            "year": 2018
        }
    )
)()

Releases

No releases published

Packages

No packages published