FogBugz » FogBugzPy A Python wrapper for the FogBugz API Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9.1, 0.9.2, and 0.9.3

Added some better info to README

Changeset 1a9a662e2272

Parent 01d7b6e898bf

by Profile picture of User 10Tyler G. Hicks-Wright <tghw@fogcreek.com>

Changes to one file · Browse files at 1a9a662e2272 Showing diff from parent 01d7b6e898bf Diff from another changeset...

Change 1 of 1 Show Changes Only README.txt Stacked
1
2
3
4
5
6
7
8
9
10
11
 
12
 
 
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
1
2
3
4
5
6
7
8
9
10
 
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 Python FogBugz API Wrapper    This Python API is simply a wrapper around the FogBugz API, with some help from Leonard Richardson's BeautifulSoup (http://www.crummy.com/software/BeautifulSoup/) and the magic of Python's __getattr__().    A quick example:    >>> from fogbugz import FogBugz  >>> fb = FogBugz("http://example.fogbugz.com/") # URL is to your FogBugz install  >>> fb.logon("logon@example.com", "password")  >>> resp = fb.search(q="assignedto:tyler") # All calls take named parameters, per the API ->>> resp # Responses are BeautifulSoup objects of the response XML +>>> resp # Responses are BeautifulSoup objects of the response XML.  <response><cases count="2"><case ixbug="1" operations="edit,assign,resolve,email,remind"></case><case ixbug="2" operations="edit,spam,assign,resolve,reply,forward,remind"></case></cases></response> +>>> # You shouldn't need to know too much about BeautifulSoup, but the documentation can be found here: +>>> # http://www.crummy.com/software/BeautifulSoup/documentation.html  >>> for case in resp.cases.childGenerator(): # One way to access the cases  ... print case['ixbug']  ...  1  2  >>> for case in resp.findAll('case'):  ... print case['operations']  ...  edit,assign,resolve,email,remind  edit,spam,assign,resolve,reply,forward,remind  >>> resp = fb.edit(ixbug=1, sEvent="Edit from the API")  >>> resp  <response><case ixbug="1" operations="edit,assign,resolve,email,remind"></case></response>    For more info on the API  http://our.fogbugz.com/help/topics/advanced/API.html    Known Issues:  * File uploading is currently unsupported for both cases and emails.    Much of the API has not been thoroughly tested. Please assign bugs to Tyler Hicks-Wright.