pownraj-anubavam / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

How to get list of domains verified by google? #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

How can I get the list of verified domains using this api? Is there any code 
for getting the verified or valid domains-list?
Please comment.

Thanks,
Chitrangada

Original issue reported on code.google.com by chitrang...@gmail.com on 6 Mar 2012 at 11:15

GoogleCodeExporter commented 9 years ago
Hey Chitrangada,

If you're using the Google Site Verification API 
(https://developers.google.com/site-verification/), you can use the following 
sample application to get a list of verified domains:

 https://google-api-php-client.googlecode.com/svn/trunk/examples/siteVerification/simple.php

Original comment by chirags@google.com on 7 Mar 2012 at 7:30

GoogleCodeExporter commented 9 years ago
Thanks Chirag. 

One more thing I wanted to ask you that are we able/allowed to use two 
different services simultaneously? 
To be more specific I need to use Google Analytic and Site Verification APIs 
together.

Can you please comment on it?

Thanks again!

Original comment by chitrang...@gmail.com on 9 Mar 2012 at 7:03

GoogleCodeExporter commented 9 years ago
Hey,

It is possible to use both services at the same time.
You'll need to create an analytics service, and a separate siteVerification 
service:
$analytics = new apiAnalyticsService($client);
$site = new apiSiteVerificationService($client);

You'll also need to enable both services in the google api console:
https://code.google.com/apis/console?analytics
https://code.google.com/apis/console?api=siteVerification

Other than that, make sure you follow the pattern offerend in the examples:
https://google-api-php-client.googlecode.com/svn/trunk/examples/siteVerification
/simple.php
https://google-api-php-client.googlecode.com/svn/trunk/examples/analytics/simple
.php

Original comment by chirags@google.com on 12 Mar 2012 at 6:53