向客户发送请求访问邀请以获得 Google Analytics 中的用户访问权限
Sending Request Access Invitation to a client in order to get user access in Google Analytics
客户可以使用 User Management, But I can not find how a manager analytics account can send a request access invitation to manage a client's analytics account with API call(like as google Google Adwords mutatelink 功能直接将自己的分析帐户访问另一个经理帐户。
目前,我们正在使用以下代码通过用户 access_token.
授予访问分析管理器
self.service.management().accountUserLinks().insert(
accountId=accountId,
body={
'permissions': {
'local': [
'EDIT',
'MANAGE_USERS'
]
},
'userRef': {
'email': email}}).execute()
我的问题是,当我们没有客户的 access_token 时,我们想向客户发送邀请以管理其帐户。
你会如何在 google 分析中做到这一点?
My issue is, when we do not have the client's access_token, we want to send an invitation to the client for managing its account.
如果您想访问用户数据,那么您应该向他们发送 link 到您的应用程序,以便他们可以授权您的应用程序并使用它。这是您能够为其帐户获取访问令牌的唯一方法。
客户可以使用 User Management, But I can not find how a manager analytics account can send a request access invitation to manage a client's analytics account with API call(like as google Google Adwords mutatelink 功能直接将自己的分析帐户访问另一个经理帐户。
目前,我们正在使用以下代码通过用户 access_token.
授予访问分析管理器self.service.management().accountUserLinks().insert(
accountId=accountId,
body={
'permissions': {
'local': [
'EDIT',
'MANAGE_USERS'
]
},
'userRef': {
'email': email}}).execute()
我的问题是,当我们没有客户的 access_token 时,我们想向客户发送邀请以管理其帐户。
你会如何在 google 分析中做到这一点?
My issue is, when we do not have the client's access_token, we want to send an invitation to the client for managing its account.
如果您想访问用户数据,那么您应该向他们发送 link 到您的应用程序,以便他们可以授权您的应用程序并使用它。这是您能够为其帐户获取访问令牌的唯一方法。