Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/2m4u/twotter
The simplified Twitter NPM
https://github.com/2m4u/twotter
Last synced: 10 days ago
JSON representation
The simplified Twitter NPM
- Host: GitHub
- URL: https://github.com/2m4u/twotter
- Owner: 2M4U
- License: gpl-3.0
- Created: 2020-12-10T17:37:28.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-11T11:09:44.000Z (almost 4 years ago)
- Last Synced: 2024-10-12T22:59:57.775Z (about 1 month ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Twotter
=
###### *Twitter Made Simple*
* * *
| Function | What It Does |
| ------ | ------ |
| `postTweet()` | Post to twitter using your account. |
| `deleteTweet()` | Delete a tweet you posted on your account. |
| `getFollowers()`| Get followers of a chosen username you wish to look up. |
| `retweet()` | Retweet something someone or yourself has already tweeted. |
| `lookup()` | Lookup a username and get information about their user |
***
#### Examples`postTweet()`
*Post to twitter using your account.*
```js
const twotter = require("twotter").postTweet;
let res = twotter("Hello, World!");
return console.log(res);
```
`deleteTweet()`
*Delete a tweet you posted on your account (ID based **ONLY**).*
```js
const twotter = require("twotter").deleteTweet;
let res = twotter("192373892684562835");
return console.log(res);
```
`getFollowers()`
*Get followers of a chosen username you wish to look up.*
```js
const twotter = require("twotter").getFollowers;
let res = twotter("cyber_cdn");
return console.log(res);
```
`retweet()`
*Retweet something someone or yourself has already tweeted.*
```js
const twotter = require("twotter").retweet;
let res = twotter("192373892684562835");
return console.log(res);
```
`lookup()`
*Lookup a username and get information about their user.*
```js
const twotter = require("twotter").lookup;
let res = twotter("cyber_cdn");
return console.log(res);
```
[Official Repository](https://github.com/CyberCDN/twotter)[Twitter Developer Page](http://developer.twitter.com/en/apps)