Open tobiasbischoff opened 8 years ago
To fix it:
1) Visit https://developers.google.com/url-shortener/v1/getting_started
2) Log in, create a project, add the urlshortener API to that project, and get an API key
3) In Terminal, run open ~/Library/Services/google-url-shortener.workflow
. This will launch automator.
4) Edit the top part to look like this: curl -v 'https://www.googleapis.com/urlshortener/v1/url?key=<put your api key here>'
@tobiasbischoff Did https://github.com/roolo/google-url-shortener.workflow/issues/1#issuecomment-371894131 solve the situation, or You would like to see some other solution?
Looks like this is worthless since google doesn't allow unauthenticated shortening anymore
`curl -v https://www.googleapis.com/urlshortener/v1/url -X POST -H 'Content-Type: application/json' -d "{\"longUrl\": \"$1\"}"