[eluser]Jay Logan[/eluser]
Just started messing with the Google Webmaster Tools API and so far, I have been able to successfully add a site and add a sitemap from my CodeIgniter application. Now I'm trying to retrieve a sites info so that I can work on an auto-verifcation feature. But the response I get from Google when retrieving a site's feed data is this:
Code:
Zend_Http_Response Object
(
[version:protected] => 1.1
[code:protected] => 200
[message:protected] => OK
[headers:protected] => Array
(
[Content-type] => application/atom+xml; charset=UTF-8
[Expires] => Tue, 08 Dec 2009 20:32:58 GMT
[Date] => Tue, 08 Dec 2009 20:32:58 GMT
[Cache-control] => private, max-age=0, must-revalidate, no-transform
[Vary] => Accept, X-GData-Authorization, GData-Version
[Gdata-version] => 1.0
[Last-modified] => Tue, 08 Dec 2009 20:32:58 GMT
[Transfer-encoding] => chunked
[X-content-type-options] => nosniff
[X-xss-protection] => 0
[Connection] => close
[Server] => GFE/2.0
)
[body:protected] => 6c6
<?xml version='1.0' encoding='UTF-8'?><entry ><id>https://www.google.com/webmasters/tools/feeds/sites/http://REMOVED/</id><updated>2009-12-08T20:32:58.077Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/webmasters/tools/2007#site-info'/><title type='text'>REMOVED/</title><content src='REMOVED/'/><link rel='self' type='application/atom+xml' href='https://www.google.com/webmasters/tools/feeds/sites/http://REMOVED/'/><link rel='edit' type='application/atom+xml' href='https://www.google.com/webmasters/tools/feeds/sites/http://REMOVED/'/><wt:indexed>true</wt:indexed><wt:crawled>2009-12-03T10:24:47.000</wt:crawled><wt:verified>false</wt:verified><gd:entryLink rel='http://schemas.google.com/webmasters/tools/2007#sitemaps' href='https://www.google.com/webmasters/tools/feeds/http://REMOVED//sitemaps'/><gd:entryLink rel='http://schemas.google.com/webmasters/tools/2007#keywords' href='https://www.google.com/webmasters/tools/feeds/http://REMOVED//keywords'/><wt:verification-method type='metatag' in-use='false'><meta name="verify-v1" content="y2nn5bZh0zx821QS8gVg+td/dlS1KyVeNDOOYPbAajM=" /></wt:verification-method><wt:verification-method type='htmlpage' in-use='true'>google3cb3f5c042047300.html</wt:verification-method></entry>
0
)
All the objects are protected and I can't use something like $result->body to get the data. Any way to unprotect them or what should I do?