Skip to content

Commit 3e8c8b3

Browse files
authored
Update feeds.rst
#146 - updated Feeds documentation for correct `Client` interface
1 parent 36e2dcc commit 3e8c8b3

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)