Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I'm trying to use Tasker to shorten URLs. Previously, I don't think this was possible, but v1.3 added support for https.

I've tried following the instructions here: https://developers.google.com/url-shortener/v1/getting_started#shorten and I did get an HTTP 400 code, but the %HTTPD variable returned %HTTPD.

The things I used in Tasker were:

Server:Port    https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyA8FwOcH-qW6ACR27H_wlrNKcv2OUl_Z8c
Data / File    "longUrl":"http://www.google.com/"
Content Type   application/json

Text           %HTTPR

Text           %HTTPD
share|improve this question
Mind if I ask why would you need to do this? –  Richard Borcsik Aug 26 '12 at 8:43
I have a little task which copies your location and a maps link to the clipboard for emailing or for SMS. I got that to work, now I'm trying to add a link-shortening option so I can send them to people who don't have internet on their phone. Also, just for the challenge. –  sebastian-c Aug 26 '12 at 9:24
How do you suppose to get access token using Tasker? –  S S Aug 26 '12 at 19:15
I should only need the API key, given that I'm not requesting private data. I've added the API key to my request, with the same results. –  sebastian-c Aug 27 '12 at 1:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.