From 7d76f9d0d9c04c2fbc7740a08122fdc4c5622fa3 Mon Sep 17 00:00:00 2001 From: Devendra Date: Sun, 24 Feb 2013 00:58:24 +0530 Subject: copying python, python-twisted, python-tornado --- python-twisted/examples/uuid-example.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 python-twisted/examples/uuid-example.py (limited to 'python-twisted/examples/uuid-example.py') diff --git a/python-twisted/examples/uuid-example.py b/python-twisted/examples/uuid-example.py new file mode 100644 index 0000000..94840e0 --- /dev/null +++ b/python-twisted/examples/uuid-example.py @@ -0,0 +1,28 @@ +## www.pubnub.com - PubNub Real-time push service in the cloud. +# coding=utf8 + +## PubNub Real-time Push APIs and Notifications Framework +## Copyright (c) 2010 Stephen Blum +## http://www.pubnub.com/ + +## ----------------------------------- +## PubNub 3.1 Real-time Push Cloud API +## ----------------------------------- + +import sys +from twisted.internet import reactor +sys.path.append('../') +from Pubnub import Pubnub + +## ----------------------------------------------------------------------- +## Initiate Pubnub State +## ----------------------------------------------------------------------- +pubnub = Pubnub( "", "", "", False ) + +## ----------------------------------------------------------------------- +## UUID Example +## ----------------------------------------------------------------------- + +uuid = pubnub.uuid() +print "UUID: " +print uuid -- cgit v1.2.3