@aspida/twitter
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @aspida/twitter

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

25 kB

Total Files

18

Last publish

Collaborators

  • m-mitsuhide
  • solufa