Skip to content

darnfish/musicthread

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MusicThread

Fully typed API wrapper for the MusicThread API.

Installation

yarn add musicthread

Usage

import MusicThread from 'musicthread'

const mt = new MusicThread(process.env.MT_API_KEY) // optional: api key

// Create a thread
const { thread } = await mt.createThread('Title', 'Description', ['Tag1', 'Tag2'], false)

// Add a link
const link = await thread.addLink('https://www.youtube.com/watch?v=sXpCyrEH1kk')

License

MIT