Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions about usage of the Stack Exchange API in client-side browser JavaScript.
2
votes
Injecting HTML Into A Stackexchange Site
the only people that have anything to say about it are your users.
If your add-on succeeds it is ok, if it doesn't then they are probably frowning. ;-)
For a producer of web content to frown upon …
2
votes
StackScript JavaScript Wrapper
Not trying to step on any toes, but the logical next step is to leverage the parser and build emitters for other languages and JavaScript is my current target. …
1
vote
Soapi.JS2: a fully relational JavaScript client library for the Stack Exchange API - beta pr...
Throttling and Caching
In order to provide maximum data throughput and at the same time protect your application from, and obviate coding for, server errors due to throttle rate violations and/or poll …
1
vote
Soapi.JS2: a fully relational JavaScript client library for the Stack Exchange API - beta pr...
Basic Usage Example 01
var ctx = new Soapi.ApiContext(apiKey);
ctx.initialize(function() { // ctx.initialize loads sites from stackauth
var site = ctx.find("api.stackapps.com"); // site is Soap …
1
vote
Soapi.JS2: a fully relational JavaScript client library for the Stack Exchange API - beta pr...
Async usage pattern
All query methods use the following typical async pattern
//
site.Badges().invoke(function onSuccess(items, userContext, methodName) {
// handle items array of domain objec …
13
votes
0
answers
15k
views
How to call the API via JSONP in Plain Old JavaScript
This tips demonstrates how to call the API in JavaScript without the need of jQuery or other frameworks. … Usage Example
<script src="scripts/DevTips.js" type="text/javascript"></script>
<script type="text/javascript">
var myApiKey = "";
var url = "http://api.stackapps.com/0.9/questions/unanswered …
3
votes
Soapi.JS2: a fully relational JavaScript client library for the Stack Exchange API - beta pr...
Api Coverage
Every path in the API has a reciprocal query rooted on the Soapi.Domain.Site object.
The query syntax has been constructed to be as intuitive as possible.
A complete map of Soapi.JS2 q …
3
votes
Soapi.JS2: a fully relational JavaScript client library for the Stack Exchange API - beta pr...
Relational Queries
When JSON results are received from the API, they are used to build domain objects from the Soapi.Domain namespace.
Upon these objects are strategically placed queries, the same q …
2
votes
Soapi.JS2: a fully relational JavaScript client library for the Stack Exchange API - beta pr...
boolean content flags are prefixed with 'with' to avoid collisions
site
.Questions()
.withAnswers(true)
.withBody(true)
.withComments(true)
.invoke();
Date Handling:
All dates in Soapi, in and out, are in JavaScript …
3
votes
Soapi.JS2: a fully relational JavaScript client library for the Stack Exchange API - beta pr...
ApiContext
Query based Soapi.JS2 usage is rooted on the ApiContext object. This object maintains the list of Site that are available for query and provides central services.
You gotta have one and i …
13
votes
12
answers
1k
views
Soapi.JS2: a fully relational JavaScript client library for the Stack Exchange API - beta pr...
function(users) {
alert(users[0].display_name);
});
});
About
Soapi.JS2 is being released separately from Soapi.JS as it is a completely different take on accessing the API via JavaScript … Known Issues:
JavaScript implementation differences break the throttle on webkit browsers on Linux and Mac OS X
ChangeLog:
Soapi.JS2-beta-09-17-2010
minor code and documentation improvements
added …
2
votes
Soapi.JS2: a fully relational JavaScript client library for the Stack Exchange API - beta pr...
Stubs
Many of the json results coming from the api contain either 'stub' objects, typically user objects, or just an object reference id.
e.g.
{
"total": 879225,
"page": 1,
"pagesize": 30,
"que …
1
vote
Soapi.JS2: a fully relational JavaScript client library for the Stack Exchange API - beta pr...
"></script>
<script src="third-party/linq.js" type="text/javascript"></script>
<script src="Scripts/Soapi2.js" type="text/javascript"></script>
<script src="Scripts/Soapi2.Throttle.js" type … ">
// Soapi JavaScript Library V2-ALPHA
// http://stackapps.com/questions/1433
// http://soapi.info/
//------------------------------------------------------------------ …
2
votes
Soapi.JS2: a fully relational JavaScript client library for the Stack Exchange API - beta pr...
1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title></title>
<script src="third-party/linq.js" type="text/javascript … "></script>
<script src="Scripts/Soapi2.js" type="text/javascript"></script>
<script src="Scripts/Soapi2.Throttle.js" type="text/javascript"></script>
<style type="text/css">
html { …
1
vote
OBSOLETE - Soapi.JS : fluent JavaScript client library for the Stack Exchange API
XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="scripts/Soapi.js" type="text/javascript … "></script>
<script src="scripts/Soapi.Generated.js" type="text/javascript"></script>
<script type="text/javascript">
function run() {
var apiKey = '';
var route …