Tag Info

Hot answers tagged

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 ...


3

As of this writing https://api.stackexchange.com does only allow the writing of Comments. See https://api.stackexchange.com/docs/write Starting with version 2.1, the Stack Exchange API provides limited support for writing to sites in the Stack Exchange network. There are a number of constraints imposed to prevent abuse and loss of quality on Stack ...


3

The date is in "Unix epoch time", as described in the API-docs, Date Formats section. How you do the conversion depends on what language you are coding in. Here's one way in javascript: function unixEpochTime_TO_Date_DDMMYY (unixEpochTime, returnUTC) { var year, month, day; var dateObj = new Date (unixEpochTime * 1000); if (returnUTC) { ...


3

Actually this can be done with using the rss feed channel on ifttt. together with the rss feed from the Stack2rss app that transforms stackoverflow api queries to an rss feed. like: http://stack2rss.stackexchange.com/stackoverflow/users/{{your user id}}/questions?body=true you should check the api for the specific query you like (respone, specific ...


2

You're treating the response as a UTF-8 encoded string. That's bound to fail with binary data like GZip. A quick fix is to use Encoding.GetEncoding("iso-8859-1") instead of UTF8 in StringToByteArray, and also pass this encoding to the StreamReader constructor in FetchURL. That encoding maps bytes to codepoints one-to-one; see this answer on Stack Overflow. ...


2

See the documentation for the /questions path and the question object spec. To get answers, merely use the /questions path with a filter that has answers enabled. To get the latest 30 questions, sort by activity, descending, and request only the first page with a page-size of 30. For example: ...


2

HTTP GET $.get("https://api.stackexchange.com/2.1/posts/144890/comments/add?site=meta.stackoverflow&key=ArbQjyecuJQ((&access_token=2YVSaccesstokenomg))&body=Another%20API%20test", console.log) {"error_name": "no_method", "error_message": "this method cannot be called this way", "error_id": 404} HTTP POST ...


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

This has been implemented in API version 2.2. To list the available close reasons, make a call to /questions/{id}/close/options. The result will list all valid close reasons, including pre-existing duplicate suggestions and off-topic comments. You cannot assume that a close option will be available without calling this method to see if it actually is. ...


1

See the Throttles doc page. The 10K limit is not if the customer registers, it is if you register your app and provide the key when you make API calls. Also, you can get more than 10K per IP if your app authenticates the user and then passes a valid access_token. In that case, it becomes 10K per logged in user and does not share the 10K IP limit. From ...


1

The tagged parameter to /search and related methods is an OR. This query will return questions tagged c# or java, for example. Or is rather expensive, which is one (of the many) reasons those methods are limited in how many results they return.


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

I found the answer. On the documentation page we find all needed information: Example: /2.1/questions? pagesize=50 fromdate=1371859200 todate=1372550400 order=desc sort=votes tagged=javascript site=stackoverflow ...


1

You'd have to use the Stack Exchange user ID: http://stackexchange.com/users/login. This is the account_id, to be more precise. With that, run the User's associated accounts method. Iterate through the results running another query (with your user_id in each site) to build the favorites: { "items": [ { "site_name": "Stack Overflow", ...


1

To do this you have to use the /users/{ids}/answers path to download all of a user's answers, and then filter out the tags and/or tot-up the scores from there. Pseudo code: scoreByTag = [] // Empty associative array while (more pages of results) { 1) Fetch next page of answers 2) Store results and/or update scoreByTag array } Display/use select ...


1

Yes, the sites path does not filter results on site_type. But the good news is, the path accepts a pagesize of 999, so you can get all the results at once. Then you must filter the results in your app. Here's what it looks like in jQuery: $.ajax ( { type: 'GET', url: ...



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