0.1.0 • Published 5 years ago

@aspida/twitter v0.1.0

Weekly downloads
20
License
MIT
Repository
github
Last release
5 years ago

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)
})()