Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 31, 2019 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/89c73e992481658d23d2046d7b1dad25 to your computer and use it in GitHub Desktop.
Save parzibyte/89c73e992481658d23d2046d7b1dad25 to your computer and use it in GitHub Desktop.
<?php
# Modo de uso
$enlace = "https://parzibyte.me/blog";
try {
$acortado = acortarAdfLy($enlace);
if ($acortado != false) {
echo "El enlace acortado es $acortado";
}
} catch (Exception $e) {
echo "Error acortando: " . $e->getMessage();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment