A promise based, Typescript-first Dribbble API library.
Features
🤖 Full Typescript support
🌈 Familiar API setup
⚡️ Feather light
🚨 Proper error handling
🧘♀️ Framework agnostic
Getting Started
Installation
with Yarn
$ yarn add dribbblejs
or with NPM
$ npm install dribbblejs
Usage
import { Dribbble } from "dribbblejs";
const dribbble = new Dribbble({
authToken: "xxxxxxxx"
});
API
User
Official User API Documentation
Get authenticated user
dribbble.user.get()
Projects
Official Projects API Documentation
Get list of projects
dribbble.projects.list()
Create a project
dribbble.projects.create({
name: 'Project name', // *Required*
description: 'Project description' // Optional
})
id
Update a project by dribbble.projects.update('883377', {
name: 'New project name', // Optional
description: 'New project description' // Optional
})
id
Delete a project by dribbble.projects.delete('883377')
Shots
Official Shots API Documentation
Get list of shots
dribbble.shots.list()
id
Get a shot by dribbble.shots.get('6432565')
Create a shot
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
})
id
Update a shot by 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
})
id
Delete a shot by dribbble.shots.delete('6432565')
Attachments API
Official Attachments API Documentation
shot
Create attachment for a dribbble.attachments.create('6432565', {
file: attachmentFile // *Required*
})
id
for a shot
Delete attachment dribbble.attachments.delete('1376676', '6432565')
License
Dribbblejs is MIT licensed.