Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 17a2d70

Browse files
Merge pull request #24 from notion-dotnet/replace-code-snippet-images-with-actual-code
Replace code snippet images with actual code πŸ“
2 parents 00e71bd + c7f4923 commit 17a2d70

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,18 @@ dotnet add package Notion.Net
2424
2525
Import and initialize the client using the integration token created above.
2626

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

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

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

3340
### Querying a database
3441

0 commit comments

Comments
(0)

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /