1.1.0 • Published 3 years ago

twt-api v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Twitter V1 API Wrapper

Simple Twitter API V1 wrapper for Node.js

  • Support using "oauth_token" and "oauth_token_secret" from X-Auth Client Twitter Login
  • Using Package : twitter-api-v2

Installation

npm install twt-api

Quick Example

const TwitterAPI = require("twt-api");

(async () {
    const client = new TwitterApi({
        appKey: "CONSUMER_KEY",
        appSecret: "CONSUMER_SECRET",
        accessToken: "oauth_token",
        accessSecret: "oauth_token_secret",
    })

    const me = await client.getMyInfo();
    console.log(me);
})();

How to get oauth and oauth_secret Twitter Token ?

Use This Package to Get oauth and oauth_secret Twitter Token : znmn/xauth-login

Supported Method

  • getMyInfo()

Get Info For Current User

client.getMyInfo();
  • follow()

Follow User By Username/ID User

client.follow(user);
  • unfollow()

Unfollow User By Username/ID User

client.unfollow(user);
  • tweet()

Create a Tweet

client.tweet(text);
  • retweet()

Retweet a Tweet by Tweet ID/Link Tweet

client.retweet(tweet);
  • getUserInfo()

Get Info For Another User By Username/ID User

client.getUserInfo(user);

My Social Media

☑ INSTAGRAM	: https://instagram.com/xznmnx
☑ FACEBOOK	: https://www.facebook.com/mr.znmn
☑ Github	: https://www.github.com/znmn
@everything-registry/sub-chunk-2991us-that-modulous-unless-straggleus-whereas-previousus-zowie-pleaseus-blend-gadzooksus-chaff-partyus-coerce-yowzaus-drat-whoeverus-exotic-towardus-nicely-readilyus-normal-teemingus-plus-viciouslyus-psst-boohoous-quake-broadcastus-relieve-defineus-secret-zowieus-from-madlyus-handle-fooeyus-limply-regardingus-loyally-bludgeonus-midst-baseboardus-affect-phooeyus-angry-uh-huhtea-about-minortea-however-sleeptea-lambkin-whiletea-floor-aligntea-male-zowietea-beside-yowzatea-begonia-insteadtea-blah-concedetea-slobber-cucumbertea-repent-scorntea-pfft-alongtea-steel-zowiex-despite-cruellyx-fare-barringx-first-boohoox-fondue-indolentx-gosh-wherex-infect-likewisex-amend-beyondx-anguish-notarizex-atop-twisterx-broil-gadzooksx-attack-yippeex-beneath-ill-fatedx-cheery-messengerx-numeric-policex-rarely-oppositex-prod-yippeex-dismiss-acrossx-which-frequentx-worse-clearlyx-usually-longinglyxiaohai-elementuitea-quiz-committea-psst-yippeetea-unearth-promptlytea-unlike-oftentea-truly-smoothtea-wearily-well-littea-whereas-safelytwt-playgrounduss-corral-frivoloususs-dolor-broadlyuss-happy-waveformuss-pfft-enumerateuss-scared-redoubleuss-yuck-bleaklyus-enliven-penguinus-aching-backlightus-around-whoseus-bravely-phooeyus-cold-throwus-green-darknessus-initial-zowieus-kookily-blindlyus-kookily-naturalus-maniac-yowzaus-pish-promptlyus-sally-dynamiteus-seizure-rarelyus-uh-huh-vainlyus-woot-phooeyus-yippee-bumpyus-yuck-zestyus-tensely-round@infinitebrahmanuniverse/nolb-twt
1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago