public Boolean send(MessageTemplate template) throws UnirestException
    {
        String url = this.remote_url + this.configs.get("page_access_token", "");
        String body = template.build();
        Logger.info("curl -X POST -H \"Content-Type: application/json\" -d '" + body + "' \"" + url + "\"");
        HttpResponse<String> response = Unirest.post(url).header("Content-Type", "application/json").body(body).asString();

        return true;
    }
public Boolean send ( MessageTemplate template ) throws UnirestException { String url = this . remote_url + this . configs . get ( "page_access_token" , "" ) ; String body = template . build ( ) ; Logger . info ( "curl -X POST -H \"Content-Type: application/json\" -d '" + body + "' \"" + url + "\"" ) ; HttpResponse < String > response = Unirest . post ( url ) . header ( "Content-Type" , "application/json" ) . body ( body ) . asString ( ) ; return true ; }
Send Default Message

@param  template an instance of message template
@return Boolean whether the message sent or not
@throws UnirestException Throws exception in case it fails to perform the request