#get info user when Oauth in youtube

1 messages · Page 1 of 1 (latest)

scenic adder
#

I get detail connection via https://backend.composio.dev/api/v1/connectedAccounts/{accountId}
then I combie connectionParams.base_url + meta.app.get_current_user_endpoint to url. I call it with token from connectionParams.hearders.Authorization
By this way, I can get email of account do authenticate.
Example in gmail:
curl -H "Authorization: Bearer ..." https://www.googleapis.com/gmail/v1/users/me/profile
Response:
{
"emailAddress": "[email protected]",
"messagesTotal": 4200,
"threadsTotal": 3987,
"historyId": "473404"
}

However, I can't see email in youtube Response and googlecalendar Response

gusty roverBOT
#

Hey,
for gmail you can actually use the action GMAIL_GET_PROFILE to get the email id.

I'll check with team regarding youtube & G calendar.