Jump to content
hzlzh

[Workflow]Shorten URL (support goo.gl/ bit.ly/ t.cn/ j.mp/ is.gd/ v.gd/)

Recommended Posts

On 8/24/2016 at 6:54 PM, jenz said:

Perhaps someone has already pointed this out, but in case not...

The way I got the Google shorter to start working again, was to generate my own API key (you'll need to do that in your Google Developer account — set one up if you need to) and add it to the scripting in this Workflow, as follows:

 

Change this:


0 : {'api_url':'https://www.googleapis.com/urlshortener/v1/url','title':'goo.gl','des':'http://goo.gl/'},

to this:


0 : {'api_url':'https://www.googleapis.com/urlshortener/v1/url?key=YOUR-API-KEY','title':'goo.gl','des':'http://goo.gl/'},

It now works just fine.  ;)

 

I also added my own API key to the bit.y and j.mp shorteners. Apparently the API used (by the kind developer of this workflow) was reaching its limit. Now those two services also work again.

Thanks by way! This worked perfectly for me as well!

Share this post


Link to post

It should also be noted that bitly.com is moving towards Oauth - so you can use this url for api_url instead:

 

https://api-ssl.bitly.com/v3/shorten?format=json&access_token=ACCESS_TOKEN&longUrl=

 

or this one for j.mp:

 

https://api-ssl.bitly.com/v3/shorten?format=json&access_token=ACCESS_TOKEN&domain=j.mp&longUrl=

 

Where "ACCESS_TOKEN" is an access token generated here: https://bitly.com/a/oauth_apps

Share this post


Link to post

I have installed the "shorten" workflow which fails to shorten links by using "goo.nl" (screenshot attached).

It says the link is being copied to clipboard but it's blank.

 

Do you know what the problem might be?

Screen Shot 2016-12-29 at 22.19.38.png

Share this post


Link to post
On 12/29/2016 at 4:21 PM, Giuseppe A said:

I have installed the "shorten" workflow which fails to shorten links by using "goo.nl" (screenshot attached).

It says the link is being copied to clipboard but it's blank.

 

Do you know what the problem might be?

Screen Shot 2016-12-29 at 22.19.38.png

 

I agree with you man, cant seem to get google work.

Share this post


Link to post

It appears the author has forgotten to include his API key for the Google url shortener. I've created a patch for the author. Hopefully he'll accept my patch and release it on the official channel.

 

For those who want the patch now, here's the link.

 

Please note: This release contains the MIT License that is passed on from the Author and covers all legal matter regarding warranty and any loss or damage. By using this release, you agree to these terms.

Edited by iNinja

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...