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
Get authenticated user
dribbble.user.get()
Projects
Get list of projects
dribbble.projects.list()
Create a project
dribbble.projects.create({
name: 'Project name',
description: 'Project description'
})
Update a project by id
dribbble.projects.update('883377', {
name: 'New project name',
description: 'New project description'
})
Delete a project by id
dribbble.projects.delete('883377')
Shots
Get list of shots
dribbble.shots.list()
Get a shot by id
dribbble.shots.get('6432565')
Create a shot
dribbble.shots.create({
image: imageFile
title: 'Shot title',
description: 'Shot description',
low_profile: true,
rebound_source_id: 6432542,
scheduled_for: 1582391638790,
tags: ['ui', 'illustration'],
team_id: 3818924
})
Update a shot by id
dribbble.shots.update('6432565', {
title: 'New shot title',
description: 'New shot description',
low_profile: true,
rebound_source_id: 6432542,
scheduled_for: 1582391638790,
tags: ['ui', 'illustration'],
team_id: 3818924
})
Delete a shot by id
dribbble.shots.delete('6432565')
Attachments API
Create attachment for a shot
dribbble.attachments.create('6432565', {
file: attachmentFile
})
Delete attachment id
for a shot
dribbble.attachments.delete('1376676', '6432565')
License
Dribbblejs is MIT licensed.