mkvirtualenv / workon redcanary
python setup.py install
Set environment variables below or pass as optional parameters to Detections object:
RED_CANARY_CUSTOMER_ID=<YOUR CUSTOMER ID/NAME>
RED_CANARY_AUTH_TOKEN=<YOUR API TOKEN>
redcanary
import redcanary
rc = redcanary.Detections()
for detection in rc.all(since='2015-05-10T02:15:20Z'):
print(detection.headline, detection.hostname)
make test