Tag Info

Hot answers tagged

6

Thanks for the help, S.Mark. Here's the answer: http://code.google.com/chrome/extensions/xhr.html You must register the API in your manifest.json file under permissions: ... "permissions": ["http://api.stackoverflow.com/"], ... }


4

I've been a long time user of this script and really loved it. The makeover is excellent, 1-click vote is pretty nice! Some minor issues: On Stack Overflow: Notice that the starting letter of the question("I") is still at the top Seems to happen at cases where the question length exceeds certain limit Example: ...


4

First of all, version 1.1 of the API has been deprecated for quite some time now. Users are strongly encouraged to move their applications over to version 2.1. The URL for retrieving information about a question looks something like this: http://api.stackexchange.com/2.1/questions/ question_id ?site= site_name For example, to retrieve information ...


3

Currently the API does not let you get "featured" questions (questions that have bounties) using or logic with the tag parameters. That is, you cannot search for questions that: Have a bounty AND (have Tag-A OR Tag-B) It might make sense to add a hasbounty parameter to the /search/advanced path. Workaround: In the meantime, since the number of featured ...


2

Personally I think listing apps that use the data dump are fine -- it's an expansion of scope for stackapps, but then so was adding support for browser scripts. Generally anything third-party and programmery that makes the network more awesome should go here.


2

I have been working on another API recently so I may be a bit dull but my first impression is that the path of least resistance is to pull your question(s) with answers and comments disregarding activity/creation filter (use max page size) compare last activity date of the question. this will include new answers and edits on both the question and answers ...


2

No, you can't do it because py-stackexchange is a library based on SE API that does not provide that kind of search. You should use Google API search instead.


1

Looking at the API 2.0 docs it looks like you can only pull favorites for a set of users - see http://api.stackexchange.com/docs/favorites-on-users#order=desc&min=2011-12-01&max=2012-01-01&sort=added&ids=29407&filter=default&site=stackoverflow&run=true It explains how the list of users is currently constrained to 100 entries, so ...


1

Use the /questions path and sort by: creation, desc. For example:     /2.1/questions?pagesize=15&order=desc&sort=creation&tagged=php&site=stackoverflow


1

There is no app, exactly like that but two are pretty close (they don't have any annoying sounds). These both run on Windows + Linux platforms and provide desktop alerts for favorited/tracked tags. Check out: StackApplet: , built on the QT framework New Q!: , Uses the Chrome browser for its engine.


1

The documentation you linked to is for API 2.x, but you're querying 1.1 which doesn't return those exact objects (and is deprecated). This API 2.1 request will return the results you were expecting: http://api.stackexchange.com/2.1/questions/13752517/related?site=stackoverflow


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

No, the current API does not allow you to create new posts (questions or answers). If you scroll through the documentation looking for [auth required] you'll notice that only comments can be posted at this time. Having said that, there are a couple of issues with your bookmarklet idea. What would the title of the post be (assuming the selected text would ...


1

No, this is not currently available. It is currently not slated for the next API release either... I'll look into what it would take to get it added though. If it's not too rough it might make it into V2. Time was found to implement this, and it's been deployed.


1

Its because post id 74 is an answer, not a question. This was an undiscovered bug in the API back when we froze it, but enough [app]s depend on it that we haven't "fixed" it. Naturally, answers have no titles or tags.


1

/questions and /questions/unanswered are returning different sets of questions, which both are both functioning properly as far as I can tell. Of the various functions in the API, those two have seen some of the most tweaking since we went into public beta; so it wouldn't surprise me if they were broken at some point. They're [status-norepo] now though.


1

As Dennis pointed out, there is no owner (effectively) on that question. That the API does not return a displayable "no user" string in these (and related) cases is an acknowledge deficiency which will be rectified in a subsequent version.


1

This has been "fixed." Air quotes because this reveals a deficiency in the 1.0 interface. Namely, migrated questions are a one-way door in the 1.0 world. You'll only see a pointer out of the site where it was asked, not in. So, http://api.serverfault.com/1.0/questions/98620 -> http://api.superuser.com/1.0/questions/91137 but not the other way around.


1

These are two simple methods in meta-language: 1. Pulls a pagesize number of answers, page after page, checking the presence of the given accepted_answer_id def get_accepted_answer_page(question_id, answer_id, sort, pagesize): page = 1 while(True): answers_page_ids = get_answers_ids_with_API_method(question_id, sort, page, pagesize) ...



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