From 964583fb2b6e79ac61f413a5b20f0a2aaf78615f Mon Sep 17 00:00:00 2001 From: Akash Kumar Sharma Date: Fri, 22 May 2015 13:03:06 +0530 Subject: [PATCH] new api update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit is.gd के नवीन अनुप्रयोग क्रमादेशन अंतर्फलक का प्रयोग किया । Upadated with the new API for is.gd --- goisgd.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/goisgd.go b/goisgd.go index 9a04ed6..259a357 100644 --- a/goisgd.go +++ b/goisgd.go @@ -10,7 +10,11 @@ import ( // Shortens the URI using the "API" listed here: http://is.gd/api_info.php func Shorten(uri string) (string, error) { - u := "http://is.gd/api.php?longurl=" + url.QueryEscape(uri) + // नये अनुप्रयोग क्रमादेशन अंतर्फलक का प्रयोग किया । + // @see http://is.gd/apishorteningreference.php + // Used the new API. + // @see http://is.gd/apishorteningreference.php + u := "http://is.gd/create.php?format=simple&url=" + url.QueryEscape(uri) response, err := http.Get(u)