upgraded API examples to use urllib3 instead of requests