Newest Articles
- Web Worker Concurrency with StratifiedJS
- Megazine: A stratified social links dashboard
- Oni Apollo 0.13: 'Official' NodeJS-based server-side support
- Oni Apollo 0.12: Cross-domain module loading directly from GitHub
- Oni Apollo 0.11: Bug fixes, StratifiedJS improvements and syntactic sugar
- Stratified Node.js: IO performance
- Stratifying asynchronous storage
- Oni Apollo 0.10.0: less bytes and modularized!
- Drones: A StratifiedJS canvas game
- Oni Apollo 0.9.2 with Twitter Anywhere support
- Apollo overview video
- Flickr cities tutorial
- Oni Apollo 0.9
- Hi from Oni Labs!
Oni Buzz
Oni Apollo 0.9.2 with Twitter Anywhere support
September 30, 2010 by Oni Labs
We're pleased to announce the release of Oni Apollo 0.9.2. For the full list of changes please consult the commit history in our github repository.
The main new item in this release is the binding to the Twitter @Anywhere API, which allows you to access Twitter through
UPDATE: Please note that as of version 0.10.0, Apollo's default modules have been externalized into the Apollo Standard Library. As a consequence, if you wish to include one of the standard modules (like 'twitter', below), you now need to prefix it with 'apollo:', e.g.: require('apollo:twitter');
<html>
<head>
<script src="http://code.onilabs.com/0.9.2/oni-apollo.js"></script>
<script type="text/sjs">
var T = require("twitter").initAnywhere({id:YOUR_API_KEY_HERE});
T("body").connectButton();
if (!T.isConnected())
T.waitforEvent("authComplete");
var tweets = T.call("statuses/home_timeline");
console.log(tweets);
// ...
</script>
</head>
<body>
...
</body>
</html>
For more info see the twitter module api docs. Also, @tomg has been working on a more complete twitter app scaffold which he'll unleash onto the world soon. Stay tuned :-)
