@quantidexyz/oven-sdk
v0.0.3
Published
Breadcrumb.cash Oven SDK
Downloads
2
Maintainers
Readme
Inverter / NPM package Template
Bun + Npm + Typescript + Standard Version + Flat Config Linting + Husky + Commit / Release Pipeline
Summary
This package contains the API SDK for Breadcrumb.cash.
Check out the Changelog to see what changed in the last releases.
Install
bun add @quantidexyz/oven-sdkInstall Bun ( bun is the default package manager for this project ( its optional ) ):
# Supported on macOS, Linux, and WSL
curl -fsSL https://bun.sh/install | bash
# Upgrade Bun every once in a while
bun upgrageUse the SDK
Here's an example of how to use the SDK to fetch a public user:
import { client, user_user } from '@quantidexyz/oven-sdk'
// Set the config for the client with the Base URL and API key
client.setConfig({
// Base URL is optional, by default it's https://www.breadcrumb.cash/api
baseUrl: 'https://www.breadcrumb.cash/api',
// Replace with your cookie connect.sid / if you have one
headers: {
Cookie: `connect.sid=<connect.sid>`,
},
})
// Use the internal method to call the API
const response = await user_user({
path: {
x_user_id: '1941253809302593536',
},
query: {
include_smart_followers: 'false',
include_smart_follower_history: 'false',
},
})
// Log the response
console.log('API response data:', response.data)Developing
Install Dependencies:
bun iWatching TS Problems:
bun watchHow to make a release
For the Maintainer: Add NPM_TOKEN to the GitHub Secrets.
- PR with changes
- Merge PR into main
- Checkout main
git pullbun release: '' | alpha | betaoptionally add-- --release-as minor | major | 0.0.1- Make sure everything looks good (e.g. in CHANGELOG.md)
- Lastly run
bun release:pub - Done
License
This package is licensed - see the LICENSE file for details.
