import Client from 'pixela-node'
const client = new Client()
client.username = 'your_username'
client.token = 'your_token'
client
.createGraph({
id: 'kintore',
name: 'kintore',
unit: 'commit',
type: 'int',
color: 'shibafu'
})
.then(res => console.log(res.data))
.catch(e => console.log(e.response.data))
client.getGraphs().then(res => console.log(res.data))
client.incrementPixcel('kintore').then(res => {
console.log(res.data)
})
console.log(client.getGraphUrl('kintore'))