Tagbot is a Drupal module that negotiates between a twitter bot and PPA's payment form to provide information about unpaid traffic violations. Visit the bot live at https://twitter.com/HowsMyDrivingPA
Tag me (@HowsMyDrivingPA) and include vehicle information like this:
— Hows My Driving PA (@HowsMyDrivingPA) December 14, 2019
<state|province|territory>:<plate>, e.g. PA:abc1234
Install tagbot on your Drupal site to start tinkering:
composer require aaronbauman/tagbot
- A twitter developer account with OAuth creds
- A Drupal site, running cron as frequently as possible. (HowsMyDrivingPA runs every minute.)
Define the following constants, e.g. in your settings.php file:
define('TAGBOT_CONSUMER_KEY', 'consumer key from twitter developer account');
define('TAGBOT_CONSUMER_SECRET', 'consumer secret...');
define('TAGBOT_ACCOUNT_TOKEN', 'oauth token for the account that will be the bot');
define('TAGBOT_ACCOUNT_SECRET', 'oauth secret for account that will be the bot');