Hi Julian,

Here's what I'm trying to do and the current problem.  I want to use
the provisional apis and tried one of them.  I made most of the
changes you recommended.  Here's part od the code where I deviated but
got an error "BadAuthentication".  See anything I did wrong? The error
occurs in getHttpClient.

require_once "ProxyWithCurl.php";
require_once "Loader.php";
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_Gapps');

$email = "[EMAIL PROTECTED]";
$password = "private";
$domain = "mydomain.com";

 $service = Zend_Gdata_Gapps::AUTH_SERVICE_NAME;

$config = array(
                'adapter'    =>
'Zend_Http_Client_Adapter_ProxyWithCurl',
                'proxy_host' => 'proxy.shr.secureserver.net',
                'proxy_port' => 3128
               );
// Instantiate a client object
$clientp = new Zend_Http_Client();
$clientp->setConfig($config);

$client = Zend_Gdata_ClientLogin::getHttpClient($email, $password,
$service,$clientp);
$service = new Zend_Gdata_Gapps($client, $domain);

$service->retrieveAllUsers();

Thanks,

Larry

On Jun 27, 4:28 am, "Julian (Google)" <[EMAIL PROTECTED]> wrote:
> Hi Larry,
>
> The Gdata PHP library is developed by the Zend Framework.
>
> You can file a feature request in their Issue Tracker and share your
> thoughts with the communityhttp://framework.zend.com/community/resources
>
> Cheers,
> Julian.
>
> On Jun 26, 3:31 am,techlover<[EMAIL PROTECTED]> wrote:
>
> > Thanks Julian.  Slowly I'm beginning to see the issue.  While I
> > consider myself to be very computer literate and even a geek, this is
> > not an area for which I am competent.  My comment to one of the Google
> > folks fell on deaf ears when I mentioned that Google's APIs should be
> > made to work with one of their two partners - GoDaddy.
>
> > Larry
>
> > On Jun 25, 3:15 am, "Julian (Google)" <[EMAIL PROTECTED]> wrote:
>
> > > Hi Larry,
>
> > > You don't need to purchase a SSL certificate, the library will use the
> > > one at Google's server for the connection.
>
> > > The timeout is the common issue with GoDaddy, they require HTTPS
> > > through proxy servers that handle connections via tunneling. The Zend
> > > Library supports a proxy, but it does not support the connection via
> > > tunneling.
>
> > > I haven't used Ryan's workaround, but at the moment I think that is
> > > the only way to use the library with GoDaddy, another option is to use
> > > Curl and make the requests directly without the Zend Library.
>
> > > GoDaddy has an article about using Curl with their 
> > > proxy:http://help.godaddy.com/article/289
>
> > > Cheers,
> > > Julian
>
> > > On Jun 25, 6:02 am,techlover<[EMAIL PROTECTED]> wrote:
>
> > > > Julian,
>
> > > > I ran into the following error.  Does it mean I need to purchase an
> > > > SSL certificate? I still haven't gotten things to work using your
> > > > suggestions and those of Ryan but this error made me wonder if I'm
> > > > missing a key element.
> > > > Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Unable
> > > > to Connect to ssl://www.google.com:443. Error #110: Connection timed
> > > > out'
>
> > > > Thanks,
>
> > > > Larry
>
> > > > On Jun 16, 9:12 am, "Julian (Google)" <[EMAIL PROTECTED]> wrote:
>
> > > > > Hi Larry,
>
> > > > > You can do the include_path and add the Zend classes like this:
>
> > > > > $path = 'ZendGdata-1.5.2/library';
> > > > > set_include_path(get_include_path() . PATH_SEPARATOR . $path);
>
> > > > > require_once 'Zend/Loader.php';
> > > > > Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
> > > > > Zend_Loader::loadClass('Zend_Gdata_Gapps');
>
> > > > > But I found that GoDaddy needs proxy settings to connect usingSSL, I
> > > > > recommend you to try what Ryan Boyd posted here:
>
> > > > >http://groups.google.org.in/group/google-calendar-help-dataapi/msg/6e...
>
> > > > > This is for Calendar, but you could adapt it to Google Apps with few
> > > > > changes.
>
> > > > > Julian.
>
> > > > > On Jun 16, 1:43 pm, "Julian (Google)" <[EMAIL PROTECTED]> wrote:
>
> > > > > > Hi Larry,
>
> > > > > > Your include path should be like this:
>
> > > > > > include_path=.../ZendGdata-1.5.2/library/
>
> > > > > > With {...} according to your installation, remember to check the 
> > > > > > file
> > > > > > access permissions.
>
> > > > > > Something important about GoDaddy is that some configuration changes
> > > > > > like the php.ini do not take effect immediately,
> > > > > > you may need to wait few hours or run a command line httpd restart 
> > > > > > if
> > > > > > you have that access.
>
> > > > > > Julian
>
> > > > > > On Jun 15, 3:12 am,techlover<[EMAIL PROTECTED]> wrote:
>
> > > > > > > BTW, I'm starting with the Provisional APIs.  Larry
>
> > > > > > > On Jun 14, 7:46 pm,techlover<[EMAIL PROTECTED]> wrote:
>
> > > > > > > > I'm attempting to set up the php libraries for GApps APIs.  I've
> > > > > > > > obtained the files from Zend and put them onto my website 
> > > > > > > > hosted by
> > > > > > > > GoDaddy.  The php.ini file is visible but adding a line of
> > > > > > > > include_path=absolute_path_mywebsite_root may not be doing 
> > > > > > > > anything.
> > > > > > > > Could someone give me an example of setting this?
>
> > > > > > > > When I attempted to run AllTests.php, I received a warning:
> > > > > > > > require_once(PHPUnit/Framework.php) [function.require-once]: 
> > > > > > > > failed to
> > > > > > > > open stream...  I assume this is related to not having the
> > > > > > > > include_path set correctly.
>
> > > > > > > > I found a website article which seems to indicate that changes 
> > > > > > > > are
> > > > > > > > needed in some of the files: HowTo: Use the Zend Framework GData
> > > > > > > > Google Data API on GoDaddy servers located 
> > > > > > > > athttp://www.ehartwell.com/InfoDabble/HowTo:_Use_the_Zend_Framework_GDa...
> > > > > > > > Is this really necessary?
>
> > > > > > > > I've attempted to follow the the FAQ guide for how-to set 
> > > > > > > > things up
> > > > > > > > but you can see where I'm at.  Any answers or pointing me to a 
> > > > > > > > good
> > > > > > > > configuration guide (for GoDaddy) would be greatly appreciated.
>
> > > > > > > > Larry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to