Sha256: 4d6b778e23a106b57a1b9d8e67a0225a7cc0331a4caf975469942f0bf01fa7f3
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 Bytes
Contents
<!DOCTYPE html> <html> <head> <title>Stratumn SDK for Javascript browser example</title> <script type="text/javascript" src="../../dist/stratumn-agent-client.js"></script> </head> <body> <script type="text/javascript"> AgentClient .getAgent('http://localhost:3000') .then(function(agent) { return agent.createMap('Hello'); }) .then(function(segment) { console.log(segment); return segment.updateTitle('Hi'); }) .then(function(segment) { console.log(segment); return segment.getPrev(); }) .then(function(segment) { console.log(segment); }) .catch(function(err) { console.error(err); }); </script> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mapexplorer-rails-1.0.0 | vendor/assets/stratumn-agent-client/examples/browser/index.html |