Socket
Book a DemoInstallSign in
Socket

@anthony16t/twitter-api

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@anthony16t/twitter-api

Get information from twitter using the bearer token

1.0.3
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Twitter Api

Get information from twitter using the bearer token

--- This package is not finished yet --- Start using the package by importing it.

import TwitterApi from "@anthony16t/twitter-api";
// or using require
const TwitterApi = require('@anthony16t/twitter-api')

Initialize package

const twitterApi = new TwitterApi(bearerToken)

Inside a async function

async function Main(){
    // number of result to get max 100
    const numberOfResult = 10

    // Get user followers list
    await twitterApi.followers('jack',numberOfResult)

    // Get user followings list
    await twitterApi.followings('jack',numberOfResult)

    // Search tweets on twitter
    await twitterApi.searchTweets('$FB',numberOfResult)

    // Get information about a username
    await twitterApi.usernameData('jack')

     // Get list of tweets from username jack
    await twitterApi.usernameTweets('jack',numberOfResult)
}
// run Main function
Main()

Keywords

twitter

FAQs

Package last updated on 24 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.