Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lleirborras committed Apr 18, 2024
1 parent 7100801 commit 3dee267
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ And then execute:

You can instantiate a number of SharePoint clients in your application:

#### Token authentication

```rb
client = Sharepoint::Client.new({
authentication: "token",
client_id: "client_id",
client_secret: "client_secret",
tenant_id: "tenant_id",
Expand All @@ -33,6 +36,17 @@ client = Sharepoint::Client.new({
})
```

#### NTLN authentication

```rb
client = Sharepoint::Client.new({
authentication: "mtlm",
username: "username",
password: "password",
uri: "http://sharepoint_url"
})
```

### Get documents of a folder

```rb
Expand Down

0 comments on commit 3dee267

Please sign in to comment.