()
| 31 | const livestreamServiceClient = new LivestreamServiceClient(); |
| 32 | |
| 33 | async function getChannel() { |
| 34 | // Construct request |
| 35 | const request = { |
| 36 | name: livestreamServiceClient.channelPath(projectId, location, channelId), |
| 37 | }; |
| 38 | const [channel] = await livestreamServiceClient.getChannel(request); |
| 39 | console.log(`Channel: ${channel.name}`); |
| 40 | } |
| 41 | |
| 42 | getChannel(); |
| 43 | // [END livestream_get_channel] |