跳到主內容

取得通知內容

簡單描述
  • 取得通知內容
請求URL
  • https://www.vigorshine.com/crutch/api/GetNotification
請求方式
  • POST
請求範例
{
  "tel": "string",
  "time": "2024-10-21T05:46:01.573Z"
}
參數
參數名稱 必填 型別 說明
tel string 關懷者電話號碼
time datetime 時間 取得此時間後推播
傳回範例
{
  "success": true,
  "errorCode": 0,
  "message": "string",
  "": [
    {
      "time": "2024-10-21T05:46:01.577Z",
      "title": "string",
      "body": "string"
    }
  ]
}
傳回參數說明
參數名稱 型別 說明
success bool 是否成功
errorCode int 錯誤代碼 (有錯誤時才有)
message string 錯誤訊息 (有錯誤時才有)
results array 推播內容
  • results
參數名稱 型別 說明
time datetime 推播時間
title string 標題
body string 內容
備註
錯誤代碼 錯誤說明
1001 電話不可空白!
1041 關懷者電話錯誤!
9999 非預期的例外