Last active
February 23, 2016 18:27
-
-
Save garrettdashnelson/13fe4a0a765cad261620 to your computer and use it in GitHub Desktop.
Neotoma API pulls using jQuery
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 characters
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> | |
| <script> | |
| var ajaxOpts = { | |
| dataType:"jsonp", | |
| url:"http://api.neotomadb.org/v1/data/sites", | |
| data:{"loc":"-93.0546875,44.36209301204985,-89.0546875,48.36209301204985"}, | |
| success: logger | |
| } | |
| function logger(d) { console.log(d); } | |
| $.ajax(ajaxOpts); | |
| // Neotoma throws error | |
| // "_ is not a valid parameter for this resource. This resource accepts the following input parameters: sitename, altmin, altmax, loc, gpid, format" | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment