We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d48be10 commit 718363dCopy full SHA for 718363d
Src/Notion.Client/UsersClient.cs
@@ -5,6 +5,7 @@ namespace Notion.Client
5
{
6
public interface IUsersClient
7
8
+ Task<User> RetrieveAsync(string userId);
9
Task<PaginatedList<User>> ListAsync();
10
}
11
@@ -17,6 +18,18 @@ public UsersClient(IRestClient client)
17
18
_client = client;
19
20
21
+ public async Task<User> RetrieveAsync(string userId)
22
+ {
23
+ try
24
25
+ return await _client.GetAsync<User>($"users/{userId}");
26
+ }
27
+ catch (Exception e)
28
29
+ return null;
30
31
32
+
33
public async Task<PaginatedList<User>> ListAsync()
34
35
try
0 commit comments