Navigation Menu

Skip to content
austinmoody edited this page Sep 12, 2010 · 9 revisions

Ruby FogBugz API Wrapper

An attempt at creating a wrapper for the FogBugz API in Ruby.

FogBugz: www.fogbugz.com (API Docs )

This is very much a work in progress. I needed to scratch an itch with an internal project and started on this. There are many functions of the API which are not yet implemented as a result. Please check the code to see what is done and what is not.

If you want to help out please e-mail Austin (austin.moody@gmail.com) and he can add you as a collaborator.

Installation

You can install the gem from github.com by using these commands:

gem sources -a http://gems.github.com
sudo gem install austinmoody-fogbugz-api

Requirements

  • Hpricot
  • A login to a FogBugz installation.

Example Usage

fb = FogBugz.new("my.fogbugzserver.com",true) # create instance

Login to FogBugz

fb.logon("mylogin","mypassword") # logs into FogBugz and sets token

Searching For Cases (see search for more information)

mycases = fb.search("AssignedTo:\"Austin Moody\"") # search terms just as in FogBugz

Get a list of projects in FogBugz

projects = fb.projects

This would return a Hash of all Projects in FogBugz you can read.

Log off

fb.logoff # logout
Clone this wiki locally