วิธีการนี้มีกรณีการใช้งานทั่วไป 1 กรณีตามที่อธิบายไว้ด้านล่าง ปุ่มใต้คำอธิบายจะเติมค่าตัวอย่างใน API Explorer หรือเปิด API Explorer แบบเต็มหน้าจอเพื่อแสดงตัวอย่างโค้ดที่ใช้ค่าเหล่านั้น ตัวอย่างโค้ดจะอัปเดตแบบไดนามิกด้วยหากคุณเปลี่ยนค่า

This example subscribes the authorizing channel to the GoogleDevelopers channel. You can change the channel being subscribed to by updating the snippet.resourceId.channelId property value.