Tables插入带有PHP基本示例的行

Tables插入带有PHP基本示例的行

本文介绍了Fusion Tables插入带有PHP基本示例的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有用于Fusion Tables的更新的PHP客户端库?还是一个非常具体的复制+粘贴插入行示例?

Is there is an updated PHP client library for Fusion Tables? or maybe a very concrete copy+paste insert rows example?

II已访问 https://code.google.com/p /google-api-php-client/并下载了它们的最新发行文件,但是尽管有许多其他Google api的示例,但找不到任何有关融合表示例的内容.

I I have visited https://code.google.com/p/google-api-php-client/ and downloaded their latest release file, but while having examples for lots of other google apis, I can't find any mention of fusion tables examples.

此外,我一直在尝试获取 https://github. com/marciuz/fusion-table-php-api-and-shell 很棒的项目,但是在他的外壳或他使用的php示例中使用启用了融合表的服务器api密钥时,始终收到无效凭据"错误用途.这甚至适用于基本的SHOW TABLES命令.

Additionally I have been trying to get https://github.com/marciuz/fusion-table-php-api-and-shell fantastic project to work, but keep receiving "invalid credentials" errors when using my fusion tables enabled server api key with his shell or with the php examples he uses. This is even for basic SHOW TABLES commands.

我这里缺少范围问题吗?

Is there a scope issue here I am missing?

是否有一个非常简单的php示例,我可以将其凭证(clientID,客户端机密,重定向uri,api密钥)复制并粘贴到粘贴表中,然后直接将行插入到Fusion Table中?也许像,只是希望它包括如何创建访问令牌,并有助于插入行而不是修改样式?

Is there a very simple php example I can use to just copy and paste my credentials (clientID, client secret, redirect uri, api key) into and get right to inserting rows into my Fusion Tables? Maybe something like Invalid Credentials Error when passing Oauth 2.0 Access Token to Fusion Tables API in PHP, only hopefully it includes how to create the access token, and helps to insert rows instead of modifying styling?

我试图不重新发明轮子,并且一直在寻找一个简单的示例来插入行,这并没有超出我的经验.谢谢,这确实使我发疯.

I am trying to not reinvent the wheel on this one, and have been looking high and low for a simple working example to insert rows, that is not over my inexperienced head. Thank you, this has been literally driving me crazy.

推荐答案

这对我有用:

好,所以我终于可以使用它了,我想与大家分享一下,以防万一您像我一样被困住了.我所看到的所有用法示例中似乎都缺少一个步骤,即服务帐户电子邮件地址需要通过Google文档添加.

"Ok so I finally got this to work and I thought Id share this with everyone In case you get stuck like I did. One step that seems to be missing from all usage examples I've seen is the service account email address needs to be added via Google Docs.

在Google文档中选择文档(FT)单击共享"选择添加人员",输入您的服务帐户电子邮件地址,例如myservice ... @ developer.gserviceaccount.com确保已选择可以编辑".取消选中通过电子邮件通知人",然后单击共享并保存"

Select the document (FT) in Google Docs Click "Share"Select "Add People" Enter your service account email address, e.g. [email protected] Ensure "Can Edit" is selected. Un-check "notify people via email" Click "Share and Save"

这是我的完整猜测,但似乎已解决了我的问题.我终于可以通过我的服务帐户插入FT了.希望这会有所帮助."

This was a complete guess on my part but seems to have fixed my problem. I can finally insert into my FT via my service account. Hope this helps."

对于其他人,我发现此代码并进行了修复,对于最终获得google-api-php-client解决方案非常有用. https://groups.google.com/forum /#!msg/google-api-php-client/9d2lQAppTvg/vh8CRhWJb_YJ

For anyone else looking out there, I found this code and fix very useful for finally getting a solution with the google-api-php-client. https://groups.google.com/forum/#!msg/google-api-php-client/9d2lQAppTvg/vh8CRhWJb_YJ

这篇关于Fusion Tables插入带有PHP基本示例的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 21:23