debug($sitemaps->listSitemaps(" http://example.com ", ['contents'=> 'indexed']));
返回
object(Google_Service_Webmasters_SitemapsListResponse) {
[protected] collection_key => 'sitemap'
[protected] internal_gapi_mappings => array()
[protected] sitemapType => 'Google_Service_Webmasters_WmxSitemap'
[protected] sitemapDataType => 'array'
[protected] modelData => array(
'sitemap' => array(
(int) 0 => array(
'path' => 'http://example.com/sitemap.xml',
'lastSubmitted' => '2017-12-31T17:06:56.592Z',
'isPending' => false,
'isSitemapsIndex' => false,
'type' => 'sitemap',
'lastDownloaded' => '2018-01-03T11:42:39.262Z',
'warnings' => '0',
'errors' => '0',
'contents' => array(
(int) 0 => array(
'type' => 'web',
'submitted' => '4',
'indexed' => '0'
)
)
)
)
)
[protected] processed => array()
}
modeldata 应返回包含日期和索引值的数据数组