GET api/v1/reports/messages/fof

Fetches all the messages that the user has sent a FOF message with a list of all the people who have replied to the message.

Request Information

URI Parameters

None.

Body Parameters

The filter to be applied to the report.

TwoSms.CustomerPortalRole.API.Reports.SMS.FOFFilter
NameDescriptionTypeAdditional information
Groups

The list of groups to compare with inbound messages.

Collection of globally unique identifier

None.

RelativeName

The time frame to search for.

TwoSms.CustomerPortalRole.API.Reports.SMS.FOFDateRange

None.

StartDate

The start date of the search. The format is the following:[YYYY-MM-DDTHH:MM:SSZ]

date

None.

EndDate

The end date of the search. The format is the following:[YYYY-MM-DDTHH:MM:SSZ]

date

None.

SoftwareVersion

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Groups": [
    "1b8f2451-e150-4b55-ad8e-9cc2f8f8bda7",
    "c282706d-bdca-45e8-84ac-9fa5d5e2bcc0"
  ],
  "RelativeName": 0,
  "StartDate": "2018-10-23T02:44:12.2801252+01:00",
  "EndDate": "2018-10-23T02:44:12.2801252+01:00",
  "SoftwareVersion": "sample string 1"
}

application/xml, text/xml

Sample:
<FOFFilter xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Groups>
    <guid>1b8f2451-e150-4b55-ad8e-9cc2f8f8bda7</guid>
    <guid>c282706d-bdca-45e8-84ac-9fa5d5e2bcc0</guid>
  </Groups>
  <RelativeName>TODAY</RelativeName>
  <StartDate>2018-10-23T02:44:12.2801252+01:00</StartDate>
  <EndDate>2018-10-23T02:44:12.2801252+01:00</EndDate>
  <SoftwareVersion>sample string 1</SoftwareVersion>
</FOFFilter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TwoSms.CustomerPortalRole.API.Misc.ResponseOfTwoSms.CustomerPortalRole.API.Reports.SMS.FOFReport
NameDescriptionTypeAdditional information
Error

TwoSms.CustomerPortalRole.API.Misc.Error

None.

ResponseData

TwoSms.CustomerPortalRole.API.Misc.ResponseDataOfTwoSms.CustomerPortalRole.API.Reports.SMS.FOFReport

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": {
    "ErrorCode": "sample string 1",
    "ErrorReason": "sample string 2"
  },
  "ResponseData": {
    "Identification": {
      "UserId": "sample string 1"
    },
    "Result": "sample string 1",
    "Detail": {
      "Header": "sample string 1",
      "Messages": [
        {
          "DateSent": "2018-10-23T02:44:12.2957635+01:00",
          "Groups": [
            {
              "Name": "sample string 1",
              "Responses": [
                {},
                {}
              ]
            },
            {
              "Name": "sample string 1",
              "Responses": [
                {},
                {}
              ]
            }
          ],
          "Message": "sample string 2"
        },
        {
          "DateSent": "2018-10-23T02:44:12.2957635+01:00",
          "Groups": [
            {
              "Name": "sample string 1",
              "Responses": [
                {},
                {}
              ]
            },
            {
              "Name": "sample string 1",
              "Responses": [
                {},
                {}
              ]
            }
          ],
          "Message": "sample string 2"
        }
      ]
    }
  }
}

application/xml, text/xml

Sample:
<ResponseOfFOFReport xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Error>
    <ErrorCode>sample string 1</ErrorCode>
    <ErrorReason>sample string 2</ErrorReason>
  </Error>
  <ResponseData>
    <Result>sample string 1</Result>
    <Identification>
      <UserId>sample string 1</UserId>
    </Identification>
    <Detail>
      <Header>sample string 1</Header>
      <Messages>
        <FOFReportDetail>
          <DateSent>2018-10-23T02:44:12.2957635+01:00</DateSent>
          <Groups>
            <FOFGroupDetail>
              <Name>sample string 1</Name>
              <Responses>
                <FOFReportResponse>
                  <DateReceived>2018-10-23T02:44:12.2957635+01:00</DateReceived>
                  <Name>sample string 1</Name>
                  <Number>sample string 2</Number>
                  <Response>sample string 3</Response>
                </FOFReportResponse>
                <FOFReportResponse>
                  <DateReceived>2018-10-23T02:44:12.2957635+01:00</DateReceived>
                  <Name>sample string 1</Name>
                  <Number>sample string 2</Number>
                  <Response>sample string 3</Response>
                </FOFReportResponse>
              </Responses>
            </FOFGroupDetail>
            <FOFGroupDetail>
              <Name>sample string 1</Name>
              <Responses>
                <FOFReportResponse>
                  <DateReceived>2018-10-23T02:44:12.2957635+01:00</DateReceived>
                  <Name>sample string 1</Name>
                  <Number>sample string 2</Number>
                  <Response>sample string 3</Response>
                </FOFReportResponse>
                <FOFReportResponse>
                  <DateReceived>2018-10-23T02:44:12.2957635+01:00</DateReceived>
                  <Name>sample string 1</Name>
                  <Number>sample string 2</Number>
                  <Response>sample string 3</Response>
                </FOFReportResponse>
              </Responses>
            </FOFGroupDetail>
          </Groups>
          <Message>sample string 2</Message>
        </FOFReportDetail>
        <FOFReportDetail>
          <DateSent>2018-10-23T02:44:12.2957635+01:00</DateSent>
          <Groups>
            <FOFGroupDetail>
              <Name>sample string 1</Name>
              <Responses>
                <FOFReportResponse>
                  <DateReceived>2018-10-23T02:44:12.2957635+01:00</DateReceived>
                  <Name>sample string 1</Name>
                  <Number>sample string 2</Number>
                  <Response>sample string 3</Response>
                </FOFReportResponse>
                <FOFReportResponse>
                  <DateReceived>2018-10-23T02:44:12.2957635+01:00</DateReceived>
                  <Name>sample string 1</Name>
                  <Number>sample string 2</Number>
                  <Response>sample string 3</Response>
                </FOFReportResponse>
              </Responses>
            </FOFGroupDetail>
            <FOFGroupDetail>
              <Name>sample string 1</Name>
              <Responses>
                <FOFReportResponse>
                  <DateReceived>2018-10-23T02:44:12.2957635+01:00</DateReceived>
                  <Name>sample string 1</Name>
                  <Number>sample string 2</Number>
                  <Response>sample string 3</Response>
                </FOFReportResponse>
                <FOFReportResponse>
                  <DateReceived>2018-10-23T02:44:12.2957635+01:00</DateReceived>
                  <Name>sample string 1</Name>
                  <Number>sample string 2</Number>
                  <Response>sample string 3</Response>
                </FOFReportResponse>
              </Responses>
            </FOFGroupDetail>
          </Groups>
          <Message>sample string 2</Message>
        </FOFReportDetail>
      </Messages>
    </Detail>
  </ResponseData>
</ResponseOfFOFReport>