Created
August 28, 2016 19:13
-
-
Save policante/c85b319dc964a2d3dea857dd299c87ea to your computer and use it in GitHub Desktop.
Create shorturl via terminal (BIT.LY)
This file contains 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
#!/bin/bash | |
curl -s "http://api.bitly.com/v3/shorten?login=[LOGIN]&apiKey=[API_SECRET]&longUrl=$1&format=txt" | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment