I want the web service in json OR in xml which gives the shorten url in response.
I have to implement the web service in iPhone application.
Let me know of any web services which do the following:
If I give as the request
Then it will return http://goo.gl/fbsS in response.
I found this: https://www.googleapis.com/urlshortener/v1/url?shortUrl=http://goo.gl/fbsS
But this is actually the reverse of what I want, in that I have to pass the shortened url and it gives the long url in response
Like this:-
{
"kind": "urlshortener#url",
"id": "http://goo.gl/fbsS",
"longUrl": "http://www.google.com/",
"status": "OK"
}