Org Web Adapter

pages/15five_test_data_generators.org

ID
f972f719-ad5a-4a95-a001-8c303c984fcb

15Five Test Data Generators

- tags :: 15Five

Generate high five mentions

#+begin_src python :results output

import json

import requests

DEV_DOMAIN = "https://five.unbl.ink"

TOKEN = "1111-1111-1111-1111"

HEADERS = {"Authorization": f"Bearer {TOKEN}"}

response = requests.get(DEV_DOMAIN + "/api/public/user?is_active=True&debug_api=true", headers=HEADERS)

try:

result = json.loads(response.content)

for user in result["results"]:

print("@" + user["first_name"] + user["last_name"] + " ")

except Exception as e:

print(f'Error: {e}')

#+end_src

#+RESULTS:

#+begin_example

#+end_example