GetWEventsOrganization
Draft documentation version
Documentation is partial and not validated !
Return
WEvent filtered by parameters
Route
GET
/Organization/{WOC}/WEvent
Parameters
Parameter |
Required |
Sample |
Description |
Skip |
|
0
|
Number of elements to skip
|
Take |
|
10
|
Number of elements to take
|
AccountID |
|
4
|
OBSOLETE: DO NOT USE
|
After |
|
2014-09-15T13:59:20.0000000Z
|
Occured after
|
Before |
|
2014-09-20T13:59:20.0000000Z
|
DateTime.Now or DateTime.Max to get really "last datas" from API.
NULL as "no limit date, get current elements"
|
Categories |
|
Flux,Reflection
|
Categories WEventCategoryEnum
|
Criticity |
|
High
|
Criticity CriticityEnum
|
GroupKey |
|
FC002
|
Relevant to News: provide GroupKey to get detail of News.
|
Mode |
|
Historical
|
Mode WEventModeEnum
|
Orders |
|
|
Result is ordered by array of WEventsRequestOrder
|
Remarks
- To override Content-type in your clients HTTP Accept Header, append the
.csv
suffix or ?format=csv
- To embed the response in a jsonp callback, append
?callback=myCallback
Post Data sample
Skip=0&Take=10&AccountID=4&After=2014-09-15T13:59:20.0000000Z&Before=2014-09-20T13:59:20.0000000Z&Categories=Flux,Reflection&Criticity=High&GroupKey=FC002&Mode=Historical&Orders=&
cURL command sample
curl -k -H "Authorization: Bearer [YOUR_ACCESS_TOKEN]" -H "Content-Type:application/csv" https://api.wit-datacenter.com/Organization/{WOC}/WEvent?AccountID=4&Mode=Historical&Before=2014-09-20T13%3a59%3a20.0000000Z&After=2014-09-15T13%3a59%3a20.0000000Z&Criticity=High&GroupKey=FC002&Categories=Flux%2cReflection&Take=10&Skip=0&Orders=
Returned Entity
WEventsContainer
CSV Sample
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
NameShort,DateOccur,DateOpposite,IsViewed,IsInProgress,Operation,Criticity,Type,WEventType,Category,RelatedEntities,GroupKey,GroupCount,ID,Picture,Name
String,0001-01-01,0001-01-01,False,False,0,VeryHigh,OneShot,Organization_NotValidated,None,"[{wType:WEventItem,key:Role,entityRole:0}]",String,0,0,00000000000000000000000000000000,String