I'd like to query the activity log programmatically.