Skip to content

Commit e90ec60

Browse files
committed
removed debug code
1 parent 99dde6a commit e90ec60

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎stream/client.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99

1010
class StreamClient(object):
1111
base_url = 'https://getstream.io/api/'
12-
base_url = 'http://localhost:8000/api/'
12+
# base_url = 'http://localhost:8000/api/'
1313

14-
def __init__(self, api_key, api_secret):
14+
def __init__(self, api_key, api_secret, base_url=None):
1515
'''
1616
Initialize the client with the given api key and secret
1717
1818
:param api_key: the api key
1919
:param api_secret: the api secret
20+
:param base_url: (optionally overwrite the api base url)
2021
2122
**Example usage**::
2223
@@ -37,6 +38,8 @@ def __init__(self, api_key, api_secret):
3738
'''
3839
self.api_key = api_key
3940
self.api_secret = api_secret
41+
if base_url is not None:
42+
self.base_url = base_url
4043

4144
def feed(self, feed_id):
4245
'''

0 commit comments

Comments
 (0)