A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ryanmcgrath/twython/issues/184 below:

shortenURL not working · Issue #184 · ryanmcgrath/twython · GitHub

Hi,

shortenURL() is not working for me and return this message instead of the shorl URL:

This script is for compatibility with applications using is.gd's legacy API. It only works with requests in the old format (e.g. http://is.gd/api.php?longurl=example.com) which your request did not match. If you're having any problems with this or developing a new app please use the latest API instead, see http://is.gd/developers.php for full documentation.

Using the link given, i tried:
request = requests.get("http://is.gd/create.php", params = { 'format': 'simple', 'url': "www.google.com"})

instead of:
request = requests.get("http://is.gd/api.php", params = { 'query': "www.google.com"})

And it seems to be working as intended.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4