Esempio n. 1
0
        public ResponseWrapper sendMessage(MessagePayload payload)
        {
            Preconditions.checkArgument(payload != null, "message Payload should not be empty");
            String payloadString = this.ToString(payload);

            Preconditions.checkArgument(!string.IsNullOrEmpty(payloadString), "payloadString should not be empty");
            String url = HOST_NAME_SSL;

            url += MESSAGE_PATH;
            ResponseWrapper result = sendPost(url, Authorization(), payloadString);

            return(result);
        }