GET v1/notification/listNotificationByCompanyCode?companyCode={companyCode}&user_id={user_id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companyCode

string

Required

user_id

integer

Required

Body Parameters

None.

Response Information

Resource Description

listNotificationByCompanyCodeResult
NameDescriptionTypeAdditional information
success

boolean

None.

message

string

None.

errorMsg

string

None.

notifications

Collection of notificationItem

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2",
  "errorMsg": "sample string 3",
  "notifications": [
    {
      "notification_id": 1,
      "title": "sample string 2",
      "message": "sample string 3",
      "sentdate": "sample string 4",
      "sentTime": "sample string 5",
      "companyCode": "sample string 6"
    },
    {
      "notification_id": 1,
      "title": "sample string 2",
      "message": "sample string 3",
      "sentdate": "sample string 4",
      "sentTime": "sample string 5",
      "companyCode": "sample string 6"
    }
  ]
}

application/xml, text/xml

Sample:
<listNotificationByCompanyCodeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/unifiedApp.Models.notification">
  <errorMsg>sample string 3</errorMsg>
  <message>sample string 2</message>
  <notifications>
    <listNotificationByCompanyCodeResult.notificationItem>
      <companyCode>sample string 6</companyCode>
      <message>sample string 3</message>
      <notification_id>1</notification_id>
      <sentTime>sample string 5</sentTime>
      <sentdate>sample string 4</sentdate>
      <title>sample string 2</title>
    </listNotificationByCompanyCodeResult.notificationItem>
    <listNotificationByCompanyCodeResult.notificationItem>
      <companyCode>sample string 6</companyCode>
      <message>sample string 3</message>
      <notification_id>1</notification_id>
      <sentTime>sample string 5</sentTime>
      <sentdate>sample string 4</sentdate>
      <title>sample string 2</title>
    </listNotificationByCompanyCodeResult.notificationItem>
  </notifications>
  <success>true</success>
</listNotificationByCompanyCodeResult>

text/html

Sample:
{"success":true,"message":"sample string 2","errorMsg":"sample string 3","notifications":[{"notification_id":1,"title":"sample string 2","message":"sample string 3","sentdate":"sample string 4","sentTime":"sample string 5","companyCode":"sample string 6"},{"notification_id":1,"title":"sample string 2","message":"sample string 3","sentdate":"sample string 4","sentTime":"sample string 5","companyCode":"sample string 6"}]}