@retracedgmbh/node-api-client

    1.18.22 • Public • Published


    CircleCI semantic-release XO code style code style: prettier FOSSA Status

    Description

    Node.js client for the Retraced API service. This client uses AJV validation based on the retraced schemas. This is the fastest JSON validator in the world and provides the fastest access to our API.

    Installation

    Add the dependency to your package.json with:

    npm install @retracedgmbh/node-api-client --save

    Usage

    What's simpler than 2 lines of code?

    const { Client } = require("@retracedgmbh/node-api-client")
    const client = new Client("API_HOST") // https://api.retraced.co 

    All functions return promises so you can chain them or just await them.

    Users

    Using the users endpoint on the client you can create / get or delete users:

    // Get single user
    users = await client.users.get(accessToken, userId)
     
    // Delete a user by id
    user =
      await client.users.delete(accessToken, userId)

    Keywords

    none

    Install

    npm i @retracedgmbh/node-api-client

    Homepage

    retraced.co

    DownloadsWeekly Downloads

    3

    Version

    1.18.22

    License

    UNLICENSED

    Unpacked Size

    65.4 kB

    Total Files

    32

    Last publish

    Collaborators

    • bangretraced
    • petermerkert
    • retraced-bot