http and apis — making the call8 / 9
get, status, json — the call ai makes 100 times a day
We've stubbed an API response below. Write a function called
get_user_name that takes the response dict, returns the value at
response["data"]["user"]["name"], and then call it once on the
provided mock and print the result.
Expected output:
maya
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _