Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit f28257e

Browse files
authored
Merge pull request #10 from lohanidamodar/feat-dotnet-getting-started
feat-dotnet-getting-started
2 parents e441662 + bbbd4e7 commit f28257e

File tree

1 file changed

+67
-1
lines changed

1 file changed

+67
-1
lines changed

app/views/docs/getting-started-for-server.phtml

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ $dartVersion = $versions['dart'] ?? '';
5555
<pre class="line-numbers"><code class="prism language-typescript" data-prism>import * as sdk from "https://deno.land/x/appwrite/mod.ts";</code></pre>
5656
</div>
5757
</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>
5868
<li>
5969
<h3>Dart</h3>
6070
<div>
@@ -159,6 +169,20 @@ client
159169
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
160170
.setProject('5df5acd0d48c2') // Your project ID
161171
.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')
162186
;</code></pre>
163187
</div>
164188
</li>
@@ -238,6 +262,20 @@ promise.then(function (response) {
238262
});</code></pre>
239263
</div>
240264
</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>
241279
<li>
242280
<h3>Dart</h3>
243281
<div class="ide margin-top-small" data-lang="dart" data-lang-label="Dart SDK">
@@ -362,6 +400,34 @@ promise.then(function (response) {
362400
});</code></pre>
363401
</div>
364402
</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>
365431
<li>
366432
<h3>Dart</h3>
367433
<div class="ide margin-top-small" data-lang="dart" data-lang-label="Dart SDK">
@@ -389,4 +455,4 @@ res.then((response) {
389455

390456
<h2>Next Steps</h2>
391457

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

Comments
 (0)