()
| 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); |