Class LegiScan_CommandLine
A command line utility for pulls and system internals
The CLI interface allow for importing specific objects from the command line along with manipulating some internal controls. This could be used for testing purposes or for automation with other custom scripting.
Show the command help
php legiscan-cli.php --help
Import the current GAITS monitoring list associated with the API key and sync
with the local ls_monitor
list
php legiscan-cli.php --monitorlist --import all --sync
Get the master list for the most recent session in California, but do not actually import and dump the response payload
php legiscan-cli.php --dry-run --debug --masterlist CA
Request a specific bill_id
php legiscan-cli.php --bill 823201
Run a national search and import new bills with a relevance score of 75% or higher
php legiscan-cli.php --search "citizens ADJ united" --state ALL --import new --score 75
Add several bill_id
to the monitor list with support stance and synchronize with GAITS
php legiscan-cli.php --monitor 843038,908829,817390 --stance support --sync
Add a bill_id
to the ignore list
php legiscan-cli.php --ignore 898381
Clean the API cache of stale entries
php legiscan-cli.php --clean --verbose
Copyright: 2010-2020 LegiScan LLC
License: https://opensource.org/licenses/BSD-2-Clause
Author: LegiScan API Team api@legiscan.com
See:
LegiScan_Process
See:
LegiScan_Pull
Link: https://api.legiscan.com/dl/
Located at legiscan-cli.php
public
|