Socket
Book a DemoInstallSign in
Socket

twitter-get-oauth1-token

Package Overview
Dependencies
Maintainers
1
Versions
1
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

twitter-get-oauth1-token

CLI to generate a OAuth 1.0 Twitter API token

unpublished
latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Twitter API Auth

Overview

When creating bots, I always forget how to generate an auth token for another user via the OAuth 1.0 flow. I tried creating OAuth 2.0 flows, but I think it required persisting a refresh token. If I can just use the 1.0 token perpetually, that's better. (If I'm wrong on this, I'd love to know more.)

My goal is to get this npx'able, but I'm not sure what is necessary.

  • https://developer.twitter.com/en/docs/authentication/oauth-1-0a

Usage

➜ node index.js
=================================

Twitter OAuth 1.0 token generator

=================================

Twitter API Key: (YOUR TWITTER API KEY)
Twitter API Secret: (YOUR TWITTER API SECRET)

This will open a web browser window to authenticate the account you wish to post as.

Authenticate & the page will refresh, showing you API credentials in the form:

{
  "accessToken": "...",
  "accessSecret": "...",
  "userId": "twitter_numerical_user_id",
  "screenName": "twitter_screenname"
}

Keywords

twitter

FAQs

Package last updated on 22 Oct 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