无法在Google App Maker中运行PlusDomains示例。

问题描述 投票:-2回答:1

我正在尝试运行 这个 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. 

有谁能让这个程序正常运行?

google-plus google-app-maker
1个回答
0
投票

Pavel的链接有了答案。我只需要删除所有的访问权限 https:/security.google.comsettingssecuritypermissions。 然后重新授权。

谢谢,帕维尔!

© www.soinside.com 2019 - 2024. All rights reserved.