Skip to content

Commit a026db6

Browse files
committed
Update example with latest SDK signature
1 parent 365bbec commit a026db6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

example/example.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ async def main():
2020
print(value)
2121

2222
# Create an Item and add it to your vault.
23-
to_create = Item(
24-
id="",
23+
to_create = ItemCreateParams(
2524
title="MyName",
2625
category="Login",
2726
vault_id="q73bqltug6xoegr3wkk2zkenoq",
@@ -54,7 +53,7 @@ async def main():
5453

5554
# Update a field in your item
5655
item.fields[0].value = "new_value"
57-
updated_item = await client.items.update(item)
56+
updated_item = await client.items.put(item)
5857

5958
print(dict(updated_item))
6059

0 commit comments

Comments
 (0)