Created
April 30, 2014 04:15
-
-
Save kenyonj/11417972 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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