Skip to content

Instantly share code, notes, and snippets.

<?php
require_once 'curl' . DIRECTORY_SEPARATOR . 'curl.php';
$Curl = new Curl();
// This is called once, after we get a code back
if (!empty($_GET['code'])) {
// Make sure there wasn't an error authenticating
if (!empty($_GET['error'])) {