无法检索Google网上论坛的成员,获得无效输入 [英] Unable to retrieve members of a google group, getting Invalid Input

查看:95
本文介绍了无法检索Google网上论坛的成员,获得无效输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Google网上论坛首页创建了一个Google网上论坛,并添加了5个用户.

I created a Google group from the Google Groups homepage and have added 5 users.

我正在尝试使用 Google Admin SDK API进行检索群组中的成员列表,但是每当我尝试使用API​​时(

I am trying to use the Google Admin SDK API to retrieve the list of members from my group but whenever I try the API (from the API explorer) I get a 400 :

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalid",
    "message": "Invalid Input"
   }
  ],
  "code": 400,
  "message": "Invalid Input"
 }
}

请求是:

GET https://www.googleapis.com/admin/directory/v1/groups/my-group-name%40googlegroups.com/members?key={MY_API_KEY}

我的groupKey用urlencoded my-group-name@googlegroups.com

My groupKey is urlencoded my-group-name@googlegroups.com

我尝试仅使用my-group-name作为groupKey,但是随后得到了404 "Resource Not Found: groupKey"

I tried using only my-group-name as the groupKey but I then get a 404 "Resource Not Found: groupKey"

我以该网上论坛的所有者身份登录,并具有OAuth2身份验证期间所需的所有范围.

I am logged in with the owner of the group and have all scopes required during the OAuth2 authentication.

推荐答案

Admin SDK组API调用需要 Google Apps for Work或EDU.它们不适用于消费者@ googlegroups.com组.没有用于以编程方式管理消费者googlegroups.com组的API.

The Admin SDK groups API calls require Google Apps for Work or EDU. They do not work with consumer @googlegroups.com groups. There is no API to manage consumer googlegroups.com groups programatically.

这篇关于无法检索Google网上论坛的成员,获得无效输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆