Hi - Please excuse breaking this out into a separate post from http://groups.google.com/group/fusion-tables-users-group/browse_threa..., but I'm quite stuck with this. I'm trying to get Oauth working with the Zend libraries and fusion tables. Using the PHP examples at http://code.google.com/apis/gdata/docs/auth/oauth.html, I have successfully used Oauth for authentication to extract a Google Docs feed - a complete working example is at http://pastebin.com/g2pVer3q - you should only need to set your consumer key/secret to get this to work. I've modified the Google Docs example to do a basic "show tables" - the modified example is at http://pastebin.com/afHs0DYP . This is identical to the Google Docs example above, except for the setting of the scope, and the gdata call:
The bit that really gets me about this, is that the authentication appears to happen correctly - just the same as for the Google Docs example - but the actual Gdata call returns a 404. What I find even more puzzling is that if I swap the authentication mechanism for ClientLogin, then the call works.
Error as follows: ( ! ) Zend_Gdata_App_HttpException: Expected response code 200, got 404 Not Found Error 404 in /home/piers/code/Zend/Gdata/App.php on line 700
Hi, Please note that you need to catch the exceptions for it to work. IMHO i think it would be try { $httpClient = $accessToken->getHttpClient($oauthOptions); $gdata = new Zend_Gdata_Gbase($httpClient, 'fusiontables'); }catch Exception e { echo(e); } ps i also noticed that you have @accessToken is it initiated? or how is it declared?
On 26 May 2010 07:10, pxh <piers.hard...@gmail.com> wrote:
> Hi - > Please excuse breaking this out into a separate post from
> http://groups.google.com/group/fusion-tables-users-group/browse_threa... > , > but I'm quite stuck with this. I'm trying to get Oauth working with > the Zend libraries and fusion tables. > Using the PHP examples at > http://code.google.com/apis/gdata/docs/auth/oauth.html, > I have successfully used Oauth for authentication to extract a Google > Docs feed - a complete working example is at http://pastebin.com/g2pVer3q > - you should only need to set your consumer key/secret to get this to > work. > I've modified the Google Docs example to do a basic "show tables" - > the modified example is at http://pastebin.com/afHs0DYP . This is > identical to the Google Docs example above, except for the setting of > the scope, and the gdata call:
> The bit that really gets me about this, is that the authentication > appears to happen correctly - just the same as for the Google Docs > example - but the actual Gdata call returns a 404. What I find even > more puzzling is that if I swap the authentication mechanism for > ClientLogin, then the call works.
> Error as follows: > ( ! ) Zend_Gdata_App_HttpException: Expected response code 200, got > 404 > Not Found > Error 404 > in /home/piers/code/Zend/Gdata/App.php on line 700
> Any help with this will be gratefully received.
> Thanks, > Piers Harding.
> -- > You received this message because you are subscribed to the Google Groups > "Fusion Tables Users Group" group. > To post to this group, send email to > fusion-tables-users-group@googlegroups.com. > To unsubscribe from this group, send email to > fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/fusion-tables-users-group?hl=en.
I've traced the call with wireshark, and it looks as if everything is there: GET /api/query?sql=SHOW+TABLES HTTP/1.1 Host: tables.googlelabs.com Connection: close User-Agent: MyCompany-MyApp-1.0 Zend_Framework_Gdata/1.10.4 Accept-encoding: identity Authorization: OAuth realm="",oauth_consumer_key="my-consumer-key",oauth_nonce="xxxxxxxxxxxxx",o auth_signature_method="HMAC-SHA1",oauth_timestamp="xxxxxxxxxxxx",oauth_vers ion="1.0",oauth_token="xxxxxxxxxxxxx",oauth_signature="xxxxxxxxxxxxxxxxxxxx xxx"
I know that the Java implementation example at http://code.google.com/p/fusion-tables-api/ works, but I can't figure out what would be different between the two Oauth implementations.
Cheers, Piers Harding.
On 27 May 2010 07:01, jude mwenda <judemwe...@gmail.com> wrote:
> Hi, > Please note that you need to catch the exceptions for it to work. IMHO i > think it would be > try > { > $httpClient = > $accessToken->getHttpClient($oauthOptions); > $gdata = new Zend_Gdata_Gbase($httpClient, > 'fusiontables'); > }catch Exception e > { > echo(e); > } > ps i also noticed that you have @accessToken is it initiated? or how is it > declared?
> On 26 May 2010 07:10, pxh <piers.hard...@gmail.com> wrote:
>> Hi - >> Please excuse breaking this out into a separate post from
>> http://groups.google.com/group/fusion-tables-users-group/browse_threa... >> , >> but I'm quite stuck with this. I'm trying to get Oauth working with >> the Zend libraries and fusion tables. >> Using the PHP examples at >> http://code.google.com/apis/gdata/docs/auth/oauth.html, >> I have successfully used Oauth for authentication to extract a Google >> Docs feed - a complete working example is at http://pastebin.com/g2pVer3q >> - you should only need to set your consumer key/secret to get this to >> work. >> I've modified the Google Docs example to do a basic "show tables" - >> the modified example is at http://pastebin.com/afHs0DYP . This is >> identical to the Google Docs example above, except for the setting of >> the scope, and the gdata call:
>> The bit that really gets me about this, is that the authentication >> appears to happen correctly - just the same as for the Google Docs >> example - but the actual Gdata call returns a 404. What I find even >> more puzzling is that if I swap the authentication mechanism for >> ClientLogin, then the call works.
>> Error as follows: >> ( ! ) Zend_Gdata_App_HttpException: Expected response code 200, got >> 404 >> Not Found >> Error 404 >> in /home/piers/code/Zend/Gdata/App.php on line 700
>> Any help with this will be gratefully received.
>> Thanks, >> Piers Harding.
>> -- >> You received this message because you are subscribed to the Google Groups >> "Fusion Tables Users Group" group. >> To post to this group, send email to >> fusion-tables-users-group@googlegroups.com. >> To unsubscribe from this group, send email to >> fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/fusion-tables-users-group?hl=en.
> "Was ist mein Leben, wenn ich nicht mehr nützlich für andere." > Johann Wolfgang von Goethe
> -- > You received this message because you are subscribed to the Google Groups > "Fusion Tables Users Group" group. > To post to this group, send email to > fusion-tables-users-group@googlegroups.com. > To unsubscribe from this group, send email to > fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/fusion-tables-users-group?hl=en.
Can you try encoding the url as ?sql=show+tables instead of show%20tables?
If that does not work, can you try the oauth_signature_method of RSA-SHA1, or alternatively confirm your HMAC-SHA1 consumer key and timestamp settings are both tested at somewhere like http://googlecodesamples.com/oauth_playground/ ?
Cheers,
-Josh
On Wed, May 26, 2010 at 4:26 PM, Piers Harding <piers.hard...@gmail.com>wrote:
> I've traced the call with wireshark, and it looks as if everything is > there: > GET /api/query?sql=SHOW+TABLES HTTP/1.1 > Host: tables.googlelabs.com > Connection: close > User-Agent: MyCompany-MyApp-1.0 Zend_Framework_Gdata/1.10.4 > Accept-encoding: identity > Authorization: OAuth > realm="",oauth_consumer_key="my-consumer-key",oauth_nonce="xxxxxxxxxxxxx",o auth_signature_method="HMAC-SHA1",oauth_timestamp="xxxxxxxxxxxx",oauth_vers ion="1.0",oauth_token="xxxxxxxxxxxxx",oauth_signature="xxxxxxxxxxxxxxxxxxxx xxx"
> I know that the Java implementation example at > http://code.google.com/p/fusion-tables-api/ works, but I can't figure out > what would be different between the two Oauth implementations.
> Cheers, > Piers Harding.
> On 27 May 2010 07:01, jude mwenda <judemwe...@gmail.com> wrote:
>> Hi, >> Please note that you need to catch the exceptions for it to work. IMHO i >> think it would be >> try >> { >> $httpClient = >> $accessToken->getHttpClient($oauthOptions); >> $gdata = new Zend_Gdata_Gbase($httpClient, >> 'fusiontables'); >> }catch Exception e >> { >> echo(e); >> } >> ps i also noticed that you have @accessToken is it initiated? or how is it >> declared?
>> On 26 May 2010 07:10, pxh <piers.hard...@gmail.com> wrote:
>>> Hi - >>> Please excuse breaking this out into a separate post from
>>> http://groups.google.com/group/fusion-tables-users-group/browse_threa... >>> , >>> but I'm quite stuck with this. I'm trying to get Oauth working with >>> the Zend libraries and fusion tables. >>> Using the PHP examples at >>> http://code.google.com/apis/gdata/docs/auth/oauth.html, >>> I have successfully used Oauth for authentication to extract a Google >>> Docs feed - a complete working example is at >>> http://pastebin.com/g2pVer3q >>> - you should only need to set your consumer key/secret to get this to >>> work. >>> I've modified the Google Docs example to do a basic "show tables" - >>> the modified example is at http://pastebin.com/afHs0DYP . This is >>> identical to the Google Docs example above, except for the setting of >>> the scope, and the gdata call:
>>> The bit that really gets me about this, is that the authentication >>> appears to happen correctly - just the same as for the Google Docs >>> example - but the actual Gdata call returns a 404. What I find even >>> more puzzling is that if I swap the authentication mechanism for >>> ClientLogin, then the call works.
>>> Error as follows: >>> ( ! ) Zend_Gdata_App_HttpException: Expected response code 200, got >>> 404 >>> Not Found >>> Error 404 >>> in /home/piers/code/Zend/Gdata/App.php on line 700
>>> Any help with this will be gratefully received.
>>> Thanks, >>> Piers Harding.
>>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Fusion Tables Users Group" group. >>> To post to this group, send email to >>> fusion-tables-users-group@googlegroups.com. >>> To unsubscribe from this group, send email to >>> fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/fusion-tables-users-group?hl=en.
>> "Was ist mein Leben, wenn ich nicht mehr nützlich für andere." >> Johann Wolfgang von Goethe
>> -- >> You received this message because you are subscribed to the Google Groups >> "Fusion Tables Users Group" group. >> To post to this group, send email to >> fusion-tables-users-group@googlegroups.com. >> To unsubscribe from this group, send email to >> fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/fusion-tables-users-group?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "Fusion Tables Users Group" group. > To post to this group, send email to > fusion-tables-users-group@googlegroups.com. > To unsubscribe from this group, send email to > fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/fusion-tables-users-group?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "googletables-feedback" group. > To post to this group, send email to googletables-feedb...@google.com. > To unsubscribe from this group, send email to > googletables-feedback+unsubscr...@google.com<googletables-feedback%2Bunsubscr...@google.com> > . > For more options, visit this group at > http://groups.google.com/a/google.com/group/googletables-feedback/?hl=en.
I've the '+' instead of '%20' for space, with exactly the same error.
I know that my key and secret work, as I can get the Java sample implementation to work, and I've hacked the python gdata libraries to work too. I've also taken the PHP oauth consumer libraries out of simplesamlphp, and can get them to work too, so at the moment it's pointing to be a Zend specific problem.
Thanks for having a look, Piers Harding.
On 9 June 2010 10:48, Josh Livni <jli...@google.com> wrote:
> Can you try encoding the url as ?sql=show+tables instead of show%20tables?
> If that does not work, can you try the oauth_signature_method of RSA-SHA1, > or alternatively confirm your HMAC-SHA1 consumer key and timestamp settings > are both tested at somewhere like > http://googlecodesamples.com/oauth_playground/ ?
> Cheers,
> -Josh
> On Wed, May 26, 2010 at 4:26 PM, Piers Harding <piers.hard...@gmail.com>wrote:
>> Hi Jude -
>> thanks for taking a look.
>> $accessToken is set OK, and $gdata gets allocated. The problem happens on >> the actual call at:
>> I've traced the call with wireshark, and it looks as if everything is >> there: >> GET /api/query?sql=SHOW+TABLES HTTP/1.1 >> Host: tables.googlelabs.com >> Connection: close >> User-Agent: MyCompany-MyApp-1.0 Zend_Framework_Gdata/1.10.4 >> Accept-encoding: identity >> Authorization: OAuth >> realm="",oauth_consumer_key="my-consumer-key",oauth_nonce="xxxxxxxxxxxxx",o auth_signature_method="HMAC-SHA1",oauth_timestamp="xxxxxxxxxxxx",oauth_vers ion="1.0",oauth_token="xxxxxxxxxxxxx",oauth_signature="xxxxxxxxxxxxxxxxxxxx xxx"
>> I know that the Java implementation example at >> http://code.google.com/p/fusion-tables-api/ works, but I can't figure out >> what would be different between the two Oauth implementations.
>> Cheers, >> Piers Harding.
>> On 27 May 2010 07:01, jude mwenda <judemwe...@gmail.com> wrote:
>>> Hi, >>> Please note that you need to catch the exceptions for it to work. IMHO i >>> think it would be >>> try >>> { >>> $httpClient = >>> $accessToken->getHttpClient($oauthOptions); >>> $gdata = new Zend_Gdata_Gbase($httpClient, >>> 'fusiontables'); >>> }catch Exception e >>> { >>> echo(e); >>> } >>> ps i also noticed that you have @accessToken is it initiated? or how is >>> it declared?
>>> On 26 May 2010 07:10, pxh <piers.hard...@gmail.com> wrote:
>>>> Hi - >>>> Please excuse breaking this out into a separate post from
>>>> http://groups.google.com/group/fusion-tables-users-group/browse_threa... >>>> , >>>> but I'm quite stuck with this. I'm trying to get Oauth working with >>>> the Zend libraries and fusion tables. >>>> Using the PHP examples at >>>> http://code.google.com/apis/gdata/docs/auth/oauth.html, >>>> I have successfully used Oauth for authentication to extract a Google >>>> Docs feed - a complete working example is at >>>> http://pastebin.com/g2pVer3q >>>> - you should only need to set your consumer key/secret to get this to >>>> work. >>>> I've modified the Google Docs example to do a basic "show tables" - >>>> the modified example is at http://pastebin.com/afHs0DYP . This is >>>> identical to the Google Docs example above, except for the setting of >>>> the scope, and the gdata call:
>>>> The bit that really gets me about this, is that the authentication >>>> appears to happen correctly - just the same as for the Google Docs >>>> example - but the actual Gdata call returns a 404. What I find even >>>> more puzzling is that if I swap the authentication mechanism for >>>> ClientLogin, then the call works.
>>>> Error as follows: >>>> ( ! ) Zend_Gdata_App_HttpException: Expected response code 200, got >>>> 404 >>>> Not Found >>>> Error 404 >>>> in /home/piers/code/Zend/Gdata/App.php on line 700
>>>> Any help with this will be gratefully received.
>>>> Thanks, >>>> Piers Harding.
>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Fusion Tables Users Group" group. >>>> To post to this group, send email to >>>> fusion-tables-users-group@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com> >>>> . >>>> For more options, visit this group at >>>> http://groups.google.com/group/fusion-tables-users-group?hl=en.
>>> "Was ist mein Leben, wenn ich nicht mehr nützlich für andere." >>> Johann Wolfgang von Goethe
>>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Fusion Tables Users Group" group. >>> To post to this group, send email to >>> fusion-tables-users-group@googlegroups.com. >>> To unsubscribe from this group, send email to >>> fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/fusion-tables-users-group?hl=en.
>> -- >> You received this message because you are subscribed to the Google Groups >> "Fusion Tables Users Group" group. >> To post to this group, send email to >> fusion-tables-users-group@googlegroups.com. >> To unsubscribe from this group, send email to >> fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/fusion-tables-users-group?hl=en.
>> -- >> You received this message because you are subscribed to the Google Groups >> "googletables-feedback" group. >> To post to this group, send email to googletables-feedb...@google.com. >> To unsubscribe from this group, send email to >> googletables-feedback+unsubscr...@google.com<googletables-feedback%2Bunsubscr...@google.com> >> . >> For more options, visit this group at >> http://groups.google.com/a/google.com/group/googletables-feedback/?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "Fusion Tables Users Group" group. > To post to this group, send email to > fusion-tables-users-group@googlegroups.com. > To unsubscribe from this group, send email to > fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/fusion-tables-users-group?hl=en.
> I've the '+' instead of '%20' for space, with exactly the same error.
> I know that my key and secret work, as I can get the Java sample
> implementation to work, and I've hacked the python gdata libraries to work
> too. I've also taken the PHP oauth consumer libraries out of simplesamlphp,
> and can get them to work too, so at the moment it's pointing to be a Zend
> specific problem.
> Thanks for having a look,
> Piers Harding.
> On 9 June 2010 10:48, Josh Livni <jli...@google.com> wrote:
> > Hi Piers,
> > Can you try encoding the url as ?sql=show+tables instead of show%20tables?
> > If that does not work, can you try the oauth_signature_method of RSA-SHA1,
> > or alternatively confirm your HMAC-SHA1 consumer key and timestamp settings
> > are both tested at somewhere like
> >http://googlecodesamples.com/oauth_playground/?
> > Cheers,
> > -Josh
> > On Wed, May 26, 2010 at 4:26 PM, Piers Harding <piers.hard...@gmail.com>wrote:
> >> Hi Jude -
> >> thanks for taking a look.
> >> $accessToken is set OK, and $gdata gets allocated. The problem happens on
> >> the actual call at:
> >> I've traced the call with wireshark, and it looks as if everything is
> >> there:
> >> GET /api/query?sql=SHOW+TABLES HTTP/1.1
> >> Host: tables.googlelabs.com
> >> Connection: close
> >> User-Agent: MyCompany-MyApp-1.0 Zend_Framework_Gdata/1.10.4
> >> Accept-encoding: identity
> >> Authorization: OAuth
> >> realm="",oauth_consumer_key="my-consumer-key",oauth_nonce="xxxxxxxxxxxxx",o auth_signature_method="HMAC-SHA1",oauth_timestamp="xxxxxxxxxxxx",oauth_vers ion="1.0",oauth_token="xxxxxxxxxxxxx",oauth_signature="xxxxxxxxxxxxxxxxxxxx xxx"
> >> I know that the Java implementation example at
> >>http://code.google.com/p/fusion-tables-api/works, but I can't figure out
> >> what would be different between the two Oauth implementations.
> >> Cheers,
> >> Piers Harding.
> >> On 27 May 2010 07:01, jude mwenda <judemwe...@gmail.com> wrote:
> >>> Hi,
> >>> Please note that you need to catch the exceptions for it to work. IMHO i
> >>> think it would be
> >>> try
> >>> {
> >>> $httpClient =
> >>> $accessToken->getHttpClient($oauthOptions);
> >>> $gdata = new Zend_Gdata_Gbase($httpClient,
> >>> 'fusiontables');
> >>> }catch Exception e
> >>> {
> >>> echo(e);
> >>> }
> >>> ps i also noticed that you have @accessToken is it initiated? or how is
> >>> it declared?
> >>> On 26 May 2010 07:10, pxh <piers.hard...@gmail.com> wrote:
> >>>> Hi -
> >>>> Please excuse breaking this out into a separate post from
> >>>>http://groups.google.com/group/fusion-tables-users-group/browse_threa...
> >>>> ,
> >>>> but I'm quite stuck with this. I'm trying to get Oauth working with
> >>>> the Zend libraries and fusion tables.
> >>>> Using the PHP examples at
> >>>>http://code.google.com/apis/gdata/docs/auth/oauth.html,
> >>>> I have successfully used Oauth for authentication to extract a Google
> >>>> Docs feed - a complete working example is at
> >>>>http://pastebin.com/g2pVer3q > >>>> - you should only need to set your consumer key/secret to get this to
> >>>> work.
> >>>> I've modified the Google Docs example to do a basic "show tables" -
> >>>> the modified example is athttp://pastebin.com/afHs0DYP. This is
> >>>> identical to the Google Docs example above, except for the setting of
> >>>> the scope, and the gdata call:
> >>>> The bit that really gets me about this, is that the authentication
> >>>> appears to happen correctly - just the same as for the Google Docs
> >>>> example - but the actual Gdata call returns a 404. What I find even
> >>>> more puzzling is that if I swap the authentication mechanism for
> >>>> ClientLogin, then the call works.
> >>>> Error as follows:
> >>>> ( ! ) Zend_Gdata_App_HttpException: Expected response code 200, got
> >>>> 404
> >>>> Not Found
> >>>> Error 404
> >>>> in /home/piers/code/Zend/Gdata/App.php on line 700
> >>>> Any help with this will be gratefully received.
> >>>> Thanks,
> >>>> Piers Harding.
> >>>> --
> >>>> You received this message because you are subscribed to the Google
> >>>> Groups "Fusion Tables Users Group" group.
> >>>> To post to this group, send email to
> >>>> fusion-tables-users-group@googlegroups.com.
> >>>> To unsubscribe from this group, send email to
> >>>> fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com>
> >>>> .
> >>>> For more options, visit this group at
> >>>>http://groups.google.com/group/fusion-tables-users-group?hl=en.
> >>> "Was ist mein Leben, wenn ich nicht mehr nützlich für andere."
> >>> Johann Wolfgang von Goethe
> >>> --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "Fusion Tables Users Group" group.
> >>> To post to this group, send email to
> >>> fusion-tables-users-group@googlegroups.com.
> >>> To unsubscribe from this group, send email to
> >>> fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/fusion-tables-users-group?hl=en.
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Fusion Tables Users Group" group.
> >> To post to this group, send email to
> >> fusion-tables-users-group@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/fusion-tables-users-group?hl=en.
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "googletables-feedback" group.
> >> To post to this group, send email to googletables-feedb...@google.com.
> >> To unsubscribe from this group, send email to
> >> googletables-feedback+unsubscr...@google.com<googletables-feedback%2Bunsubscr...@google.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/a/google.com/group/googletables-feedback/?hl=en.
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Fusion Tables Users Group" group.
> > To post to this group, send email to
> > fusion-tables-users-group@googlegroups.com.
> > To unsubscribe from this group, send email to
> > fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/fusion-tables-users-group?hl=en.
It's something to do with the Zend libs. I haven't had the time to hunt down exactly what is wrong, but I happened to find another set of libraries in connection with the simplesamlphp implementation http://code.google.com/p/simplesamlphp/source/browse/trunk/modules/oa... I've used this as a basis for the implementation that I'm doing until I hear back from the Zend project (I logged a bug with them).
Cheers, Piers Harding.
On 2 July 2010 03:49, Jose A Reyero <freela...@gmail.com> wrote:
> (Also tried with "show%20tables" and other variations, got the same);
> On Jun 9, 1:35 am, Piers Harding <piers.hard...@gmail.com> wrote: > > Hi -
> > I've the '+' instead of '%20' for space, with exactly the same error.
> > I know that my key and secret work, as I can get the Java sample > > implementation to work, and I've hacked the python gdata libraries to > work > > too. I've also taken the PHP oauth consumer libraries out of > simplesamlphp, > > and can get them to work too, so at the moment it's pointing to be a Zend > > specific problem.
> > Thanks for having a look, > > Piers Harding.
> > On 9 June 2010 10:48, Josh Livni <jli...@google.com> wrote:
> > > Hi Piers,
> > > Can you try encoding the url as ?sql=show+tables instead of > show%20tables?
> > > If that does not work, can you try the oauth_signature_method of > RSA-SHA1, > > > or alternatively confirm your HMAC-SHA1 consumer key and timestamp > settings > > > are both tested at somewhere like > > >http://googlecodesamples.com/oauth_playground/?
> > > Cheers,
> > > -Josh
> > > On Wed, May 26, 2010 at 4:26 PM, Piers Harding < > piers.hard...@gmail.com>wrote:
> > >> Hi Jude -
> > >> thanks for taking a look.
> > >> $accessToken is set OK, and $gdata gets allocated. The problem > happens on > > >> the actual call at:
> > >> I know that the Java implementation example at > > >>http://code.google.com/p/fusion-tables-api/works, but I can't figure > out > > >> what would be different between the two Oauth implementations.
> > >> Cheers, > > >> Piers Harding.
> > >> On 27 May 2010 07:01, jude mwenda <judemwe...@gmail.com> wrote:
> > >>> Hi, > > >>> Please note that you need to catch the exceptions for it to work. > IMHO i > > >>> think it would be > > >>> try > > >>> { > > >>> $httpClient = > > >>> $accessToken->getHttpClient($oauthOptions); > > >>> $gdata = new Zend_Gdata_Gbase($httpClient, > > >>> 'fusiontables'); > > >>> }catch Exception e > > >>> { > > >>> echo(e); > > >>> } > > >>> ps i also noticed that you have @accessToken is it initiated? or how > is > > >>> it declared?
> > >>> On 26 May 2010 07:10, pxh <piers.hard...@gmail.com> wrote:
> > >>>> Hi - > > >>>> Please excuse breaking this out into a separate post from
> http://groups.google.com/group/fusion-tables-users-group/browse_threa... > > >>>> , > > >>>> but I'm quite stuck with this. I'm trying to get Oauth working with > > >>>> the Zend libraries and fusion tables. > > >>>> Using the PHP examples at > > >>>>http://code.google.com/apis/gdata/docs/auth/oauth.html, > > >>>> I have successfully used Oauth for authentication to extract a > Google > > >>>> Docs feed - a complete working example is at > > >>>>http://pastebin.com/g2pVer3q > > >>>> - you should only need to set your consumer key/secret to get this > to > > >>>> work. > > >>>> I've modified the Google Docs example to do a basic "show tables" - > > >>>> the modified example is athttp://pastebin.com/afHs0DYP. This is > > >>>> identical to the Google Docs example above, except for the setting > of > > >>>> the scope, and the gdata call:
> > >>>> The bit that really gets me about this, is that the authentication > > >>>> appears to happen correctly - just the same as for the Google Docs > > >>>> example - but the actual Gdata call returns a 404. What I find even > > >>>> more puzzling is that if I swap the authentication mechanism for > > >>>> ClientLogin, then the call works.
> > >>>> Error as follows: > > >>>> ( ! ) Zend_Gdata_App_HttpException: Expected response code 200, got > > >>>> 404 > > >>>> Not Found > > >>>> Error 404 > > >>>> in /home/piers/code/Zend/Gdata/App.php on line 700
> > >>>> Any help with this will be gratefully received.
> > >>>> Thanks, > > >>>> Piers Harding.
> > >>>> -- > > >>>> You received this message because you are subscribed to the Google > > >>>> Groups "Fusion Tables Users Group" group. > > >>>> To post to this group, send email to > > >>>> fusion-tables-users-group@googlegroups.com. > > >>>> To unsubscribe from this group, send email to > > >>>> fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com> > <fusion-tables-users-group%2Bunsubscribe@googlegroups.com<fusion-tables-use rs-group%252Bunsubscribe@googlegroups.com>
> > >>> "Was ist mein Leben, wenn ich nicht mehr nützlich für andere." > > >>> Johann Wolfgang von Goethe
> > >>> -- > > >>> You received this message because you are subscribed to the Google > Groups > > >>> "Fusion Tables Users Group" group. > > >>> To post to this group, send email to > > >>> fusion-tables-users-group@googlegroups.com. > > >>> To unsubscribe from this group, send email to > > >>> fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com> > <fusion-tables-users-group%2Bunsubscribe@googlegroups.com<fusion-tables-use rs-group%252Bunsubscribe@googlegroups.com>
> > >> -- > > >> You received this message because you are subscribed to the Google > Groups > > >> "Fusion Tables Users Group" group. > > >> To post to this group, send email to > > >> fusion-tables-users-group@googlegroups.com. > > >> To unsubscribe from this group, send email to > > >> fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com> > <fusion-tables-users-group%2Bunsubscribe@googlegroups.com<fusion-tables-use rs-group%252Bunsubscribe@googlegroups.com>
> > >> -- > > >> You received this message because you are subscribed to the Google > Groups > > >> "googletables-feedback" group. > > >> To post to this group, send email to googletables-feedb...@google.com > . > > >> To unsubscribe from this group, send email to > > >> googletables-feedback+unsubscr...@google.com<googletables-feedback%2Bunsubscr...@google.com> > <googletables-feedback%2Bunsubscr...@google.com<googletables-feedback%252Bunsubscr...@google.com>
> > >> . > > >> For more options, visit this group at
> > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Fusion Tables Users Group" group. > > > To post to this group, send email to > > > fusion-tables-users-group@googlegroups.com. > > > To unsubscribe from this group, send email to > > > fusion-tables-users-group+unsubscribe@googlegroups.com<fusion-tables-users- group%2Bunsubscribe@googlegroups.com> > <fusion-tables-users-group%2Bunsubscribe@googlegroups.com<fusion-tables-use rs-group%252Bunsubscribe@googlegroups.com>
> -- > You received this message because you are subscribed to the Google Groups > "Fusion Tables Users Group" group. > To post to this group, send email to > fusion-tables-users-group@googlegroups.com. > To unsubscribe