獲取提醒條件通知的設置
獲取提醒的條件通知的設置。
URL
獲取生產環境的設置時,URL 與獲取測試環境的設置時不同。
如果要獲取生產環境的設置
- 常規應用
- https://sample.cybozu.com/k/v1/app/notifications/reminder.json
- 建立訪客空間
- https://sample.cybozu.com/k/guest/
GUEST_SPACE_ID
/v1/app/notifications/reminder.json
獲取操作測試環境的設置
- 常規應用
- https://sample.cybozu.com/k/v1/preview/app/notifications/reminder.json
- 建立訪客空間
- https://sample.cybozu.com/k/guest/
GUEST_SPACE_ID
/v1/preview/app/notifications/reminder.json
HTTP 方法
GET
所需許可權
- 應用程式管理
請求
參數
參數名稱 | 型 | 必須 | 說明 |
---|---|---|---|
app | 數位或字串 | 必須 | 應用ID |
lang | 字串 | 自選 | 要檢索的名稱的語言 如果已在選擇公式欄位的選項欄位 中設置了每種 語言的名稱,請指定此項。
|
範例請求(如果要在網址中包含參數 )
URL
https://sample.cybozu.com/k/v1/app/notifications/reminder.json?app=1&lang=ja
頁眉
|
|
關於請求頭,請參見 kintone REST API的通用規範 。
範例要求(如果要在要求正文中包含參數)
URL
https://sample.cybozu.com/k/v1/app/notifications/reminder.json
頁眉
|
|
身體
|
|
回應
財產
屬性名稱 | 型 | 說明 |
---|---|---|
notifications | 陣列 | 設定通知條件(提醒) |
notifications[].timing | 物件 | 通知時間 |
notifications[].timing.code | 字串 | 用作通知時間的參考日期和時間的欄位的欄位代碼 |
notifications[].timing.daysLater | 字串 | 參考日期和時間之前或之後的多少天或幾天將收到通知? 如果要在引用日期和時間之前通知,則返回負整數。 |
notifications[].timing.hoursLater | 字串 | 從添加到基準日期和時間 timing.daysLater 的日期和時間中,應提前多少小時或小時通知?timing.code 指定一個表示日期和時間的字段,如果設置了"指定相對時間",則返回一個值。如果早於引用日期和時間,則返回負整數。 |
notifications[].timing.time | 字串 | 從添加到基準日期和 timing.daysLater 時間的日期開始何時通知在以下情況之一中返回值:
|
notifications[].filterCond | 字串 | 提醒條件通知條件 它以查詢的形式表示。有關查詢格式, 請參閱如何 編寫查詢。 如果指定了已刪除的使用者/組織/組,則返回錯誤。 |
notifications[].title | 字串 | 提醒條件通知中通知了哪些內容 |
notifications[].targets | 陣列 | 通知收件人名單 |
notifications[].targets[].entity | 物件 | 一個表示通知目標的物件 |
notifications[].targets[].entity.type | 字串 | 通知收件者的類型
|
notifications[].targets[].entity.code | 字串 | 通知目標目標的代碼entity.type 這取決於的值。
|
notifications[].targets[].includeSubs | 布爾值 | 設置是否由子單位繼承
entity.type 僅當指定了組織選擇字段時,才返回"ORGANIZATION"或"FIELD_ENTITY"。 |
timezone | 字串 | 提醒時間的時區 從未設置提醒條件通知的應用將返回「null」。 |
revision | 字串 | 應用設置的修訂號 |
示例回應
|
|
示例代碼
使用 curl 的請求
|
|
發送kintone REST API請求 使用API 發送請求
|
|