MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / getCdnKey

Function getCdnKey

media/video-stitcher/getCdnKey.js:33–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 const stitcherClient = new VideoStitcherServiceClient();
32
33 async function getCdnKey() {
34 // Construct request
35 const request = {
36 name: stitcherClient.cdnKeyPath(projectId, location, cdnKeyId),
37 };
38 const [cdnKey] = await stitcherClient.getCdnKey(request);
39 console.log(`CDN key: ${cdnKey.name}`);
40 }
41
42 getCdnKey().catch(err => {
43 console.error(err.message);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected