communications-mining
latest
false
Wichtig :
Dieser Inhalt wurde maschinell übersetzt.
UiPath logo, featuring letters U and I in white

Communications Mining-Entwicklerhandbuch

Letzte Aktualisierung 26. Nov. 2024

Alle Benutzer abrufen

/api/v1/users

Erforderliche Berechtigungen: Mandantenbenutzer anzeigen, Benutzer anzeigen.

  • Bash
    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"
  • Knoten
    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))
    
  • Antwort
    {
      "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"
        }
      ]
    }

War diese Seite hilfreich?

Hilfe erhalten
RPA lernen – Automatisierungskurse
UiPath Community-Forum
Uipath Logo White
Vertrauen und Sicherheit
© 2005–2024 UiPath. Alle Rechte vorbehalten