>skill-package/>routines/>triggers/>MyRadioPlayerBatteryLow/>en-US.json>skills.json//en-US.json{"name":"MyRadioPlayerBatteryLow","display":{"title":"Battery Low","description":"Start a routine when your My Radio Player's battery is low.","iconUrl":"https://<url-to-MyRadioPlayer-icon>"},"parameters":[{"name":"deviceId",//MyRadioPlayerデバイスのendpointID"schema":{"type":"enum",//enumを使用することで、Routines.TriggerParameter.Getリクエストで指定できるデバイスのリストが返されます"dynamicConfig":{//ユーザーごとにdeviceIdに指定できる値が取得されるよう、このオブジェクトを定義します。ItisnormaltohaveanemptydynamicConfig.}},"display":{"title":"Device","description":"Your MyRadioPlayer device",//すべての列挙型オプションに説明を付けるか、どれにも説明を付けないかのどちらかにする必要があります。混在させることはできません。"iconUrl":"https://<url-to-MyRadioPlayer-icon>"}}],"accountLinkingRequired":"REQUIRED",//アカウント固有の情報を必要とする動的パラメーターが存在する場合は必須です"delivery":"UNICAST","displayCategories":["RADIO"],"keywords":["radio","player","smarthome"]}
>skill-package/>routines/>triggers/>MyRadioPLayerMaintenanceReminder/>en-US.json>skills.json//en-US.json{"name":"MyRadioPlayerMaintenanceReminder","display":{"title":"Maintenance Reminders","description":"Start a routine when any of these maintenance reminders occur with you MyRadioPlayer device.","iconUrl":"https://<url-to-MyRadioPlayer-icon>"},"parameters":[//パラメーターの順序は重要です。ユーザーはこの順序でパラメーターを選択します。{"name":"deviceId",//動的パラメーター"schema":{//動的パラメーターの新しいフィールドを開始します"type":"enum",//列挙型、整数(内部的に文字列として表されます)"dynamicConfig":{//このフィールドを追加するとパラメーターが動的になります"dependsOn":[]//オプション。デフォルトは空です。このパラメーターに指定できる値を判断するために、選択された値に依存するパラメーター名のリスト。トリガーのパラメーターリストの最初のパラメーターは空にする必要があります。}//動的パラメーターの新しいフィールドを終了します},"display":{"title":"Device","description":"Your MyRadioPlayer device","iconUrl":"https://<url-to-MyRadioPlayer-icon>"}},{"name":"maintenanceReminderType",//条件付き列挙値を持つパラメーター。"schema":{"type":"enum","dynamicConfig":{"dependsOn":["deviceId"]//ユーザーがdeviceIdに選択した値に応じて、このパラメーターに指定できる値が決まります。このトリガーのパラメーターリストでこのパラメーターよりも前に設定されているパラメーター名のみを含めることができます。},},"display":{"title":"Maintenance Reminder","description":"The type of maintenance reminder","iconUrl":"https://<url-to-MyRadioPlayer-icon>"}}],"accountLinkingRequired":"REQUIRED","delivery":"UNICAST","displayCategories":["RADIO"],"keywords":["radio","player","smarthome"]}
StatusCode200OkayContent-Type:application/json{"requestId":"<uuid0>","triggerParameter":{"schema":{"values":[//値の指定順序がユーザーに表示される順序になります//選択可能なパラメーター値のリストは、"dependsOn"リストでユーザーが選択したパラメーターの値に基づきます{"value":"cleanSensors","display":{"title":"Clean Sensors","description":"Reminder for when your MyRadioPlayer's sensors need to be cleaned"}},{"value":"replaceBattery","display":{"title":"Replace Battery""description":"Reminder for when your MyRadioPlayer's battery needs to be replaced"}}]}}}
>skill-package/>routines/>triggers/>MyRadioPlayerChargingStatusChanged/>en-US.json>skills.json//en-US.json{"name":"MyRadioPlayerChargingStatusChanged","display":{"title":"Chargin Status Changed","description":"Start a routine when the charging status of your MyRadioPlayer reaches the specified status.","iconUrl":"https://<url-to-MyRadioPlayer-icon>"},"parameters":[//パラメーターの順序は重要です。ユーザーはこの順序でパラメーターを選択します。{"name":"deviceId",//動的パラメーター"schema":{//動的パラメーターの新しいフィールドを開始します"type":"enum",//列挙型、整数(内部的に文字列として表されます)"dynamicConfig":{//このフィールドを追加するとパラメーターが動的になります"dependsOn":[]//オプション。デフォルトは空です。このパラメーターに指定できる値を判断するために、選択された値に依存するパラメーター名のリスト。トリガーのパラメーターリストの最初のパラメーターは空にする必要があります。}//動的パラメーターの新しいフィールドを終了します},"display":{"title":"Device","description":"Your MyRadioPlayer device","iconUrl":"https://<url-to-MyRadioPlayer-icon>"}},{"name":"chargingStatus",//列挙値を持つパラメーター。"schema":{"type":"enum",//これは動的パラメーターではないため、dynamicConfigは使用しません。"values":[{//このパラメーターに指定できるすべての値。"value":"batteryHalfChargedId","display":{"title":"Half-charged","description":"MyRadioPlayer battery is halfway charged.","iconUrl":"https://<url-to-MyRadioPlayer-icon>"}},{"value":"fullyChargedId","display":{"title":"Fully=charged","description":"MyRadioPlayer battery is fully charged.","iconUrl":"https://<url-to-MyRadioPlayer-icon>"}}]},"display":{"title":"Charging Status","description":"The charging status of the MyRadioPlayer device","iconUrl":"https://<url-to-MyRadioPlayer-icon>"}}],"accountLinkingRequired":"REQUIRED","delivery":"UNICAST","displayCategories":["RADIO"],"keywords":["radio","player","smarthome"]}
>skill-package/>routines/>triggers/>MyWeatherMessagePosted/>en-US.json>skills.json//en-US.json{"name":"MyWeatherEvent","display":{"title":"MyWeather Event","description":"Start a routine when any these types of MyWeather events happen.","iconUrl":"https://<url-to-MyWeather-icon>"},"parameters":[//パラメーターの順序は重要です。ユーザーはこの順序でパラメーターを選択します。{"name":"eventType","schema":{"type":"enum","dynamicConfig":{"dependsOn":[]//これはユーザーのアカウント設定のみに基づき、他のパラメーターの設定は関係しません。}},"display":{"title":"Event Type","description":"The type of event","iconUrl":"https://<url-to-MyWeather-icon>"}}],"accountLinkingRequired":"REQUIRED","delivery":"UNICAST","displayCategories":["OTHER"],"keywords":["weather","messaging"]}
StatusCode200OkayContent-Type:application/json{"requestId":"<uuid0>","triggerParameter":{"schema":{"values":[{"value":"callout","display":{"title":"@ Messages","description":"When you're included in an @ in someone's message."}},{"value":"yourEmote","display":{"title":"Your Emote","description":"When someone uses an emote you made.(MyWeather Only)"}},{"value":"activity","display":{"title":"Activity Start","description":"When an Activity starts in a server you own.(MyWeather only)"}}]}}}
MyWeatherのサブスクリプションを利用していないユーザーには、次の応答を送信します。
クリップボードにコピーされました。
StatusCode200OkayContent-Type:application/json{"requestId":"<uuid0>","triggerParameter":{"schema":{"values":[{"value":"callout","display":{"title":"@ Messages","description":"When you're included in an @ in someone's message."}}]}}}