roolo / google-url-shortener.workflow

Service for shortening urls via Automator Workflow/Mac OS X Services
1 stars 0 forks source link

Daily Limit for Unauthenticated Use Exceeded. #1

Open tobiasbischoff opened 8 years ago

tobiasbischoff commented 8 years ago

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\"}"

coppit commented 6 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>'

roolo commented 6 years ago

@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?