Created
May 4, 2021 04:02
-
-
Save dealingwith/7e6677630f2a57bde7a3e3bdcd530475 to your computer and use it in GitHub Desktop.
Cuttly URL shortener script for Script Kit
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
let API_KEY = "[YOURS]" | |
let url_to_shorten = await arg('Enter URL') | |
let {data} = await get(`https://cutt.ly/api/api.php?key=${API_KEY}&short=${url_to_shorten}`) | |
copy(data.url.shortLink) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment