Skip to content

Commit abfcc53

Browse files
add Notion mangement client
1 parent 4a7443f commit abfcc53

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Src/Notion.Client/NotionClient.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
namespace Notion.Client
2+
{
3+
public class NotionClient : INotionClient
4+
{
5+
public NotionClient(string authToken)
6+
{
7+
AuthToken = authToken;
8+
Users = new UsersClient(new RestClient(authToken));
9+
}
10+
11+
public string AuthToken { get; }
12+
public IUsersClient Users { get; }
13+
}
14+
15+
public interface INotionClient
16+
{
17+
string AuthToken { get; }
18+
IUsersClient Users { get; }
19+
}
20+
}

0 commit comments

Comments
 (0)