4.3.1 • Published 4 years ago

@yarnaimo/twimo v4.3.1

Weekly downloads
22
License
MIT
Repository
github
Last release
4 years ago

twimo

Twitter library for TypeScript

Install

yarn add @yarnaimo/twimo
# or
npm i -S @yarnaimo/twimo

Usage

import { Twimo, twget, twpost } from '@yarnaimo/twimo'
import { Status } from 'twitter-d'

const twimo = Twimo({
    consumerKey: '***',
    consumerSecret: '***',
})({
    token: '***',
    tokenSecret: '***',
})

const response = await twget<Status>(twimo, 'statuses/show', params)

const response = await twpost<ResponseType>(twimo, path, params)

Shorthands

  • twget
    • lookupTweets
    • searchTweets
    • getMutedIds
  • twpost
    • createTweet
    • postThread
    • retweet

Example

import { lookupTweets } from '@yarnaimo/twimo'

const response = await lookupTweets(twimo, ['123', '456'])

Utils

  • plusOne
  • minusOne
  • originalTweet
  • getMediaList
  • TweetURL
    • parse
    • fromTweet
  • UserPageURL
    • parse
    • fromUser
4.3.1

4 years ago

4.3.0

4 years ago

4.2.0

4 years ago

4.1.3

4 years ago

4.1.2

4 years ago

4.1.1

4 years ago

4.1.0

4 years ago

4.0.0

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.1.1

4 years ago

2.1.0

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago