cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

2629
Views
7
Helpful
2
Replies

Rest API using Python

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.

2 REPLIES 2
Highlighted
Contributor

Re: Rest API using Python

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'])) "

Source

Cisco Employee

Re: Rest API using Python

Content for Community-Ad
FusionCharts will render here
This widget could not be displayed.