Skip to content

Instantly share code, notes, and snippets.

@zemlanin
Created August 14, 2014 16:08
Show Gist options
  • Save zemlanin/53e1ec73cad259ddaf8d to your computer and use it in GitHub Desktop.
Save zemlanin/53e1ec73cad259ddaf8d to your computer and use it in GitHub Desktop.
yop.sh
# send yo to your devices via Yo API
# add next line to .bashrc/.zshrc to use this script
# export YO_APP="your justyo.co app token"
# USAGE: yop [link]
__yop(){
local link=$1
local api_url="http://api.justyo.co/yoall/"
command curl -s -F "api_token=$YO_APP" -F "link=$link" $api_url
}
alias yop=__yop
@zemlanin
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment