Created
March 2, 2011 01:24
-
-
Save vinibaggio/850289 to your computer and use it in GitHub Desktop.
Api do call 4 paperz
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
| # Index | |
| http://www.call4paperz.com/events.json | |
| # Show do evento | |
| http://www.call4paperz.com/events/1.json | |
| # Show da proposta | |
| http://www.call4paperz.com/events/1/proposals/1.json | |
| # Evento com JSONP (preste atenção no p no formato) | |
| http://www.call4paperz.com/events/1.jsonp?callback=meu_callback |
Author
Show! Valeu :D
Exemplo usando Sammy como montei no http://braziljs.com.br/2011#!/agenda
https://gist.github.com/861452
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
//Como consumir via JSONP do Jquery -- testado no Firebug e Firefox 3.6 com jquery 1.5
var callback = function(data) { var event = data.event console.log(event); event.proposals.forEach(function(proposal){ console.log(proposal); }); } var url = "http://call4paperz.com/events/13.jsonp"; var config = {dataType: "jsonp", jsonpCallback: "callback"}; $.ajax(url, config);