Created
February 28, 2011 21:25
-
-
Save kinlane/848071 to your computer and use it in GitHub Desktop.
Google Client Login for Google Cloud Print XMPP Print Job Service Using Zend
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
include 'XMPPHP/XMPP.php'; | |
require_once 'Zend/Loader.php'; | |
Zend_Loader::loadClass('Zend_Http_Client'); | |
Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); | |
// Path to Printer Capabilities in PPD Format | |
$Printer_Proxy = "[Your Print Proxy ID]"; | |
// Gmail User Email | |
$G_Email = "[Gmail Email]"; | |
// Gmail User Password | |
$G_Pass = "[Gmail Password]"; | |
//Actually Register the Printer | |
$client = Zend_Gdata_ClientLogin::getHttpClient($G_Email, $G_Pass, 'chromiumsync'); | |
// Get Token and Add Headers | |
$Client_Login_Token = $client->getClientLoginToken(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment