i can't find out my userId of gmail account to use Gmail API. So someone can find. Can you tell me?
userId string The user's email address. The special value me can be used to indicate the authenticated user.
The user id / email can be found from the current authenticated user. When the user logs in you have access to some information about them. You can always use me
if you are requesting information about the current user.
Example
GET https://www.googleapis.com/gmail/v1/users/me/profile
How to find userid / email of the current user
With the gmail api you can use getprofile to get some basic information about the user who is currently logged in.
{
"emailAddress": "xxx@gmail.com",
"messagesTotal": 66327,
"threadsTotal": 13902,
"historyId": "4599500"
}
Using this method you can find the users actual email address if you wish to use that instead of using me.