0.0.3 • Published 12 years ago
thoth v0.0.3
Different clients for http://thoth.io
JavaScript
Example on jsfiddle: http://jsfiddle.net/YUKyB/
<!-- Currently depends on jQuery -->
<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="https://raw.github.com/eirikb/thoth-cli/master/javascript/thoth.jquery.min.js"></script>
thoth.create('Hello, world', function(error, id) {
console.log('id:', id);
thoth.read(id, function(error, data) {
console.log(data);
});
});
Node.js
npm install thoth
var thoth = require('thoth');
thoth.create('Hello, world', function(error, id) {
console.log('id:', id);
thoth.read(id, function(error, data) {
console.log('data', data);
});
});