Skip to content

Instantly share code, notes, and snippets.

@kenyonj
Created April 30, 2014 04:15
Show Gist options
  • Save kenyonj/11417972 to your computer and use it in GitHub Desktop.
Save kenyonj/11417972 to your computer and use it in GitHub Desktop.
func! Fire(name)
let command = "curl -u 2cee4028ecfc5a0fed2325b150565714961c429e:X -H \'Content-Type: application/json\' -d \'{\"message\":{\"body\":" . a:name . "\"}}\' https://metis7.campfirenow.com/room/584821/speak.json"
call system(command)
" echom "Hello! My name is:"
" echom a:name
endfunc
command! Hello :call Fire("test")
" command! -nargs=1 Fire call s:Fire(<f-args>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment