🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@anthony16t/twitter-search

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anthony16t/twitter-search

Get information from twitter using the bearer token

npmnpm
Version
1.0.0
Version published
Maintainers
1
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 02 Jun 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