New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

tweeter-basic

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tweeter-basic

Send tweets (with optional images) through the Twitter v2 API (OAuth 2.0) - authentication included

0.1.1
Maintainers
1

Tweeter Basic

Send tweets (with optional images) and authenticate through the Twitter v2 API (OAuth 2.0) using Python.

Quick Start

Send a test tweet with the following steps:

  • generate and set the following environment variables:
    • TWITTER_CONSUMER_API_KEY
    • TWITTER_CONSUMER_API_KEY_SECRET
    • TWITTER_ACCESS_TOKEN
    • TWITTER_ACCESS_TOKEN_SECRET
    • TWITTER_CLIENT_ID
    • TWITTER_CLIENT_SECRET
    • TWITTER_CALLBACK_URI <- must end in /callback (ie. http://localhost/callback)
  • authorize the application (1 time only) to generate the seed token.json with the following:
    • build & run the token generation server by executing Authenticate/authenticate.sh
    • navigate with a browser to your http://localhost/auth
  • send a test tweet by executing test/test.sh

Prerequisites

  • Docker engine
  • Twitter project with:
    • v1.1 API read & write access
    • v2 API access

2do

  • give a more verbose explanation of the steps
  • write separate PyPI instructions

future

resources used

FAQs

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