Tag Info

Hot answers tagged

2

Done. Compare: http://api.stackoverflow.com/0.8/errors/4002 and http://api.stackoverflow.com/0.8/errors/4002?jsonp=wrapperFunc


2

JSONP support was recently added to the API ( See this question ). The name of the parameter to trigger padding is jsonp: http://api.stackoverflow.com/0.8/tags?jsonp=blah


2

I haven't used PhoneGap yet, but they claim that you develop apps with plain old JS, CSS, and HTML. If that's true, then use the API just like you would from a web page -- with simple AJAX calls. Here's a working example (using jQuery): var userID = 1416412; var pageNum = 1; var pageSize = 100; var siteParam = 'stackoverflow'; var appKey ...


1

For one use the current API version (2.1) instead of an old one (1.1 in your case). Furthermore, when using JSONP you do not have to parse the result. The data object you get in your success method already is a JavaScript object you can work with. $(function(){ $.ajax({ url: ...


1

The API expects JSONP requests to specify the callback as the jsonp parameter, not the callback that jQuery uses by default. While really you should consider upgrading to API 2.1, which does expect callback (and allows CORS, for that matter), you can fix your code by putting in the jsonp parameter placeholder: $.ajax({ ...


1

The API (once it's version 1.0*, anyway) won't change. You're concerns are unwarranted. Just sum the gold, silver, and bronze badges counts you get from /users/{id}. *And with 0.9 being a release candidate, there almost certainly won't be any changes in badges of all things before 1.0



Only top voted, non community-wiki answers of a minimum length are eligible