runn-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.32 • Public • Published

RUNN Typescript SDK

Generated from Swagger codegen and bug fixed by lmvdz

yarn add runn-sdk

import { Configuration, ConfigurationParameters, RunnClient } from "runn-sdk";


const dotenv = require('dotenv');
dotenv.config();


const configuration = new Configuration({ apiKey: process.env.RUNN_API_KEY } as ConfigurationParameters);

const runn = new RunnClient(configuration);


(async () => {
    // get people/projects/users/clients/roles and save them to files
    const people = await runn.api.people.getV0People()
    // fs.writeFileSync('./people.json', JSON.stringify(people))

    const projects = await runn.api.projects.getV0Projects()
    // fs.writeFileSync('./projects.json', JSON.stringify(projects))

    const users = await runn.api.users.getV0Users()
    // fs.writeFileSync('./users.json', JSON.stringify(users))

    const clients = await runn.api.clients.getV0Clients()
    //  fs.writeFileSync('./clients.json', JSON.stringify(clients))

    const roles = await runn.api.roles.getV0Roles()
    // fs.writeFileSync('./roles.json', JSON.stringify(roles))

})();

Readme

Keywords

none

Package Sidebar

Install

npm i runn-sdk

Weekly Downloads

1

Version

1.0.32

License

MIT

Unpacked Size

966 kB

Total Files

20

Last publish

Collaborators

  • xeonpowder