Skip to content

Commit

Permalink
Merge pull request #24 from notion-dotnet/replace-code-snippet-images…
Browse files Browse the repository at this point in the history
…-with-actual-code

Replace code snippet images with actual code 📝
  • Loading branch information
KoditkarVedant authored Jun 3, 2021
2 parents 00e71bd + c7f4923 commit 17a2d70
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,18 @@ dotnet add package Notion.Net
Import and initialize the client using the integration token created above.

![image](https://user-images.githubusercontent.com/18693839/119268863-79925b00-bc12-11eb-92cb-d5a9a8c57fdc.png)
```csharp
var client = new NotionClient(new ClientOptions
{
AuthToken = "<Token>"
});
```

Make A request to any Endpoint. For example you can call below to fetch the paginated list of users.

![image](https://user-images.githubusercontent.com/18693839/119268924-ae9ead80-bc12-11eb-9d1a-925267896d9e.png)
```csharp
var usersList = await client.Users.ListAsync();
```

### Querying a database

Expand Down

0 comments on commit 17a2d70

Please sign in to comment.