aaronbauman / tagbot
此包最新版本(1.0.0)没有提供许可证信息。
Twitter机器人,用于查询针对PPA支付门户的车牌违规行为。
1.0.0
2019-12-26 14:45 UTC
Requires
- themattharris/tmhoauth: ^0.8.4
This package is auto-updated.
Last update: 2024-09-15 01:41:37 UTC
README
Tagbot是一个Drupal模块,它通过Twitter机器人和PPA的支付表单协商,以提供关于未支付交通违规的信息。请访问https://twitter.com/HowsMyDrivingPA
使用方法
标记我(@HowsMyDrivingPA)并包含以下车辆信息
—— Hows My Driving PA (@HowsMyDrivingPA) 2019年12月14日
<state|province|territory>:<plate>, 例如:PA:abc1234
贡献
在您的Drupal网站上安装tagbot以开始修改
composer require aaronbauman/tagbot
需求
- 一个带有OAuth凭据的Twitter开发者账户
- 一个Drupal网站,尽可能频繁地运行cron(HowsMyDrivingPA每分钟运行一次)
安装
定义以下常量,例如在您的settings.php文件中
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');