runn-sdk
v1.0.32
Published
## Generated from Swagger codegen and bug fixed by lmvdz
Downloads
9
Readme
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))
})();