MCPcopy
hub / github.com/larksuite/cli / FetchDriveMetaURL

Function FetchDriveMetaURL

shortcuts/common/drive_meta.go:57–63  ·  view source on GitHub ↗

FetchDriveMetaURL looks up the document access URL via the drive metas batch_query API.

(runtime *RuntimeContext, token, docType string)

Source from the content-addressed store, hash-verified

55
56// FetchDriveMetaURL looks up the document access URL via the drive metas batch_query API.
57func FetchDriveMetaURL(runtime *RuntimeContext, token, docType string) (string, error) {
58 meta, err := FetchDriveMeta(runtime, token, docType, true)
59 if err != nil {
60 return "", err
61 }
62 return meta.URL, nil
63}

Callers 3

markdown_create.goFile · 0.92
drive_upload.goFile · 0.92
TestFetchDriveMetaURLFunction · 0.85

Calls 1

FetchDriveMetaFunction · 0.85

Tested by 1

TestFetchDriveMetaURLFunction · 0.68