Last active
August 29, 2015 13:57
-
-
Save tylerpearson/9467444 to your computer and use it in GitHub Desktop.
Google Civic Info API with jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
type: "POST", | |
url: "https://www.googleapis.com/civicinfo/us_v1/representatives/lookup?key=AIzaSyCcn1YcPE4Ja0tsYVb0oRxMxK4xTTjXRck", | |
data: JSON.stringify({'address': '1263 Pacific Ave. Kansas City KS'}), | |
dataType: "json", | |
contentType: "application/json; charset=utf-8" | |
}).done(function(data) { | |
alert("it worked"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment