@aspida/twitter
v0.1.0
Published
twitter API for aspida
Downloads
5
Readme
Installation
$ npm install axios @aspida/twitter
Usage
import axios from "axios"
import api, { mock } from "@aspida/twitter"
axios.defaults.headers = { token: "YOUR TOKEN" }
if (process.env.NODE_ENV !== "production") {
mock()
}
;(async () => {
const tweet = await api().$1_1.collections.entries_json.$get({
params: { id: "custom-539487832448843776" }
})
console.log(tweet)
})()