此方法有一個常見用途,說明如下。說明下方的按鈕會將範例值填入 API Explorer,或是開啟全螢幕 APIs 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.