Skip to content

Commit 019b7f8

Browse files
Merge pull request #36 from notion-dotnet/bfix/32-add-block-api-in-notion-client
Expose Blocks API in NotionClient
2 parents 228d91f + d98efef commit 019b7f8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Src/Notion.Client/Models/IObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Notion.Client
1212
public interface IObject
1313
{
1414
string Id { get; set; }
15-
15+
1616
[JsonConverter(typeof(StringEnumConverter))]
1717
ObjectType Object { get; }
1818
}

Src/Notion.Client/NotionClient.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ public interface INotionClient
66
IDatabasesClient Databases { get; }
77
IPagesClient Pages { get; }
88
ISearchClient Search { get; }
9+
IBlocksClient Blocks { get; }
910
}
1011

1112
public class NotionClient : INotionClient
@@ -17,11 +18,13 @@ public NotionClient(ClientOptions options)
1718
Databases = new DatabasesClient(restClient);
1819
Pages = new PagesClient(restClient);
1920
Search = new SearchClient(restClient);
21+
Blocks = new BlocksClient(restClient);
2022
}
2123

2224
public IUsersClient Users { get; }
2325
public IDatabasesClient Databases { get; }
2426
public IPagesClient Pages { get; }
2527
public ISearchClient Search { get; }
28+
public IBlocksClient Blocks { get; }
2629
}
2730
}

0 commit comments

Comments
 (0)