When developers integrate a URL shortening service, they often start with direct HTTP requests.

At first glance it seems simple enough:

import requests

response = requests.post(

"https://example.com/api/links",