Created
May 15, 2012 13:55
-
-
Save dergraf/2701956 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tambur = tambur_client:new(MY_API_KEY, MY_APP_ID, SECRET). | |
Tambur:publish("test_stream", "some message"). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.tambur.*; | |
Tambur tambur = new Tambur(MY_API_KEY, MY_APP_ID, SECRET); | |
tambur.publish("test_stream", "some message"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tambur import Tambur | |
tambur = Tambur(api_key=MY_API_KEY app_id=MY_APP_ID, secret=SECRET) | |
tambur.publish('test_stream', 'some message') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'ruby-tambur' | |
tambur = Tambur::Connector.new(MY_API_KEY, MY_APP_ID, SECRET) | |
tambur.publish('test_stream', 'some message') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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