goo.gl usage

75 views
Skip to first unread message

david morin

unread,
Feb 28, 2012, 8:12:17 PM2/28/12
to Tasker
anyone know how i could go about using goo.gl to shorten links with
tasker?

BossMan

unread,
Feb 29, 2012, 4:08:25 AM2/29/12
to tas...@googlegroups.com
You won't be able to do it directly in Tasker, though you might try doing this from an external script.
API is here:

BR,
A.

david morin

unread,
Feb 29, 2012, 7:39:28 AM2/29/12
to Tasker
Just an FYI for anyone looking to do this

1: I set up a PHP script on my server that uses the google api
2: This is the php script: http://pastebin.com/s4wFD5Wu
3: Then in Tasker i setup a Get URL task like here:
bbpinpal.com/url.php?longUrl=maps.google.com/maps?q=
%LOCATION&sensor=false&shorten=shorten
4: Then Variable Set
Name: %SHORT
To: %HTTPD
Variable Split:
Name: %SHORT
Splitter: <td>
Variable Split
Name: %SHORT2
Variable: </td>
5: Then in SHORT21 will be your short URL

I also got this to work with a popup input box for inputting your own
URL or whatever.

Hope this helps someone
Reply all
Reply to author
Forward
0 new messages