Interface of interaction with dsgstng.com api
// backend api usage example
const Api = require('dsgstng-api')
const dsgstngApi = new Api() // OR if you had token, put it here.
dsgstngApi.calendar.schedule.get()
.then(calendar => {
// Do something
})
.catch(err => {
// Display error
})
// frontend api usage example (using webpack)
import Api from 'dsgstng-api/web.api'
const dsgstngApi = new Api() // again token if you had
dsgstngApi.calendar.schedule.get()
.then(calendar => {
// Do something
})
.catch(err => {
// Display error
})
// frontend without frameworks
// some.html
<script src="/node_modules/dsgstng-api/dist/DsgstngApi.min.js'></script>
// some.js
const dsgstngApi = new DsgstngApi()
dsgstngApi.calendar.schedule.get()
.then(calendar => {
// REEEEEEEEEEEEEEEEEEEEEEEE
})
.catch(err => {
// REEEEEEEEEEEEEEEEEEEEEEEE
})
Full doc soon
For details contact him