We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d541dd commit 5a6c812Copy full SHA for 5a6c812
example/example.py
@@ -32,6 +32,14 @@ async def main():
32
print(item.title)
33
# [developer-docs.sdk.python.list-items]-end
34
35
+ # [developer-docs.sdk.python.validate-secret-reference]-start
36
+ # Validate secret reference to ensure no syntax errors
37
+ try:
38
+ await Secrets.validate_secret_reference("op://vault/item/field")
39
+ except Exception as error:
40
+ print(error)
41
+ # [developer-docs.sdk.python.validate-secret-reference]-end
42
+
43
# [developer-docs.sdk.python.resolve-secret]-start
44
# Retrieves a secret from 1Password. Takes a secret reference as input and returns the secret to which it points.
45
value = await client.secrets.resolve("op://vault/item/field")
0 commit comments