GetEvents method will get paged result set of a RES user’s subscribed events. You can create more RES users, should you need to subscribe more applications to next4biz RES services.
| Name | Value | |
|---|---|---|
| REST-API METHOD | GetEvents | |
| HTTP METHOD | GET | |
| RESPONSE TYPE | XML | |
| URL | https://api.csm.next4biz.net/api/RES/GetEvents?companyId={CompanyId}&userId={UserId}&pageSize={PageSize}&pageIndex={PageIndex} | |
| REQUEST HEAD | Authorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+json,application/json;q=0.9,*/*;q=0.8 Content-Type: application/json | Authorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Content-Type: application/xml |
<PagedEvents
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schemas.datacontract.org/2004/07/Formalis.MI4Biz.RES.Entity">
<EventCount>464</EventCount>
<Events
xmlns: d2p1="http://schemas.datacontract.org/2004/07/Formalis.MI4Biz.Entity">
<d2p1: EventTrigger>
<d2p1: CompanyId>23</d2p1: CompanyId>
<d2p1: DataJson>{
"$id": "1",
"CustomerUser": {
"$id": "2",
"Email": "",
"Name": "Ali",
"Surname": "Veli",
"Unit": {
"$id": "3",
"UnitID": 2,
"UnitName": "Müşteri Birimi",
"UnitPath": ""
},
"UserID": 333,
"UserName": ""
},
"Attachments": [
],
"Category": {
"$id": "4",
"BusinessChannel": {
"$id": "5",
"BusinessChannelID": 34
},
"CategoryDescription": "",
"CategoryID": 14602,
"CategoryIDPath": "14599",
"CategoryName": "Test Cartegory",
"CategoryPath": "Category",
"IsDescriptionRequired": true
},
"Company": {
"$id": "6",
"CompanyID": 23,
"CompanyName": "testcompany",
"HostingScheme": "HTTP"
},
"ContactMethod": {
"$id": "7",
"ContactMethodID": 3828,
"ContactMethodName": "Facebook"
},
"CreationDate": "2015-09-03T14:17:50.103",
"Customer": {
"$id": "8",
"CustomerBankCode": "234234",
"CustomerID": 339102,
"CustomerName": "Ali",
"CustomerSurname": "Veli",
"Email": ""
},
"CustomerDescription": "Test desc",
"CustomerFieldValues": [
{
"$id": "9",
"CustomerFieldID": 4196,
"CustomerFieldValueID": -1,
"CustomerFieldValueText": "234234"
},
{
"$id": "10",
"CustomerFieldID": 4197,
"CustomerFieldValueID": -1,
"CustomerFieldValueText": "Ali"
},
{
"$id": "11",
"CustomerFieldID": 4198,
"CustomerFieldValueID": -1,
"CustomerFieldValueText": "Veli"
}
],
"CustomerResponseType": {
"$id": "12",
"CustomerResponseTypeID": 2361
},
"CustomFields": [
{
"$id": "13",
"CustomFieldID": 7870,
"CustomFieldName": "SommoniID",
"CustomFieldType": "Label",
"CustomFieldValue": [
{
"$id": "14",
"Value": "8831"
}
],
"CustomFieldValues": [
],
"FieldCode": "SommoniID",
"RuleConfigurations": {
"$id": "15"
}
}
],
"CustomFieldValues": [
],
"IssueDate": "2015-09-03T11:18:00",
"IssueID": 634364,
"IssueLifecycle": {
"$id": "16",
"ActionEndDate": "2015-09-03T14:20:39.27",
"ActionStartDate": "2015-09-03T14:20:39.27",
"IssueLifecycleId": 3969716,
"ResolutionStatus": {
"$id": "17",
"ResolutionStatusID": 4
},
"User": {
"$id": "18",
"Email": "",
"Unit": {
"$id": "19",
"UnitID": 13677
},
"UserID": 264296,
"UserName": ""
},
"WorkflowType": 2
},
"IssueOwner": {
"$id": "20",
"Email": "",
"UserName": ""
},
"IssuePriority": {
"$id": "21",
"IssuePriorityID": 2239,
"IssuePriorityName": "Normal"
},
"Issuer": {
"$id": "22",
"Email": "[email protected]",
"Name": "Admin",
"PhoneNumber2": "",
"Surname": "Admin",
"Unit": {
"$id": "23",
"UnitID": 13677,
"UnitName": "Test Unit"
},
"UserID": 264296,
"UserName": "[email protected]"
},
"IssuerDescription": "Test",
"IssueReason": {
"$id": "24",
"IssueReasonID": 2875,
"IssueReasonName": "Yeni Talep"
},
"IssueType": {
"$id": "25",
"IssueTypeID": 1439,
"IssueTypeName": "Şikayet"
},
"LangID": 1,
"LangUICultureID": 1,
"LastLifeCycleStartDate": "2015-09-03T11:20:39.27",
"LastLifeCycleUser": {
"$id": "26",
"Email": "",
"Name": "Admin",
"Surname": "Admin",
"Unit": {
"$id": "27",
"UnitID": 13677,
"UnitName": "Test Unit"
},
"UserID": 264296,
"UserName": ""
},
"Links": [
"http://test.sommoni.com/Socialmedia/Inbox.aspx?inboxId=268"
],
"PreferredReturnMethods": [
{
"$id": "28",
"ContactMethodID": 3823,
"ContactMethodName": "Email",
"Type": 1
}
],
"PrefferedReturnTimeDescription": "0:00",
"RelatedInventory": [
{
"$id": "29",
"InventoryId": 23412,
"InventoryType": {
"$id": "30",
"InventoryTypeId": 146,
"IsMandatory": true
},
"InventoryTypeId": 146
}
],
"ResolutionDate": "2015-09-03T14:20:39.02",
"ResolutionDescription": "Test",
"ResolutionStatus": {
"$id": "31",
"ResolutionStatusID": 7,
"ResolutionStatusName": "Kapatildi"
},
"ResolutionType": {
"$id": "32",
"ResolutionTypeID": 1,
"ResolutiontypeName": "Evet"
},
"TimeToEscalation": "0 d",
"TimeToResolution": "0 d",
"TotalDuration": "2 d",
"InventoryFieldDynamicValues": [
{
"$id": "33",
"InventoryFieldDynamicValueID": 23423,
"InventoryFieldID": 836,
"InventoryIssueID": 237037,
"DynamicValue": "",
"IssueID": 634364,
"InventoryID": 23412
}
]
}</d2p1: DataJson>
<d2p1: EntityId>633290</d2p1: EntityId>
<d2p1: EventTriggerId>252697</d2p1: EventTriggerId>
<d2p1: EventType>Resolution</d2p1: EventType>
<d2p1: IsNew>false</d2p1: IsNew>
<d2p1: TriggerDate>2015-09-03T12: 37: 05.823</d2p1: TriggerDate>
</d2p1: EventTrigger>
</Events>
<PageCount>1</PageCount>
<PageIndex>0</PageIndex>
<PageSize>1</PageSize>
</PagedEvents>
false