Convert PHP code below to JAVASCRIPT
$long_url = urlencode('yourdestinationlink.com');$api_token = '34233242323';$api_url = "https://google.com/api?api={$api_token}&url={$long_url}";$result = @json_decode(file_get_contents($api_url),TRUE);if($result["status"] === 'error') { echo $result["message"];} else { echo $result["shortenedUrl"];}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here