02-23-2017 07:30 PM
Any one here using Python with requests to give me some guidance or basic script examples ? All I got so far was the html code from Prime.
Thanks in advanced.
02-23-2017 07:54 PM
have you seen this
"import requests resp = requests.get('https://todolist.example.com/tasks/') if resp.status_code != 200: # This means something went wrong. raise ApiError('GET /tasks/ {}'.format(resp.status_code)) for todo_item in resp.json(): print('{} {}'.format(todo_item['id'], todo_item['summary'])) "
02-23-2017 10:29 PM
Hi Falvio,
I have a couple of blogs that reference a GitHub repository.
Template based provisioning with Cisco Prime Infrastructure – Part 1
Template based provisioning with Cisco Prime Infrastructure Part 2
Adam
08-04-2023 11:21 PM - edited 08-04-2023 11:22 PM
HTML? Do you mean URL?
APIs use URLs and JSON.
What exactly are you trying to do?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide