Closed cmlccie closed 6 years ago
Issue: Users recieve either an AssertionError or TypeError (depending upon the version of the ciscosparkapi package they are using), when they run the following line of code:
AssertionError
TypeError
ciscosparkapi
>>> api.memberships.create(room, personEmail="USER2@EMAIL.COM")
Fix: The room.id should be passed to the .memberships.create() method, not the room object itself.
room.id
.memberships.create()
room
The instruction should look like this:
>>> api.memberships.create(room.id, personEmail="USER2@EMAIL.COM")
A three-character fix! 😎
I am in process of submitting a Pull Request for this fix, along with a number of edits to this lab.
I have confirmed the changes have been pushed to production and are live at learninglabs.cisco.com. -Thank You!
Exploring the 'ciscosparkapi' Python Library | Step 3
Issue: Users recieve either an
AssertionError
orTypeError
(depending upon the version of theciscosparkapi
package they are using), when they run the following line of code:Fix: The
room.id
should be passed to the.memberships.create()
method, not theroom
object itself.The instruction should look like this:
A three-character fix! 😎