Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/04/2009, 08:23
Avatar de u_goldman
u_goldman
Moderador
 
Fecha de Ingreso: enero-2002
Mensajes: 8.031
Antigüedad: 23 años, 4 meses
Puntos: 98
Respuesta: Acortar URLs con API usando HTTP GET

Voy de salida, así que si nadie te ha contestado al rato trato de hacer un ejemplo, pero básicamente tienes que hacer una llamada xmlhttp por get y obtener el HTML resultante:

Cita:
Receiving the shortened URL

After submitting the URL you would like shortened as specified above, an HTTP response (web page) will be returned. The response header will be "HTTP/1.1 200 OK" if the URL was shortened as expected, or "HTTP/1.1 500 Internal Server Error" if there was any problem that prevented this.

Assuming the request was successful, the body of the response will contain only the new shortened URL, in plain text.
"Si la llamada es exitosa, el body solamente contendrá la nueva URL acortada."

Saludos
__________________
"El hombre que ha empezado a vivir seriamente por dentro, empieza a vivir más sencillamente por fuera."
-- Ernest Hemingway