GET api/v1/[controller]?appUserID={appUserID}&notificationUserID={notificationUserID}

Retrieve the ten most recently sent messages.

Complete URL https://api.thyngs.net/api/v1/[controller]?appUserID={appUserID}&notificationUserID={notificationUserID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
appUserID

ID value of User from the Thyngs app

string

None.

notificationUserID

ID value of User from Notiications

string

None.

Body Parameters

None.

Response Information

Resource Description

Ten most recently sent messages

Collection of MessageInfoModel
NameDescriptionTypeAdditional information
MessageID

The ID value of this Message

integer

None.

SentDate

The Time and Date the message was sent

date

None.

CompanyName

Name of the Company that this message belongs to

string

None.

Title

The Title of the Message, which will be displayed to recipients

string

None.

MessageBody

The Body of the Message, which will be displayed to recipients

string

None.

ThumbImg

URL of an image which represents a Thumbnail Image to be displayed to recipients

string

None.

LinkURL

URL of a website that Users can be sent to from the Message

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "MessageID": 1,
    "SentDate": "2019-11-14T02:08:03.8271276+00:00",
    "CompanyName": "sample string 3",
    "Title": "sample string 4",
    "MessageBody": "sample string 5",
    "ThumbImg": "sample string 6",
    "LinkURL": "sample string 7"
  },
  {
    "MessageID": 1,
    "SentDate": "2019-11-14T02:08:03.8271276+00:00",
    "CompanyName": "sample string 3",
    "Title": "sample string 4",
    "MessageBody": "sample string 5",
    "ThumbImg": "sample string 6",
    "LinkURL": "sample string 7"
  }
]

application/xml, text/xml

Sample:
<ArrayOfMessageInfoModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <MessageInfoModel>
    <CompanyName>sample string 3</CompanyName>
    <LinkURL>sample string 7</LinkURL>
    <MessageBody>sample string 5</MessageBody>
    <MessageID>1</MessageID>
    <SentDate>2019-11-14T02:08:03.8271276+00:00</SentDate>
    <ThumbImg>sample string 6</ThumbImg>
    <Title>sample string 4</Title>
  </MessageInfoModel>
  <MessageInfoModel>
    <CompanyName>sample string 3</CompanyName>
    <LinkURL>sample string 7</LinkURL>
    <MessageBody>sample string 5</MessageBody>
    <MessageID>1</MessageID>
    <SentDate>2019-11-14T02:08:03.8271276+00:00</SentDate>
    <ThumbImg>sample string 6</ThumbImg>
    <Title>sample string 4</Title>
  </MessageInfoModel>
</ArrayOfMessageInfoModel>