Program the web using APIs in Javascript
{
name: "Thibaud Arnault", job: "CEO & Co-founder, webshell.io", twitter: "@thibaud_arnault", email: "thibaud.arnault@gmail.com" }
<script type="text/javascript" src="http://api.webshell.io/sdk/js?key={key}"></script>
... and start making API calls in a <script>
wsh.exec({
code: function() {
apis.google.maps();
},
process: function(data, meta) {
$(body).append(meta.view)
}
});
var hn = get({ url: 'https://news.ycombinator.com/rss', format: 'xml' }); render(hn, { view: '<ul>\ <% for (var item in data.rss.channel[0].item) { %>\ <li>\ <a href="<%= data.rss.channel[0].item[item].link[0] %>">\ <%= (parseInt(item) + 1) %>. <%= data.rss.channel[0].item[item].title[0] %>\ </a><br /><span>(<%= data.rss.channel[0].item[item].link[0] %>)</span>\ </li>\ <% } %>\ </ul>' });
var m = apis.google.maps();
m.center('paris');
var player = apis.youtube.player('BbkE-qN-jOM');
player.playVideo();
apis.facebook.auth(); //connexion with OAuth2
apis.twitter.auth(); //connexion using OAuth1
apis.facebook.me();
apis.twitter.search('@webshell_');