Skip to content

Instantly share code, notes, and snippets.

@ejhayes
Created July 23, 2014 21:35
Show Gist options
  • Select an option

  • Save ejhayes/de754de64f9c96968e51 to your computer and use it in GitHub Desktop.

Select an option

Save ejhayes/de754de64f9c96968e51 to your computer and use it in GitHub Desktop.
kimonolabs issue

When I make this request:

curl --include --request GET "https://www.kimonolabs.com/api/cdc6zudo?kimpath2=alabama.htm&apikey=GHidQWblK9GtdgDvZuhFgn9qD4U3dqhy"

Then I get these headers:

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Date: Wed, 23 Jul 2014 21:31:15 GMT
Etag: "-1017315174"
Vary: Accept-Encoding
X-Powered-By: Express
Content-Length: 2198
 Connection: keep-alive

And this json response:

{
  "name": "State Public Records",
  "count": 9,
  "frequency": "realtime",
  "version": 6,
  "newdata": true,
  "lastrunstatus": "success",
  "lastsuccess": "Wed Jul 23 2014 21:28:43 GMT+0000 (UTC)",
  "results": {
    "categories": [
      {
        "category": "Adoption Records",
        "link": {
          "text": "Birth Parent Contact Preference (PDF)",
          "href": "http://www.adph.org/vitalrecords/assets/hs8687.pdf"
        }
      },
      {
        "category": "Certificate Information",
        "link": [
          {
            "text": "VitalChek",
            "href": "http://www.vitalchek.com/alabama-express-vital-records.aspx?click_id=600386559116115970"
          },
          {
            "text": "Vital Event Application (PDF)",
            "href": "http://adph.org/vitalrecords/assets/hs14eng.pdf"
          },
          {
            "text": "Birth or Death Certificate Correction (PDF)",
            "href": "http://adph.org/vitalrecords/assets/NewHS33.pdf"
          },
          {
            "text": "County Registrars & Recorders",
            "href": "http://www.cdph.ca.gov/certlic/birthdeathmar/Pages/CountyRecorderOffice.aspx"
          }
        ]
      },
      {
        "category": "Property Records",
        "link": [
          {
            "text": "Jefferson County Tax Map Viewer",
            "href": "http://maps.jccal.org/Default.aspx"
          },
          {
            "text": "Mobile County Tax Bill Search",
            "href": "http://www.mobilecopropertytax.com/bill_search.shtml"
          },
          {
            "text": "Madison County Online Maps",
            "href": "http://madisoncountyal.gov/maps/"
          },
          {
            "text": "Montgomery County Property Search",
            "href": "http://www.mc-ala.org"
          }
        ]
      },
      {
        "category": "",
        "link": ""
      },
      {
        "category": "",
        "link": ""
      },
      {
        "category": "",
        "link": ""
      },
      {
        "category": "",
        "link": ""
      },
      {
        "category": "",
        "link": ""
      },
      {
        "category": "",
        "link": ""
      }
    ]
  }
}

It seems that the response should not have the extra empty records...so it would be returned like this:

{
  "name": "State Public Records",
  "count": 9,
  "frequency": "realtime",
  "version": 6,
  "newdata": true,
  "lastrunstatus": "success",
  "lastsuccess": "Wed Jul 23 2014 21:28:43 GMT+0000 (UTC)",
  "results": {
    "categories": [
      {
        "category": "Adoption Records",
        "link": {
          "text": "Birth Parent Contact Preference (PDF)",
          "href": "http://www.adph.org/vitalrecords/assets/hs8687.pdf"
        }
      },
      {
        "category": "Certificate Information",
        "link": [
          {
            "text": "VitalChek",
            "href": "http://www.vitalchek.com/alabama-express-vital-records.aspx?click_id=600386559116115970"
          },
          {
            "text": "Vital Event Application (PDF)",
            "href": "http://adph.org/vitalrecords/assets/hs14eng.pdf"
          },
          {
            "text": "Birth or Death Certificate Correction (PDF)",
            "href": "http://adph.org/vitalrecords/assets/NewHS33.pdf"
          },
          {
            "text": "County Registrars & Recorders",
            "href": "http://www.cdph.ca.gov/certlic/birthdeathmar/Pages/CountyRecorderOffice.aspx"
          }
        ]
      },
      {
        "category": "Property Records",
        "link": [
          {
            "text": "Jefferson County Tax Map Viewer",
            "href": "http://maps.jccal.org/Default.aspx"
          },
          {
            "text": "Mobile County Tax Bill Search",
            "href": "http://www.mobilecopropertytax.com/bill_search.shtml"
          },
          {
            "text": "Madison County Online Maps",
            "href": "http://madisoncountyal.gov/maps/"
          },
          {
            "text": "Montgomery County Property Search",
            "href": "http://www.mc-ala.org"
          }
        ]
      }
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment