Tag Info

New answers tagged

1

The \r\n issue was solved when I changed to a POST request. But, since I was retagging questions (didn't really need to change the body, just resend it), I ended up using the body_markdown, encoded with HTMLParser.HTMLParser().unescape() body_markdown = str(HTMLParser.HTMLParser().unescape(question_data['items'][0]['body_markdown'])) And then sending ...


1

OK... I've just meddled with the API and editing. So, to do what you want, here's what I would do (in steps:) Get the questions via /questions with the tagged being installation. Use Python to loop through items (the results) and show them to you one-by-one. Make sure you make new variables saving the title, body and tags (so you can edit the question) ...


1

Use the /users/{ids} route to get account_id. Then pass the account_id to /users/{ids}/associated. Note that account_id is exactly the kind of information that should be heavily cached by your script/app. (Hint, hint; wink, wink; nudge, nudge. (^_^) ) For example: /2.2/users/10349?site=superuser&filter=!T6o*9deY.2ZD3-(n4f Returns: { ...


4

It's pretty easy to get the bibtex, just send a GET request formatted like so: http://mathoverflow.net/posts/{POST NUMBER}/citation For example, for this Math Overflow question, you can get the bibtex for the question and top 2 answers with: mathoverflow.net/posts/105922/citation (Question) mathoverflow.net/posts/105930/citation (Answer 1) ...


3

I've made a userscript to do this. Update: This has been added to the dev version of my SE Additional Optional Features userscript - please install that instead of this. Any updates will go straight to that userscript, not this! Get it at Github. It gets the latest 5 questions posted on the per-site meta of the current site and adds a diamond to the ...


2

I've made a userscript to do this. Get it at Github. It will add a button next to comments that belong to you after you have posted them (so not as you're writing). Clicking it will produce a prompt asking you for the number of days in which to delete the comment. Eg. entering 2 will delete it in exactly 2 days. It checks every o'clock for times that ...


1

First, read and thoroughly understand both: What topics can I ask about here? (Stack Apps) and What types of questions should I avoid asking? (Stack Apps) That said, you can propose changes to the API, or request apps, or request scripts. Keep in mind that this site is not an app/script writing service and almost everyone here is a volunteer. It would ...


1

Your second call must be https:. You actually got an error like: "error_id":406, "error_message":"Access token sent over non-HTTPS request, it has been invalidated", "error_name":"access_token_compromised" On the first attempt. Only subsequent attempts, with the same token, would yield the 'key' is not valid for passed 'access_token' error. When ...


1

You can't as of now. It doesn't exist in the API. Here's a feature request I made - please upvote that for higher chances of getting this added! :)


2

If the answer is the accepted answer, is_accepted is true and anyone can see it. accepted is set to true only if the currently authenticated user is the one who has accepted the answer. For instance, if I obtain an access_token with the private_info privilege and call: /2.2/questions/30028657/answers?site=stackoverflow&key={YOUR APP ...


2

This is a classic "procedural" (or "row based" or "sequential") versus "set based" issue. See Understanding “Set based” and “Procedural” approaches in SQL or any one of thousands of similar articles. The API uses SQL to get its results and the idea of requiring an arbitrary order to results is anathema in SQL -- a sign of possible deficiencies in "set ...


1

I don't have much experience with HttpClient but the problem does not seem to be caused by your code. Probably it is the lack of required parameters that causes problem. When I called this function in C#, I passed following parameters in order to make it work. I am not sure about "preview" parameter but I believe the site parameter is a must. Hope this ...


0

Okay I figured out that a filter(withbody) needs to be applied here. So the URL would be something like : http://api.stackexchange.com/2.2/questions/5877753/answers?order=desc&sort=activity&filter=withbody&site=stackoverflow



Top 50 recent answers are included