~oubiwann/+junk/lpapi

« back to all changes in this revision

Viewing changes to bin/tag-bugs.py

  • Committer: Duncan McGreggor
  • Date: 2011-07-21 15:17:55 UTC
  • Revision ID: duncan@ubuntu.com-20110721151755-2epzxwtm662fmc55
Added a simple API for launchpad.net.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
from lpapi.api import API
 
3
 
 
4
 
 
5
# XXX obviously, this needs to be changed to accept command line paramters
 
6
api = API("burlington", debug=True)
 
7
bugs = api.get_bugs(
 
8
    status="all",
 
9
    bug_reporter="oubiwann",
 
10
    created_since="2011-07-20 19:01:00")
 
11
api.tag_bugs(bugs, "communications")
 
12