Rest API using Python
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
Prime Infrastructure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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'])) "

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
