你能帮我 Google 工作流程吗?

Can you help me with Google Workflow?

我遇到错误:

"in step "readGcpadmin": {"message":"HTTP body unsupported with: 'GET'","tags":["ValueError"]}"

我不知道怎么解决,下面是隐藏数据的代码:

- readGcpadmin:
call: http.get
args:
    url: https://admin.googleapis.com/admin/directory/v1/users
    #method: get
    headers:
        Authorization: "Bearer [My token]"
        Content-type: "application/json"
    #body:
        #domain: [my domain.page]
    #query:
              
    auth:
      type: OAuth2
      #scope: https://www.googleapis.com/auth/cloud-platform
    #timeout: 20        
result: teste
- returnResult:
    return: ${teste.body}

当我尝试终端时,它工作正常:

curl \
  'https://admin.googleapis.com/admin/directory/v1/users?domain=MyDomain&key=MyKey' \
  --header 'Authorization: Bearer MyToken' \
  --header 'Accept: application/json' \
  --compressed

这是一个类似的工作示例,请注意您错过的 query 部分:

readItem:
    call: http.get
    args:
      url: ${"https://storage.googleapis.com/storage/v1/b/"+bucket+"/o"}
      auth:
        type: OAuth2
      query:
        prefix: ${prefix}
        fields: items/name,items/bucket
    result: documentValue
    next: documentFound

问题真的出在“auth”字段的位置上,直接放在“Header”中“auth:OAuth2”就可以了。此外,我删除了“内容类型”字段。谢谢大家!