1Password / connect-sdk-python

Python SDK for 1Password Connect
https://developer.1password.com/docs/connect
MIT License
200 stars 30 forks source link

Use content_path url to fetch the file content #64

Closed volodymyrZotov closed 1 year ago

volodymyrZotov commented 1 year ago

Resolves #46

The Connect server version 1.5.4 and 1.5.5 has an issue with the file id. The id property of the file is different than the file_id used to fetch file content (/v1/vaults/<vault_id>/items/<item_id>/files/<file_id>/content), but it should be the same. Starting from Connect v1.5.6 this issue is resolved and id and file_id has the same value.

This PR provides the fix for the users that use Connect v1.5.4 and v1.5.5. We started to use content_path value which always contains the correct url to fetch the file content.

volodymyrZotov commented 1 year ago

The fix will be provided in #65