Skip to content

Commit ecefb29

Browse files
authored
Merge pull request #147 from Pjurek3/patch-1
#146 - Fix Client Interface in Feeds Documentation
2 parents 36e2dcc + 3e8c8b3 commit ecefb29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/feeds.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Create a feed by constructing a Feed instance with at least a name specified, an
1111
1212
# Import library and create instance of REST client.
1313
from Adafruit_IO import Client, Feed
14-
aio = Client('YOUR ADAFRUIT IO KEY')
14+
aio = Client('YOUR ADAFRUIT IO USERNAME', 'YOUR ADAFRUIT IO KEY')
1515
1616
# Create Feed object with name 'Foo'.
1717
feed = Feed(name='Foo')
@@ -30,7 +30,7 @@ You can get a list of your feeds by using the ``feeds()`` method which will retu
3030
3131
# Import library and create instance of REST client.
3232
from Adafruit_IO import Client
33-
aio = Client('YOUR ADAFRUIT IO KEY')
33+
aio = Client('YOUR ADAFRUIT IO USERNAME', 'YOUR ADAFRUIT IO KEY')
3434
3535
# Get list of feeds.
3636
feeds = aio.feeds()
@@ -45,7 +45,7 @@ Alternatively you can retrieve the metadata for a single feed by calling ``feeds
4545
4646
# Import library and create instance of REST client.
4747
from Adafruit_IO import Client
48-
aio = Client('YOUR ADAFRUIT IO KEY')
48+
aio = Client('YOUR ADAFRUIT IO USERNAME', 'YOUR ADAFRUIT IO KEY')
4949
5050
# Get feed 'Foo'
5151
feed = aio.feeds('Foo')

0 commit comments

Comments
 (0)