Skip to content

Instantly share code, notes, and snippets.

@dergraf
Created May 15, 2012 13:55
Show Gist options
  • Save dergraf/2701956 to your computer and use it in GitHub Desktop.
Save dergraf/2701956 to your computer and use it in GitHub Desktop.
Tambur = tambur_client:new(MY_API_KEY, MY_APP_ID, SECRET).
Tambur:publish("test_stream", "some message").
import io.tambur.*;
Tambur tambur = new Tambur(MY_API_KEY, MY_APP_ID, SECRET);
tambur.publish("test_stream", "some message");
from tambur import Tambur
tambur = Tambur(api_key=MY_API_KEY app_id=MY_APP_ID, secret=SECRET)
tambur.publish('test_stream', 'some message')
require 'ruby-tambur'
tambur = Tambur::Connector.new(MY_API_KEY, MY_APP_ID, SECRET)
tambur.publish('test_stream', 'some message')
<script src="http://api.tambur.io/static/out/tambur.min.js"></script>
<script>
var conn = new tambur.Connection(MY_API_KEY, MY_APP_ID);
conn.ready = function() {
var stream = conn.get_stream("test_stream");
stream.onmessage = function(message) {
alert("received a new message " + message);
};
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment