communications-mining
latest
false
重要 :
请注意,此内容已使用机器翻译进行了本地化。
Communications Mining 开发者指南
Last updated 2024年10月3日

获取所有用户

/api/v1/users

所需权限:查看租户用户、查看用户

  • 重击
    curl -X GET 'https://<my_api_endpoint>/api/v1/users' \
        -H "Authorization: Bearer $REINFER_TOKEN"curl -X GET 'https://<my_api_endpoint>/api/v1/users' \
        -H "Authorization: Bearer $REINFER_TOKEN"
  • 节点
    const request = require("request");
    
    request.get(
      {
        url: "https://<my_api_endpoint>/api/v1/users",
        headers: {
          Authorization: "Bearer " + process.env.REINFER_TOKEN,
        },
      },
      function (error, response, json) {
        // digest response
        console.log(JSON.stringify(json, null, 2));
      }
    );const request = require("request");
    
    request.get(
      {
        url: "https://<my_api_endpoint>/api/v1/users",
        headers: {
          Authorization: "Bearer " + process.env.REINFER_TOKEN,
        },
      },
      function (error, response, json) {
        // digest response
        console.log(JSON.stringify(json, null, 2));
      }
    );
  • Python
    import json
    import os
    
    import requests
    
    response = requests.get(
        "https://<my_api_endpoint>/api/v1/users",
        headers={"Authorization": "Bearer " + os.environ["REINFER_TOKEN"]},
    )
    
    print(json.dumps(response.json(), indent=2, sort_keys=True))import json
    import os
    
    import requests
    
    response = requests.get(
        "https://<my_api_endpoint>/api/v1/users",
        headers={"Authorization": "Bearer " + os.environ["REINFER_TOKEN"]},
    )
    
    print(json.dumps(response.json(), indent=2, sort_keys=True))
    
  • 响应
    {
      "status": "ok",
      "users": [
        {
          "email": "jane@reinfer.io",
          "last_login_at": "2016-02-10T23:13:28.340295Z",
          "username": "Jane"
        },
        {
          "email": "john@reinfer.io",
          "last_login_at": "2017-03-11T20:10:21.123456Z",
          "username": "John"
        }
      ]
    }{
      "status": "ok",
      "users": [
        {
          "email": "jane@reinfer.io",
          "last_login_at": "2016-02-10T23:13:28.340295Z",
          "username": "Jane"
        },
        {
          "email": "john@reinfer.io",
          "last_login_at": "2017-03-11T20:10:21.123456Z",
          "username": "John"
        }
      ]
    }

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo White
信任与安全
© 2005-2024 UiPath。保留所有权利。