Example #1
0
        public async Task <MessageSearchResult> SearchMessages(MessageFilter filter)
        {
            var messages = await WebInvoker.Invoke <MessageSearchResult>(string.Format("{0}/search/messages",
                                                                                       this.serviceUrl), "POST", filter, null);

            return(messages);
        }
Example #2
0
        public async Task CreateMessage(Message message, string captchaCode)
        {
            var postData = new PostData <Message> {
                Data = message, CaptchaCode = captchaCode
            };

            await WebInvoker.Invoke <Object>(string.Format("{0}/messages", this.serviceUrl), "POST", postData, null);
        }