无法在 Google App Maker 中 运行 PlusDomains 示例
Cannot run PlusDomains example in Google App Maker
我正在尝试 运行 this Google App Maker 中的示例代码:
/**
* The following example demonstrates how to create a post that is available
* to all users within your G Suite domain.
*/
function createPost() {
var userId = 'me';
var post = {
object: {
originalContent: 'Happy Monday! #caseofthemondays'
},
access: {
items: [{
type: 'domain'
}],
domainRestricted: true
}
};
post = PlusDomains.Activities.insert(post, userId);
Logger.log('Post created with URL: %s', post.url);
}
但是,我一直收到这个:
GoogleJsonResponseException: Access to the Google+ Domains API is not allowed as the user has consented to incompatible scopes.
有没有其他人设法让它工作?
Pavel 的 link 给出了答案:我只需要删除 https://security.google.com/settings/security/permissions 的所有访问权限,然后重新授权。
谢谢,帕维尔!
我正在尝试 运行 this Google App Maker 中的示例代码:
/**
* The following example demonstrates how to create a post that is available
* to all users within your G Suite domain.
*/
function createPost() {
var userId = 'me';
var post = {
object: {
originalContent: 'Happy Monday! #caseofthemondays'
},
access: {
items: [{
type: 'domain'
}],
domainRestricted: true
}
};
post = PlusDomains.Activities.insert(post, userId);
Logger.log('Post created with URL: %s', post.url);
}
但是,我一直收到这个:
GoogleJsonResponseException: Access to the Google+ Domains API is not allowed as the user has consented to incompatible scopes.
有没有其他人设法让它工作?
Pavel 的 link 给出了答案:我只需要删除 https://security.google.com/settings/security/permissions 的所有访问权限,然后重新授权。
谢谢,帕维尔!