@bitforgehq/yago-api-client

1.2.3 • Public • Published

yago-api-client

Client library to access Yago REST API.

Generated with openapi-generator using the Fetch API.

Installation

Use your favorite package manager:

npm install @bitforgehq/yago-api-client

OR

yarn add @bitforgehq/yago-api-client

Usage

// Create auth token. Can be saved in local storage
const token = await new AuthApi().authCreate({
    tokenObtainRequest: {
        email: 'your@email.com',
        password: 'yourPa$$w0Rd',
    },
});

// Initialize API configuration with token
const apiConfig = new Configuration({
    basePath = 'https://yago.cloud',
    accessToken: token.access,
});

// Fetch projects and models
const projects = await new ProjectsApi(apiConfig).projectsList();
const models = await new ModelsApi(apiConfig).modelsList({ project: projects[0].id });

See API Docs for a full list of all available endpoints.

Readme

Keywords

none

Package Sidebar

Install

npm i @bitforgehq/yago-api-client

Weekly Downloads

0

Version

1.2.3

License

MIT

Unpacked Size

349 kB

Total Files

92

Last publish

Collaborators

  • streinhard
  • raphaelbit
  • lucatescari