Subscribe
Container: CCPServiceNamespace: System.Data.Objects
Summary
Subscribes to an entityset so you would receive pushnotificationsMethod
The HTTP method for this function import is POSTParameters
| Name | Type | Summary |
|---|---|---|
| deviceId* | Edm.Int32 | Id of your device as known in CCPService |
| entitySetId* | Edm.Int32 | Id of the entity you want to recieve notifications from |
| subscriptionFilter | Edm.String | Not implemented yet |
| entityIds* | Edm.Int32 | When you only want notifications of some objects of this entityset, you can specify its key values here |
| properties* | Edm.String | When you only want notifications on some properties of this entity, you can specify its properties here |
| operations* | Edm.String | The operations you want to subscribe to: Add, Update, Delete |
| alertStringFormat | Edm.String | Formated string you want to display on phone, when recieve notification |
| alertLocale | Edm.String | Locale of the formated string |
| alertSound | Edm.String | The alert sound. |
| filterProviderName | Edm.String | Name of the filter provider. |
Return
Type: Edm.Int32Is collection: false
Summary: SubscriptionId
Example
Request URL: https://ccp.dispatchconnect.nl/CCPService/DataServiceCCP.svc/SubscribeExample body (sent with POST-request):
{
"deviceId" : 1,
"entitySetId" : 1,
"subscriptionFilter" : "subscriptionfilter",
"entityIds" : 1,
"properties" : "properties",
"operations" : "operations",
"alertStringFormat" : "alertstringformat",
"alertLocale" : "alertlocale",
"alertSound" : "alertsound",
"filterProviderName" : "Name"
}