I've got a question regarding using jquery to make calls to the api.
When jquery makes the call, everything seems to be ok, the headers look good and the response has a 200 code, but the response body is empty. If I take the exact url (including the access token) and put it in a web browser window, everything loads correctly.
Any ideas on why the response is empty on an ajax call?
I guess you webapp doesn't live on the geni.com domain, so when you try to make an ajax call to their api from your own domain, you run into the cross domain issue. Ajax requests to third party websites are normally not possible because of security restrictions. Your ideal solution would be JSONP, but not sure geni's api supports is. For tips & ideas: http://www.google.com/search?q=jquery+cross+domain
Actually, here's what you do. Just change your url:
If you add .json to any call voila, JSON. :)
We don't currently support JSONP due to a potential privacy violation(*). Passing the AJAX call through your servers first is the best approach for now. We're currently investigating whether we can support JSONP with sufficient privacy protection, or maybe support CORS instead.