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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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