File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,64 @@ Initialize `QuickbaseClient` with your realm hostname and user token for a secur
2929``` csharp
3030var quickbaseClient = new QuickbaseClient (" your_realm_hostname" , " your_user_token" );
3131```
32+ ### Handling Responses 📬
33+ Sending a Query Request
34+ ``` csharp
35+ var query = new QueryBuilder ()
36+ .From (" bck7gp3q2" )
37+ .Select (1 , 2 , 3 )
38+ .Where (" {1.CT.'hello'}" )
39+ .Build ();
40+
41+ var (response , error , isSuccess ) = await quickbaseClient .QueryRecords (query );
42+
43+ if (isSuccess )
44+ {
45+ // Process the response
46+ // response.Data, response.Fields, response.Metadata...
47+ }
48+ else
49+ {
50+ // Handle the error
51+ // error.Message, error.Description...
52+ }
53+ ```
54+
55+ Inserting Records
56+ ``` csharp
57+ var insertRequest = new QuickBaseCommandBuilder ()
58+ // ... configuration for insert request
59+ .BuildInsertOrUpdateRequest ();
60+
61+ var (response , error , isSuccess ) = await quickbaseClient .InsertRecords (insertRequest );
62+
63+ if (isSuccess )
64+ {
65+ // Response handling for successful insert
66+ }
67+ else
68+ {
69+ // Error handling
70+ }
71+ ```
72+
73+ Updating Records
74+ ``` csharp
75+ var updateRequest = new QuickBaseCommandBuilder ()
76+ // ... configuration for update request
77+ .BuildInsertOrUpdateRequest ();
78+
79+ var (response , error , isSuccess ) = await quickbaseClient .UpdateRecords (updateRequest );
80+
81+ if (isSuccess )
82+ {
83+ // Response handling for successful update
84+ }
85+ else
86+ {
87+ // Error handling
88+ }
89+ ```
3290
3391### QuickBaseCommandBuilder Usage 🧩
3492
You can’t perform that action at this time.
0 commit comments