Création de liens courts avec l’API Google
J’avais besoin d’un lien raccourci, alors je l’ai créé en PHP. Vous pouvez l’utiliser après avoir enregistré l’API Google. Utilisation : shorturl_google(‘URL d’origine’, ‘clé API’); <?php function shorturl_google($url, $key) { $post = array(‘longUrl’ => $url); $json = json_encode($post); $curlObj =…

