Hello Alexey,

You can send a request to the user's primary calendar's event feed URL:
  https://www.google.com/calendar/feeds/default/private/full

In the response feed, there will be an author element which should be set
to the user's email address:

  <author>
    <name>AUTHOR_NAME</name>
    <email>AUTHOR_EMAIL_ADDRESS</email>
  </author>

Best,
Alain

On Thu, Nov 10, 2011 at 5:25 PM, Alexey Panteleev <[email protected]> wrote:

>  Hi, Lets say a user authorized our app to access his/her calendar via
> oauth, the app connects but it does not know if that is the right
> account. Is there a way in the api to tell which account/email the app is
> actually connected to?
>
>  Sometimes we ask users to authorize but they authorize to a wrong account
> from their multiple ones.
> I'd like to be able to compare the email they provided beforehand (desired
> account) to the account we got authorized for.
> Is there a way?
>
> Thank you,
> Alexey
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google Calendar Data API" group.
>
> To post to this group, send email to
> [email protected]
>
> To unsubscribe from this group, send email to
> [email protected]
>
> For more options, visit this group at
> http://code.google.com/apis/calendar/community/forum.html
>



-- 
Alain Vongsouvanh | Developer Programs Engineer

-- 
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html

Reply via email to