Skip to content

Commit 76f5968

Browse files
committed
Add examples
1 parent 0f383ea commit 76f5968

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

example/example.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ async def main():
1515
integration_version="v1.0.0",
1616
)
1717

18+
vaults = await client.vaults.list_all()
19+
async for vault in vaults:
20+
print(vault.title)
21+
items = await client.items.list_all(vault.id)
22+
async for item in items:
23+
print(item.title)
24+
1825
# Retrieves a secret from 1Password. Takes a secret reference as input and returns the secret to which it points.
1926
value = await client.secrets.resolve("op://vault/item/field")
2027
print(value)

0 commit comments

Comments
 (0)