diff options
| author | Devendra | 2014-04-17 00:28:05 +0530 |
|---|---|---|
| committer | Devendra | 2014-04-17 00:28:05 +0530 |
| commit | 9dc2555746adf717da0db808f4096af2167a1580 (patch) | |
| tree | 71b9f309cc123313309dc9d7bbf500822e5c99f1 /python/examples/publish-example.py | |
| parent | 150ae1566d813acbb773839e919db2c0f467931c (diff) | |
| download | pubnub-python-9dc2555746adf717da0db808f4096af2167a1580.tar.bz2 | |
adding ver 1 of dev console
Diffstat (limited to 'python/examples/publish-example.py')
| -rwxr-xr-x | python/examples/publish-example.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/examples/publish-example.py b/python/examples/publish-example.py index bb8b199..e632aef 100755 --- a/python/examples/publish-example.py +++ b/python/examples/publish-example.py @@ -19,12 +19,13 @@ publish_key = len(sys.argv) > 1 and sys.argv[1] or 'demo' subscribe_key = len(sys.argv) > 2 and sys.argv[2] or 'demo' secret_key = len(sys.argv) > 3 and sys.argv[3] or 'demo' cipher_key = len(sys.argv) > 4 and sys.argv[4] or '' ##(Cipher key is Optional) -ssl_on = len(sys.argv) > 5 and bool(sys.argv[5]) or False +auth_key = len(sys.argv) > 5 and sys.argv[4] or 'abcd' ##(Cipher key is Optional) +ssl_on = len(sys.argv) > 6 and bool(sys.argv[5]) or False ## ----------------------------------------------------------------------- ## Initiate Pubnub State ## ----------------------------------------------------------------------- -pubnub = Pubnub( publish_key, subscribe_key, secret_key, cipher_key, ssl_on ) +pubnub = Pubnub( publish_key, subscribe_key, secret_key, cipher_key, auth_key, ssl_on ) crazy = 'hello_world' ## ----------------------------------------------------------------------- |
