HTTP + JSV
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /jsv/reply/SearchChatArchive HTTP/1.1
Host: api.dev.bnn.us
Content-Type: text/jsv
Content-Length: length
{
Take: 0,
Skip: 0,
SearchText: String,
Rooms:
[
String
],
FilterFields:
[
{
Field: String,
Value: String,
FilterType: String
}
],
SortFields:
[
{
Field: String,
Direction: String
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Data:
[
{
ConversationId: 0,
FromJID: String,
ToJID: String,
SentDate: 0,
Date: String,
Body: String,
FromJIDResource: String,
ToJIDResource: String
}
],
Total: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String
}
]
}
}