Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yarnaimo/twimo
🕊 Twitter library for TypeScript
https://github.com/yarnaimo/twimo
nodejs twitter twitter-library typescript
Last synced: about 1 month ago
JSON representation
🕊 Twitter library for TypeScript
- Host: GitHub
- URL: https://github.com/yarnaimo/twimo
- Owner: yarnaimo
- License: mit
- Created: 2018-08-27T12:02:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-26T06:28:40.000Z (over 4 years ago)
- Last Synced: 2024-04-24T01:21:07.675Z (8 months ago)
- Topics: nodejs, twitter, twitter-library, typescript
- Language: TypeScript
- Homepage:
- Size: 466 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# twimo
Twitter library for TypeScript
## Install
```sh
yarn add @yarnaimo/twimo
# or
npm i -S @yarnaimo/twimo
```## Usage
```ts
import { Twimo, twget, twpost } from '@yarnaimo/twimo'
import { Status } from 'twitter-d'const twimo = Twimo({
consumerKey: '***',
consumerSecret: '***',
})({
token: '***',
tokenSecret: '***',
})const response = await twget(twimo, 'statuses/show', params)
const response = await twpost(twimo, path, params)
```## Shorthands
- twget
- lookupTweets
- searchTweets
- getMutedIds
- twpost
- createTweet
- postThread
- retweet**Example**
```ts
import { lookupTweets } from '@yarnaimo/twimo'const response = await lookupTweets(twimo, ['123', '456'])
```## Utils
- plusOne
- minusOne
- originalTweet
- getMediaList
- TweetURL
- parse
- fromTweet
- UserPageURL
- parse
- fromUser