Skip to content
A set of C# classes for interacting with the Open311 API
Find file
New pull request
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


A set of C# classes for working with v.2 of the Open311 API (GeoReport API V2). For documentation on the GeoReport API, see

This project was created using Mono version 2.4.4 ( and MonoDevelop 2.2.1 (


using System;
using Open311API;
using Open311API.Exception;
using Open311API.Structs;

namespace Sample
    /// <summary>
    /// A simple example that uses the Open311API class library.
    /// </summary>
    class Open311Sample
        // The development endpoint for the Baltimore City Open311 API.
        const string ENDPOINT = "";

        // The jurisdiction ID for Washington DC.
        const string JURISDICTION_ID = "";

        // Sample service request ID.
        const string SERVICE_RQUEST_ID = "4e6cbd2a9dc2f112940000bc";

        // App entry point.
        public static void Main (string[] args)
            // Create a new instance of the Open311 object.
            Open311 report = new Open311(ENDPOINT, JURISDICTION_ID);

                Console.WriteLine(report.GetServiceRequest(ResponseFormat.XML, SERVICE_RQUEST_ID));
            catch (Open311Exception ex) 
                Console.WriteLine("Sorry. An error occured: " + ex.Message);





<?xml version="1.0" encoding="UTF-8"?>
    <service_name>Graffiti Removal</service_name>
Something went wrong with that request. Please try again.