*/
    $enterPasswordCallback = function ($instruction) {
        echo $instruction . "\n";
        $oneTimePassword = trim(fgets(STDIN));
        return $oneTimePassword;
    };
    $noteURL = 'http://www.github.com/danack/GithubArtaxService';
    $note = "Testing Oauth creation: " . time();
    //This must be unique to create a new Oaut key
    // List of the scopes required. An empty list is used to get a token
    // with no access, just to avoid the 50 reqs/hour limit for unsigned
    // api calls.
    $scopes = [\GithubService\GithubArtaxService\GithubService::SCOPE_PUBLIC_REPO];
    try {
        //Attempt to either create or retrieve an Oauth token
        $authResult = $github->createOrRetrieveAuth($username, $password, $enterPasswordCallback, $scopes, $note, $maxAttempts = 3);
        echo "Token is: " . $authResult->token . ", keep it secret.\n";
        file_put_contents($tokenFileLocation, $authResult->token);
        echo "Token stored in " . $tokenFileLocation . "\n";
    } catch (ArtaxServiceBuilder\BadResponseException $badResponseException) {
        echo "Something went wrong trying to retrieve an oauth token:\n";
        echo $badResponseException->getMessage();
        echo "Body is:\n";
        var_dump($badResponseException->getResponse()->getBody());
        echo "\n";
        exit(-1);
    }
    //$token = $authResult;
    $token = new Oauth2Token($authResult->token);
}
// Okay we have an authorization, lets test it.