Add ability to get metadata associated with a box

This commit is contained in:
sophia 2022-03-07 10:41:59 -06:00 committed by Paul Hinze
parent 4af9e4166d
commit e9e24986bd
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -323,6 +323,10 @@ func (b *Box) Metadata() (metadata core.BoxMetadataMap, err error) {
return metadata, mapstructure.Decode(meta, &metadata)
}
func (b *Box) BoxMetadata() (metadata map[string]interface{}, err error) {
return b.box.Metadata.AsMap(), nil
}
func (b *Box) MetadataURL() (url string, err error) {
return b.box.MetadataUrl, nil
}