A promise based, Typescript-first Dribbble API library.
$ yarn add dribbblejs
$ npm install dribbblejs
import { Dribbble } from "dribbblejs";
const dribbble = new Dribbble({
authToken: "xxxxxxxx"
});
dribbble.user.get()
dribbble.projects.list()
dribbble.projects.create({
name: 'Project name', // *Required*
description: 'Project description' // Optional
})
dribbble.projects.update('883377', {
name: 'New project name', // Optional
description: 'New project description' // Optional
})
dribbble.projects.delete('883377')
dribbble.shots.list()
dribbble.shots.get('6432565')
dribbble.shots.create({
image: imageFile // *Required*
title: 'Shot title', // *Required*
description: 'Shot description', // Optional
low_profile: true, // Optional
rebound_source_id: 6432542, // Optional
scheduled_for: 1582391638790, // Optional
tags: ['ui', 'illustration'], // Optional
team_id: 3818924 // Optional
})
dribbble.shots.update('6432565', {
title: 'New shot title', // Optional
description: 'New shot description', // Optional
low_profile: true, // Optional
rebound_source_id: 6432542, // Optional
scheduled_for: 1582391638790, // Optional
tags: ['ui', 'illustration'], // Optional
team_id: 3818924 // Optional
})
dribbble.shots.delete('6432565')
dribbble.attachments.create('6432565', {
file: attachmentFile // *Required*
})
dribbble.attachments.delete('1376676', '6432565')
Dribbblejs is MIT licensed.