@@ -55,6 +55,16 @@ $dartVersion = $versions['dart'] ?? '';
55
55
<pre class="line-numbers"><code class="prism language-typescript" data-prism>import * as sdk from "https://deno.land/x/appwrite/mod.ts";</code></pre>
56
56
</div>
57
57
</li>
58
+ <li>
59
+ <h3>.NET</h3>
60
+ <div class="ide margin-top-small" data-lang="bash" data-lang-label="Deno SDK">
61
+ <pre class="line-numbers"><code class="prism language-bash" data-prism># Package Manager
62
+ Install-Package Appwrite
63
+
64
+ # or .NET CLI
65
+ dotnet add package Appwrite</code></pre>
66
+ </div>
67
+ </li>
58
68
<li>
59
69
<h3>Dart</h3>
60
70
<div>
@@ -159,6 +169,20 @@ client
159
169
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
160
170
.setProject('5df5acd0d48c2') // Your project ID
161
171
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
172
+ ;</code></pre>
173
+ </div>
174
+ </li>
175
+ <li>
176
+ <h3>.NET</h3>
177
+ <div class="ide margin-top-small" data-lang="csharp" data-lang-label=".NET SDK">
178
+ <pre class="line-numbers"><code class="prism language-csharp" data-prism>using Appwrite;
179
+
180
+ var client = Client();
181
+
182
+ client
183
+ .setEndpoint('http://[HOSTNAME_OR_IP]/v1') // Make sure your endpoint is accessible
184
+ .setProject('5ff3379a01d25') // Your project ID
185
+ .setKey('cd868c7af8bdc893b4...93b7535db89')
162
186
;</code></pre>
163
187
</div>
164
188
</li>
@@ -238,6 +262,20 @@ promise.then(function (response) {
238
262
});</code></pre>
239
263
</div>
240
264
</li>
265
+ <li>
266
+ <h3>.NET</h3>
267
+ <div class="ide margin-top-small" data-lang="csharp" data-lang-label=".NET SDK">
268
+ <pre class="line-numbers"><code class="prism language-csharp" data-prism>var users = Users(client);
269
+
270
+ try {
271
+ var request = await users.create('
[email protected] ', 'password', 'name');
272
+ var response = await request.Content.ReadAsStringAsync();
273
+ Console.WriteLine(response);
274
+ } catch (AppwriteException e) {
275
+ Console.WriteLine(e.Message);
276
+ }</code></pre>
277
+ </div>
278
+ </li>
241
279
<li>
242
280
<h3>Dart</h3>
243
281
<div class="ide margin-top-small" data-lang="dart" data-lang-label="Dart SDK">
@@ -362,6 +400,34 @@ promise.then(function (response) {
362
400
});</code></pre>
363
401
</div>
364
402
</li>
403
+ <li>
404
+ <li>
405
+ <h3>.NET</h3>
406
+ <div class="ide margin-top-small" data-lang="csharp" data-lang-label=".NET SDK">
407
+ <pre class="line-numbers"><code class="prism language-csharp" data-prism>using Appwrite;
408
+
409
+ static async Task Main(string[] args)
410
+ {
411
+ var client = Client();
412
+
413
+ client
414
+ .setEndpoint('http://[HOSTNAME_OR_IP]/v1') // Make sure your endpoint is accessible
415
+ .setProject('5ff3379a01d25') // Your project ID
416
+ .setKey('cd868c7af8bdc893b4...93b7535db89')
417
+ ;
418
+
419
+ var users = Users(client);
420
+
421
+ try {
422
+ var request = await users.create('
[email protected] ', 'password', 'name');
423
+ var response = await request.Content.ReadAsStringAsync();
424
+ Console.WriteLine(response);
425
+ } catch (AppwriteException e) {
426
+ Console.WriteLine(e.Message);
427
+ }
428
+ }</code></pre>
429
+ </div>
430
+ </li>
365
431
<li>
366
432
<h3>Dart</h3>
367
433
<div class="ide margin-top-small" data-lang="dart" data-lang-label="Dart SDK">
@@ -389,4 +455,4 @@ res.then((response) {
389
455
390
456
<h2>Next Steps</h2>
391
457
392
- <p>Appwrite has many services and tools to help improve your app and speed up your development. The best way to learn how you can take advantage of them is to explore the different API references docs.</p>
458
+ <p>Appwrite has many services and tools to help improve your app and speed up your development. The best way to learn how you can take advantage of them is to explore the different API references docs.</p>
0 commit comments