1.0.0 • Published 2 years ago

starbuero.js v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Starbuero.js

With Starbuero.js you easily interact with Starbuero's API and it's super easy!

Install

npm i starbuero.js

Here we go

const {Client} = require('starbuero.js')
const client = new Client("TOKEN");

Use the Client (example)

const employee = await client.getEmployee('id');
console.log(employee)
client: 
.getContacts()
.getContact()
.createContact()
.editContact()
.deleteContact()
    
.getAppointments()
.getAppointments()
.createAppointment()
.editAppointment()
.deleteAppointment()
    
.createRecurringAppointment() // SOON
.deleteRecurringAppointment()
    
.getCallData()
    
.getInfo()
.editInfo()
    
.getEmployees()
.getEmployee()
.createEmployee()
.editEmployee()
.deleteEmployee()
    
.getFAQ()
.getFAQEntry()
.editFAQEntry()
.deleteFAQEntry()

Error Handling

This library includes basic error handling. If there are any errors in the API requests, they will be logged to the console. Besides, the request will give you null.

1.0.0

2 years ago