URL Shortening Using Google API

Hi there.
This task is to take a long URL and return a short URL

The steps you need to do

  1. Read https://developers.google.com/url-shortener/v1/getting_started
  2. Get an API key from Google (see article)
  3. In Tasker - In your task
    • Set a variable %cGoogleKey to your own Google API key
    • Use a "Perform Task"
      • Task: GshortURL v1
      • %parameter 1: is the LONG URL
      • %return parameter: is the shortened url

Shorten.xml This is the task that receive 1 parameter (Long URL) and return the short url

Enjoy

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License