POST api/v2/Version2.SendPushNotification

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

PNMessage
NameDescriptionTypeAdditional information
Id

string

None.

DeviceToken

string

None.

Title

string

None.

MessageText

string

None.

DataMessage

string

None.

MethodName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "DeviceToken": "sample string 2",
  "Title": "sample string 3",
  "MessageText": "sample string 4",
  "DataMessage": "sample string 5",
  "MethodName": "sample string 6"
}

application/xml, text/xml

Sample:
<MCObjects.PNMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MC.Entity.v2">
  <DataMessage>sample string 5</DataMessage>
  <DeviceToken>sample string 2</DeviceToken>
  <Id>sample string 1</Id>
  <MessageText>sample string 4</MessageText>
  <MethodName>sample string 6</MethodName>
  <Title>sample string 3</Title>
</MCObjects.PNMessage>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PNMessage'.

Response Information

Resource Description

Collection of PNResult
NameDescriptionTypeAdditional information
Id

string

None.

Response

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": "sample string 1",
    "Response": "sample string 2"
  },
  {
    "Id": "sample string 1",
    "Response": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfMCObjects.PNResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MC.Entity.v2">
  <MCObjects.PNResult>
    <Id>sample string 1</Id>
    <Response>sample string 2</Response>
  </MCObjects.PNResult>
  <MCObjects.PNResult>
    <Id>sample string 1</Id>
    <Response>sample string 2</Response>
  </MCObjects.PNResult>
</ArrayOfMCObjects.PNResult>