One of our customers wanted to use the FogBugz API from C#, but the API was only available via a REST interface. So they wrote a C# wrapper around the FogBugz API to let them do what they wanted, and was gracious enough to share it with us. You can download it from this link, which also includes a description of how it works.