POST api/v1/VisualReports/Notification/SendPushNotification
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
version | string |
None. |
Body Parameters
PushNotificationMessageName | Description | Type | Additional information |
---|---|---|---|
AppCode | string |
Required Matching regular expression pattern: ^[a-zA-Z]{1}[0-9a-zA-Z_]*$ |
|
TenantSlugName | string |
Required Matching regular expression pattern: ^[a-zA-Z]{1}[0-9a-zA-Z_]*$ |
|
Platform | MobilePlatform |
Required |
|
Message | MessagePayload |
Required |
|
TagExpression | string |
None. |
|
SCNotification | Collection of NotifyShotClass |
None. |
|
SerializeData | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "AppCode": "sample string 1", "TenantSlugName": "sample string 2", "Platform": 0, "Message": { "Title": "sample string 1", "ShortMessage": "sample string 2", "InnerData": "sample string 3", "Sound": "sample string 4", "CountOfNotification": 5 }, "TagExpression": "sample string 3", "SCNotification": [ { "ID": 1, "Name": "sample string 2", "ImageUrl": "sample string 3", "KeyLearning": "sample string 4", "ShotClassTypeId": 5, "MediaType": 6 }, { "ID": 1, "Name": "sample string 2", "ImageUrl": "sample string 3", "KeyLearning": "sample string 4", "ShotClassTypeId": 5, "MediaType": 6 } ], "SerializeData": "sample string 4" }
text/html
Sample:
{"AppCode":"sample string 1","TenantSlugName":"sample string 2","Platform":0,"Message":{"Title":"sample string 1","ShortMessage":"sample string 2","InnerData":"sample string 3","Sound":"sample string 4","CountOfNotification":5},"TagExpression":"sample string 3","SCNotification":[{"ID":1,"Name":"sample string 2","ImageUrl":"sample string 3","KeyLearning":"sample string 4","ShotClassTypeId":5,"MediaType":6},{"ID":1,"Name":"sample string 2","ImageUrl":"sample string 3","KeyLearning":"sample string 4","ShotClassTypeId":5,"MediaType":6}],"SerializeData":"sample string 4"}
text/xml
Sample:
<PushNotificationMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindtree.MiSaaS.IPushNotification.Entities"> <AppCode>sample string 1</AppCode> <Message> <CountOfNotification>5</CountOfNotification> <InnerData>sample string 3</InnerData> <ShortMessage>sample string 2</ShortMessage> <Sound>sample string 4</Sound> <Title>sample string 1</Title> </Message> <Platform>GCM</Platform> <SCNotification> <NotifyShotClass> <ID>1</ID> <ImageUrl>sample string 3</ImageUrl> <KeyLearning>sample string 4</KeyLearning> <MediaType>6</MediaType> <Name>sample string 2</Name> <ShotClassTypeId>5</ShotClassTypeId> </NotifyShotClass> <NotifyShotClass> <ID>1</ID> <ImageUrl>sample string 3</ImageUrl> <KeyLearning>sample string 4</KeyLearning> <MediaType>6</MediaType> <Name>sample string 2</Name> <ShotClassTypeId>5</ShotClassTypeId> </NotifyShotClass> </SCNotification> <SerializeData>sample string 4</SerializeData> <TagExpression>sample string 3</TagExpression> <TenantSlugName>sample string 2</TenantSlugName> </PushNotificationMessage>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |