Skip to content

Commit f7ad55f

Browse files
committed
update to aio key and use io.ladyada.org
1 parent 74ff2c0 commit f7ad55f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Adafruit_IO/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
#fork of ApiClient Class: https://github.com/shazow/apiclient
77
class Client(object):
8-
BASE_URL = 'http://localhost:3002/'
8+
#BASE_URL = 'http://localhost:3002/'
9+
BASE_URL = 'http://io.ladyada.org/'
910

1011
def __init__(self, key, rate_limit_lock=None):
1112
self.key = key
@@ -31,7 +32,7 @@ def _request(self, method, path, params=None):
3132
url = self._compose_url(path)
3233

3334
self.rate_limit_lock and self.rate_limit_lock.acquire()
34-
headers = {"X-Api-Key": self.key, 'Content-Type':'application/json'}
35+
headers = {"X-AIO-Key": self.key, 'Content-Type':'application/json'}
3536
if (method.upper() == "GET"):
3637
r = self.connection_pool.urlopen(method.upper(), url, headers=headers)
3738
else:

0 commit comments

Comments
 (0)