NGMarmaduke/cisco_spark-ruby

Doesn't work

Closed this issue · 1 comments

c0ri commented

I'm not having much luck with this tool.

I can get a listing of rooms so I know it's connecting properly, but for sending text to a room I get no errors and nothing posted in the room.

def sendspark(txt)
  CiscoSpark.with_token(MY_TOKEN) do
    message = CiscoSpark::Message.new(text: "#{txt}")
    room = CiscoSpark::Room.new(id: 'Y2lz...')
    result = room.send_message(message)
    puts result.inspect
  end
end

MY_TOKEN = 'N2e...'
sendspark("Test")

Any ideas?

c0ri commented

nvm. I resolved this issue.