Skip to content

Commit a5d83f2

Browse files
Merge pull request #228481 from FaithOmbongi/patch-6
Fix Graph sample
2 parents 5876a54 + 3d92ea1 commit a5d83f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/active-directory/develop/v2-oauth2-client-creds-grant-flow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,14 +267,14 @@ An error response (400 Bad Request) looks like this:
267267
Now that you've acquired a token, use the token to make requests to the resource. When the token expires, repeat the request to the `/token` endpoint to acquire a fresh access token.
268268

269269
```HTTP
270-
GET /v1.0/me/messages
270+
GET /v1.0/users
271271
Host: https://graph.microsoft.com
272272
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik5HVEZ2ZEstZnl0aEV1Q...
273273
```
274274
Try the following command in your terminal, ensuring to replace the token with your own.
275275

276276
```bash
277-
curl -X GET -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG...." 'https://graph.microsoft.com/v1.0/me/messages'
277+
curl -X GET -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG...." 'https://graph.microsoft.com/v1.0/users'
278278
```
279279

280280
## Code samples and other documentation

0 commit comments

Comments
 (0)