Closed ShravanSunder closed 1 month ago
Hey @ShravanSunder, thank you for this feature request!
From my understanding of your use case, what could already be doing is:
// Retrieves item
item, err := client.Items.Get(context.Background(), existingVaultID, existingItemID)
if err != nil {
panic(err)
}
allSectionsOfTheItem := item.Sections
allFieldsOfTheItem := item.Fields
Let me know if this solves your problem!
@AndyTitu wouldn't this be multiple requests? We'd hit the rate limit very quickly with somthing like this
@ShravanSunder This would be a single API call for just the client.Items.Get
request. The server response already contains all sections and fields on the item. When you item.Sections
this doesn't trigger any additional HTTP requests.
oh thanks @SimonBarendse! to confirm the above is possible with py and ts libs too?
Yes, that's right.
Use Case
It would be much easier to load data for a .env file if we could load all the fiends in a section/item with a single service account call.
We could use this to populate a dict for dot env variables. I would find this much easier to use. related: https://github.com/1Password/onepassword-sdk-python/issues/56
Requirements and desired behavior
Currently load single fields
Additional information
No response