GET api/sms/sent/recipient/{recipient}/{initialDate}/{finalDate}

Returns messages sent addressed to a given recipient and between a date interval.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
recipient

Email address of the recipient.

string

Required

initialDate

Initial date.

date

Required

finalDate

Final date.

date

Required

Body Parameters

None.

Response Information

Resource Description

List of messages.

Collection of Message
NameDescriptionTypeAdditional information
Id

Message identifier.

integer

None.

IdParent

Parent message identifier.

integer

None.

IdUser

User identifier of the sender of the message.

integer

None.

IdUserRecipient

User identifier of the recipient of the message.

integer

None.

Recipient

Phone number of the recipient of the message.

string

None.

SentDate

Date and time the message was sent.

date

None.

IdSmsType

Type of message.

SmsCertificationType

None.

CertificatePN

Code of the sending request certificate.

string

None.

CertificateOperator

Code of the delivery certificate.

string

None.

SendingStatus

State of the message.

SmsStateId

None.

Text

Content of the message.

string

None.

IP

IP address from where the message was sent.

string

None.

SmsSenderId

SMS sender identifier used to send the message.

string

None.

Rsn

Error code.

integer

None.

IdTalk

Communication identifier.

integer

None.

ChildMessages

Child messages.

Collection of Message

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "Id": 1,
    "IdParent": 1,
    "IdUser": 2,
    "IdUserRecipient": 1,
    "Recipient": "sample string 3",
    "SentDate": "2021-12-03T11:31:36.8557051+01:00",
    "IdSmsType": "None",
    "CertificatePN": "sample string 5",
    "CertificateOperator": "sample string 6",
    "SendingStatus": "Failed",
    "Text": "sample string 7",
    "IP": "sample string 8",
    "SmsSenderId": "sample string 9",
    "Rsn": 1,
    "IdTalk": 1,
    "ChildMessages": [
      {
        "$ref": "1"
      },
      {
        "$ref": "1"
      }
    ]
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PuntoNeutro.WebApi.Models">
  <Message z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
    <CertificateOperator>sample string 6</CertificateOperator>
    <CertificatePN>sample string 5</CertificatePN>
    <ChildMessages>
      <Message z:Ref="i1" />
      <Message z:Ref="i1" />
    </ChildMessages>
    <IP>sample string 8</IP>
    <Id>1</Id>
    <IdParent>1</IdParent>
    <IdSmsType>None</IdSmsType>
    <IdTalk>1</IdTalk>
    <IdUser>2</IdUser>
    <IdUserRecipient>1</IdUserRecipient>
    <Recipient>sample string 3</Recipient>
    <Rsn>1</Rsn>
    <SendingStatus>Failed</SendingStatus>
    <SentDate>2021-12-03T11:31:36.8557051+01:00</SentDate>
    <SmsSenderId>sample string 9</SmsSenderId>
    <Text>sample string 7</Text>
  </Message>
  <Message z:Ref="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
</ArrayOfMessage>