From 56a6a2cf5e798f412621a2ed4a6d2cb5356ee156 Mon Sep 17 00:00:00 2001 From: Devendra Date: Fri, 11 Oct 2013 01:03:45 +0530 Subject: fixed subscribe url generation code for python core --- python/Pubnub.py | 4 ++-- python/examples/subscribe-example.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/Pubnub.py b/python/Pubnub.py index b1d1777..680e64c 100644 --- a/python/Pubnub.py +++ b/python/Pubnub.py @@ -578,13 +578,13 @@ class PubnubCore(PubnubBase): timetoken = 'timetoken' in args and args['timetoken'] or 0 try : ## Wait for Message - response = self._request(self._encode([ + response = self._request({"urlcomponents" : [ 'subscribe', subscribe_key, channel, '0', str(timetoken) - ])+['?uuid='+self.uuid], encode=False) + ],"urlparams" : {"uuid" : self.uuid }}) messages = response[0] args['timetoken'] = response[1] diff --git a/python/examples/subscribe-example.py b/python/examples/subscribe-example.py index e458e2b..14a43d9 100755 --- a/python/examples/subscribe-example.py +++ b/python/examples/subscribe-example.py @@ -1,4 +1,5 @@ import sys +sys.path.append('../') import threading import time import random -- cgit v1.2.3