It will check the resulting status code and print a message in case
something goes wrong.
Usage
rabbitmq_send_message(url, auth, body, action = "POST", silent = FALSE)
Arguments
- url
the full endpoint rest url
- auth
authentication for rabbitmq in httr:auth
- body
the actual body to send, this is a rabbitmq message.
- action
the rest action to perform
- silent
boolean to indicate if logging should be performed.
Value
will return NA if message failed, otherwise it will either
return the resulting message, or if not availble an empty string "".