Skip to content

Commit 096e5e3

Browse files
authored
Merge pull request microsoftgraph#129 from srtippan/patch-1
Update example
2 parents 9fa69ea + 7368a2c commit 096e5e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
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,8 @@ 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+
result = client.users_by_id('<user-id>').get.resume
59+
puts "Found User : " + result.id
6060
```
6161

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

0 commit comments

Comments
 (0)