example usage of send message API.