| All Verbs | /report/emailevents/{PublicAccessGuid} |
|---|
<?php namespace dtos;
use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};
class GetEmailEventsView implements JsonSerializable
{
public function __construct(
// @Required()
/** @var string */
public string $PublicAccessGuid=''
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['PublicAccessGuid'])) $this->PublicAccessGuid = $o['PublicAccessGuid'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->PublicAccessGuid)) $o['PublicAccessGuid'] = $this->PublicAccessGuid;
return empty($o) ? new class(){} : $o;
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /report/emailevents/{PublicAccessGuid} HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetEmailEventsView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/digitaluapi.ServiceModel">
<PublicAccessGuid>00000000-0000-0000-0000-000000000000</PublicAccessGuid>
</GetEmailEventsView>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ArrayOfReportsEmailEventsView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/digitaluapi.ServiceModel.Types">
<ReportsEmailEventsView>
<Address>String</Address>
<Age>0</Age>
<BirthDate>0001-01-01T00:00:00</BirthDate>
<CampaignInstanceCommsId>0</CampaignInstanceCommsId>
<CampaignPublicAccessGuid>00000000-0000-0000-0000-000000000000</CampaignPublicAccessGuid>
<CampaignsId>0</CampaignsId>
<Category>String</Category>
<City>String</City>
<Classifications xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</Classifications>
<ContactNumber>String</ContactNumber>
<Country>String</Country>
<CustomersUniqueIdentifier>String</CustomersUniqueIdentifier>
<Email>String</Email>
<EthnicGroup>String</EthnicGroup>
<Event>String</Event>
<FirstName>String</FirstName>
<Gender>String</Gender>
<HomeLanguage>String</HomeLanguage>
<Id>0</Id>
<IdNumber>String</IdNumber>
<Ipaddress>String</Ipaddress>
<LastName>String</LastName>
<PassportNumber>String</PassportNumber>
<PostalCode>String</PostalCode>
<Reason>String</Reason>
<Region>String</Region>
<SegmentsId>0</SegmentsId>
<SegmentsIsCustom>false</SegmentsIsCustom>
<SegmentsName>String</SegmentsName>
<SgEventId>String</SgEventId>
<SgMessageId>String</SgMessageId>
<StatusCodesDescription>String</StatusCodesDescription>
<StatusCodesId>0</StatusCodesId>
<Suburb>String</Suburb>
<TenantsId>0</TenantsId>
<TimestampDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
<d3p1:DateTime>0001-01-01T00:00:00Z</d3p1:DateTime>
<d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
</TimestampDate>
<Url>String</Url>
<UserAgent>String</UserAgent>
<VulnerabilityFlag>false</VulnerabilityFlag>
</ReportsEmailEventsView>
</ArrayOfReportsEmailEventsView>