mirror of
https://github.com/henrybear327/Proton-API-Bridge.git
synced 2026-01-19 04:28:31 -05:00
17 lines
332 B
Go
17 lines
332 B
Go
package proton_api_bridge
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/henrybear327/go-proton-api"
|
|
)
|
|
|
|
func (protonDrive *ProtonDrive) getLink(ctx context.Context, linkID string) (*proton.Link, error) {
|
|
link, err := protonDrive.c.GetLink(ctx, protonDrive.MainShare.ShareID, linkID)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return &link, nil
|
|
}
|