2011年2月24日星期四

Re: [fw-gdata] Bad request

Catch the exception and look for the body of it (var_dump if necessary) It
should provide more info about the cause of the exception for the body of
the HttpResponse object.

Cheers,
-Ryan


On Thu, Feb 24, 2011 at 2:53 AM, knasboll <tony@perfectfools.com> wrote:

>
> Please advi
> ce...
> This code below returns
>
> [code:protected] => 400
> [message:protected] => Bad Request
>
> Cannot figure out how to do it, xxx is correct in my code :)
>
> $client = Zend_Gdata_ClientLogin::getHttpClient($email, $password,
> Zend_Gdata_Gapps::AUTH_SERVICE_NAME);
> $service = new Zend_Gdata_Gapps($client, $domain);
>
> $get =
> "https://apps-apis.google.com/a/feeds/emailsettings/2.0/xxx.com/xxx/";
>
> $client->setUri($get);
> $client->request('GET');
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Bad-request-tp3322408p3322408.html
> Sent from the Zend gdata mailing list archive at Nabble.com.
>

没有评论: