Skip to main content

Twitter Premium Account Activity API wrapper.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twhook-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

twhook-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file twhook-0.1.0.tar.gz.

File metadata

  • Download URL: twhook-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for twhook-0.1.0.tar.gz
Algorithm Hash digest
SHA256 54ab76162de888cc1fad4f1ca2b4b8ade8d89f91bdf3febd27aba48bbba06f29
MD5 68701693fee8a92bf5ac74511fdc377f
BLAKE2b-256 633ba3fad0daad8bed7a601484091504331df9ea5069fc0d93ac452741a7e938

See more details on using hashes here.

File details

Details for the file twhook-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: twhook-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for twhook-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43296011d92bdd1632032df6f5335cfc7cb6767f6e98f27eaa1d2fda073c7e66
MD5 9eebbdfa8a66143107624ee626645b1e
BLAKE2b-256 639ae6eace400b4de181cb97ad738ed2a09f5d62f5adf8c52b7a8f5aebbbbd86

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page