JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
javascript
node.js
.gitmodules
README.md

README.md

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);
  });
});