Created
April 13, 2013 03:50
Revisions
-
jadell created this gist
Apr 13, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ $.ajax("https://mydomain.loggly.com/api/facets/date/?q=my_search_criteria", { // Don't send the _=timestamp query parameter cache: true, // Send HTTP auth credentials username: api_readonly_username, password: api_readonly_password, // Use JSONP dataType: "jsonp" }).done(function(data) { // handle data, probably a call to some graphing library }).fail(function() { // alert failure });