Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 4f272f8

Browse files
authored
Update README.md
Updated README example
1 parent 9fa69ea commit 4f272f8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ require "microsoft_graph_core"
3232

3333
context = MicrosoftKiotaAuthenticationOAuth::ClientCredentialContext.new("<the tenant id from your app registration>", "<the client id from your app registration>", "<the client secret from your app registration>")
3434

35-
authentication_provider = MicrosoftGraphCore::Authentication::OAuthAuthenticationProvider.new(context, nil, ["Files.Read"])
35+
authentication_provider = MicrosoftGraphCore::Authentication::OAuthAuthenticationProvider.new(context, nil, ["https://graph.microsoft.com/.default"])
3636
```
3737

3838
### 2.3 Get a Graph Service Client and Adapter object
@@ -55,8 +55,9 @@ After you have a **MicrosoftGraphServiceClient** that is authenticated, you can
5555
To retrieve the user's drive:
5656

5757
```ruby
58-
result = client.me.drive.get.resume
59-
puts "Found Drive : " + result.id
58+
user_item_req_builder = client.users_by_id '9327b2bb-74b9-4d22-9839-eff4a982f541'
59+
result = user_item_req_builder.get.resume
60+
puts "Found User : " + result.id
6061
```
6162

6263
## 4. Getting results that span across multiple pages

0 commit comments

Comments
 (0)