Sign Up
Log In
Home
discussion
Exam 200-901 Question id=6250 Understanding and Using APIs

Refer to the exhibits.



bash-3.2$ curl -H "Content-Type: application/json" -H "Authorization: Fj2zzzykEa091ic9GK2j8LtE1HklHklH6oRHPQdw1Pat60i7ndtHHnWzL2b5pqMg14Kk_B9EI59isacLy7- NaxA02n9H-tGgt-SxQ39iDejgcs" -i -X POST -d "{ \"roomId\": \"Y2geK53sjEknosrC7SwQ5ZGL99pHgiuScB7DfNvUsr8Xx4wDKLiPORcEkryAnM3QmK9LOZSP0G4\" ,\"text\": \" test2\" }" https://api.ciscospark.com/v1/messages HTTP/1.1 401 Unauthorized Via: 1.1 linkerd TrackingID: ROUTER_5EOFDC8C-EB6F-01BB-00EF-806BF1BD00EF Date: Sat, 04 Jan 2020 00:30:04 GTM Server: Redacted Content-Length: 267 Content-Type: application/json Strict-Transport-Security: max-age=63072000; includeSubDomains; preload {"message": "The request requires a valid access token set in the Authorization request header.", "errors": [{"description": "The request requires a valid access token set in the Authorization request header."}] ,"trackingId"a: "ROUTER_5EOFDC8C-EB6F-01BB-00EF-806BF1BD00EF"} bash-3.2$

A developer is troubleshooting an API with the given API documentation and cURL command. What is the cause of this problem?

A. The authorization header is missing or incomplete
B. The request body is missing or incomplete.
C. The API token specified is expired.
D. The user is not allowed to post messages from their account.