Question 31 of 100 from exam 350-901-DEVCOR: Developing Applications Using Cisco Core Platforms and APIs

Question 31 of 100 from exam 350-901-DEVCOR: Developing Applications Using Cisco Core Platforms and APIs

Question

Meraki Dashboard API Response
Response Status Code —: 200
Response Link Header:
<https: //n6.meraki . com/api /v0/organizations/681155/devices?perPage-3éstartingAfter=
0000-0000-0000>; rel=first,
<https: //n6 .meraki .com/api/v0/organizations/681155/devices?perPage=3
&startingAfter-Q2EK-3UBE-RRUY>; rel-next,
<https: //n6 .meraki . com/api/v0/organizations/681155/devices?endingBefore=2z22-2222-
zzzzperPage=3>; rel=last
Response Body 20
{

wname”: 7,

“serial”: “Q2CV-V49B-RCMZ”,

wmac”: “Oc:8d:db:95:aa:39",

“networkId”: “L_566327653141846927",

ymodel”: “MV71",

address”: “430 E Cactus Ave.\nLas Vegas, NV 89183”,

“lat”: 36.00017,

“Ing”: -115.15302,

wnotes”: ”,

stags”: ™,

“lanIp: “192.168.0.25”,

‘configurationUpdatedat”: "2019-08-08702:15:362",

“€irmware”: “camera-3-30”

‘name”: “Alex's MR84 - 1”,
“serial”: “Q2EK-2LYB-PCZP”,

wmac”: “e0:55:3d:10:56:8a",

“networkId”: “L_566327653141846927",

wmodel”: “MR84”,

address”: ™”,

“lat”: 39.9482993357826,

“Ing”: -82. 9895675461739,

“notes”: ™”,

stags”: »”,

“lanIp: null,

“configurationUpdatedat”: "2018-02-03911:02:372",
“€irmware”: “Not running configured version”

“name”: “Vegas Living Room MR84”",

“serial”: “Q2EK-3UBE-RRUY”,

ymac”: “e0:55:3d:10:5a:ca”,

“networkId”: “L_566327653141846927",

wmodel”: “MRB4””,

address”: “430 E Cactus Ave.\nLas Vegas, NV 89183”,
“lat”: 36.00015,

“Ing”: -115.15308,

‘notes’: “",

stags”: »”,

“lanIp: “192.168.0.20",

“configurationUpdatedat”: "2018-09-29912:23:212",
“£irmware”: “Not running configured version”
import request
import json

meraki_api_key = “<api key>”
url = ~
“https: //api .meraki .com/api/v0/organizations/12345567890/devices”
headers = {
“X-Cisco-Meraki-API-Key”: meraki_api_key,

}
params = {

“perPage”: 3
}
res = requests.get(url, headers=headers, params=params)
formatted message =”
Meraki Dasboard API Response

Response Status Code
Response Link Header
Response Body

ww format (res.status_code, res.headers.get (‘Link’),
json.dumps(res.json(), indent=4))
print (formatted message)

<https: //n6 .meraki .com/api/v0/organizations/1234567890/devices?perPage=
3&startingAfter-0000-0000-0000>; rel=first,

<https: //n6 .meraki..com/api/v0/organizations/1234567890/devices?perPage=
3&startingAfter=Q2EK-3UBE-RRUY>; rel=next,

<https: //n6 .meraki .com/api/v0/organizations/1234567890/devices?
endingBefore=z22z2-zzz2-zzzzéperPage=3>; rel=last

Refer to the exhibit.

Which line of code must be added to this code snippet to allow an application to pull the next set of paginated items?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C.