otamachan
9/2/2013 - 11:04 PM

redmine python sample

redmine python sample

from pyactiveresource.activeresource import ActiveResource

class Project(ActiveResource):
    _site = 'http://---/redmine/'
    _headers = {'X-Redmine-API-Key': '68341e0cb133dee032d2d6934cb19a003052f8e3'}

projects = Project.find('test', 'projects')

for item in projects.attributes:
    print item, " =  ", projects.attributes[item]