BNN Api

<back to all web services

SearchChatArchive

Search Chat Archive

The following routes are available for this service:
POST, GET/SearchChatArchive

To override the Content-type in your clients HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/SearchChatArchive HTTP/1.1 
Host: api.dev.bnn.us 
Content-Type: text/csv
Content-Length: length

Take,Skip,SearchText,Rooms,FilterFields,SortFields
0,0,String,[String],"[{Field:String,Value:String,FilterType:String}]","[{Field:String,Direction:String}]"

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

Data,Total,ResponseStatus
"[{ConversationId:0,FromJID:String,ToJID:String,SentDate:0,Date:String,Body:String,FromJIDResource:String,ToJIDResource:String}]",0,"{ErrorCode:String,Message:String,StackTrace:String,Errors:[{ErrorCode:String,FieldName:String,Message:String}]}"