Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Google/GUrlShortener.cs @ 186:71737419a839
Ticket 143: Test de unidad, y algo de configuración para acortar URL con servicio de Google.
author | juanjose.montesdeocaarbos |
---|---|
date | Tue, 09 Aug 2011 08:43:25 -0300 |
parents | |
children |
line wrap: on
line source
using System; //using GoogleAPI.UrlShortener; namespace AltNetHispano.Agendas.Google { public class GUrlShortener { public string GetShortUrl(string url) { //TODO: Esto es utilizando la GoogleAPI.UrlShortener. //var client = new UrlResource(); //var response = client.Insert(new ShortenRequest { LongUrl = url }); //return response.Id; throw new NotImplementedException(); } } }