Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

twhook

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twhook

Twitter Premium Account Activity API wrapper.

  • 0.1.0
  • PyPI
  • Socket score

Maintainers
1

twhook

py twt-api mit

About

twhook is a simple Twitter Premium Account Activity API wrapper that helps you to manage webhooks and subscriptions.

Installation

Git:

git clone https://github.com/nxgeo/twhook.git
cd twhook
pip install -r requirements.txt

Pip:

pip install twhook

Examples

For easy implementation examples, see twhook/examples/.

Suggestion

As described in the Twitter Securing Webhooks guide, a first step is writing code that receives a Twitter Challenge-Response Check (CRC) GET request and responds with a properly formatted JSON response.

A CRC will be sent when you register your webhook URL, so implementing your CRC response code is a fundamental first step.

HERE is an example of implementing a CRC response in Python.

Reference

Account Activity API: Premium

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc