https://github.com/darnfish/musicthread
TypeScript Wrapper for the MusicThread API
https://github.com/darnfish/musicthread
api musicthread typescript
Last synced: about 1 year ago
JSON representation
TypeScript Wrapper for the MusicThread API
- Host: GitHub
- URL: https://github.com/darnfish/musicthread
- Owner: darnfish
- License: mit
- Created: 2023-02-07T17:42:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-07T17:51:05.000Z (over 3 years ago)
- Last Synced: 2025-02-05T01:43:01.185Z (over 1 year ago)
- Topics: api, musicthread, typescript
- Language: TypeScript
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MusicThread
Fully typed API wrapper for the [MusicThread](https://musicthread.app) API.
## Installation
```
yarn add musicthread
```
## Usage
```ts
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