我试图提取我公司在其Google网站站长工具中注册的公司列表.我这样做是使用PHP和PHP API客户端库(https://developers.google.com/api-client-library/php/).我已经把一切都搞定了,除了它给了我一个空数组的事实.我的代码如下,任何帮助将不胜感激.
为客户端ID,帐户等填写适当的值,并且所有内容都进行了相应的身份验证,因为我使用相同的代码来访问books API.
<?php
/*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS …Run Code Online (Sandbox Code Playgroud) I am building an interface to tie in with Google Sheets. The way it works is all of the records from a spreadsheet are pulled into a grid view on my interface. There is then a button on this interface offering options such as Edit, Delete, etc.
I am having trouble with my delete method. The way it works is all of my records are pulled in to the method which then uses a for loop to go through the …