Skip to content

Commit

Permalink
Merge pull request #147 from Pjurek3/patch-1
Browse files Browse the repository at this point in the history
#146 - Fix Client Interface in Feeds Documentation
  • Loading branch information
brentru committed Nov 21, 2022
2 parents 36e2dcc + 3e8c8b3 commit ecefb29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/feeds.rst
Expand Up @@ -11,7 +11,7 @@ Create a feed by constructing a Feed instance with at least a name specified, an
# Import library and create instance of REST client.
from Adafruit_IO import Client, Feed
aio = Client('YOUR ADAFRUIT IO KEY')
aio = Client('YOUR ADAFRUIT IO USERNAME', 'YOUR ADAFRUIT IO KEY')
# Create Feed object with name 'Foo'.
feed = Feed(name='Foo')
Expand All @@ -30,7 +30,7 @@ You can get a list of your feeds by using the ``feeds()`` method which will retu
# Import library and create instance of REST client.
from Adafruit_IO import Client
aio = Client('YOUR ADAFRUIT IO KEY')
aio = Client('YOUR ADAFRUIT IO USERNAME', 'YOUR ADAFRUIT IO KEY')
# Get list of feeds.
feeds = aio.feeds()
Expand All @@ -45,7 +45,7 @@ Alternatively you can retrieve the metadata for a single feed by calling ``feeds
# Import library and create instance of REST client.
from Adafruit_IO import Client
aio = Client('YOUR ADAFRUIT IO KEY')
aio = Client('YOUR ADAFRUIT IO USERNAME', 'YOUR ADAFRUIT IO KEY')
# Get feed 'Foo'
feed = aio.feeds('Foo')
Expand Down

0 comments on commit ecefb29

Please sign in to comment.