Open vicendominguez opened 9 years ago
I using this.
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"conversationId":"#Replace-conversation-id#","message":"#Replace-message#"}' http://localhost:8081/proxy/
Very interesting @thakyuu,
one more question, Where could I get the conversationId field?
Thx
You can console.log the conversationId in the index.coffee when you send hubot a message using the adapter
hubot/scripts/getId.coffee
# Description
# Get conversationId
#
# Commands:
# please id
module.exports = (robot) ->
robot.hear /please id/i, (msg) ->
msg.send "conversationId is #{msg.message.user.options.conversationId}"
yeah... thank you guys!!! good tricks! :+1:
hey guys... thank you for this adapter.
I am trying to make compatible this adapter with the http-post-say core script with no luck.... It seems not to get any user.name valid property and i got this exception:
my testing curl line is:
curl -v http://localhost:8080/hubot/say -d message=testtestest -d room='hubot'
Any idea?