Created
February 6, 2011 23:58
-
-
Save mimeoconnect/813841 to your computer and use it in GitHub Desktop.
Uses the Zend library to authenticate with Google Cloud Print Services Interface with the Client Login API.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'Zend/Loader.php'; | |
Zend_Loader::loadClass('Zend_Http_Client'); | |
Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); | |
// Gmail User Email | |
$G_Email = ""; | |
// Gmail User Password | |
$G_Pass = ""; | |
//Actually Register the Printer | |
$client = Zend_Gdata_ClientLogin::getHttpClient($G_Email, $G_Pass, 'cloudprint'); | |
// Get the Token | |
$Client_Login_Token = $client->getClientLoginToken(); | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment