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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/SearchChatArchive HTTP/1.1 
Host: api.dev.bnn.us 
Content-Type: application/json
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: application/json
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"}]}}