Skip to content

Instantly share code, notes, and snippets.

@sclaeys sclaeys/api.php.php
Last active Feb 12, 2019

What would you like to do?
WEBZ.CC URL Shortener API PHP Request
// Using JSON Response
$res= @json_decode(file_get_contents($api_url),TRUE);
echo $res["msg"];
echo $res["short"];
// Using Plain Text Response
$res= @file_get_contents($api_url);
echo $res;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.