Skip to content

Commit dffac5e

Browse files
committed
First commit
1 parent ef0b45f commit dffac5e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+2911
-25
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Change Log

LICENSE

+6-23
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,12 @@
1-
BSD 3-Clause License
2-
3-
Copyright (c) 2021, Appwrite
1+
Copyright (c) 2019 Appwrite (https://appwrite.io) and individual contributors.
42
All rights reserved.
53

6-
Redistribution and use in source and binary forms, with or without
7-
modification, are permitted provided that the following conditions are met:
4+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
85

9-
1. Redistributions of source code must retain the above copyright notice, this
10-
list of conditions and the following disclaimer.
6+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
117

12-
2. Redistributions in binary form must reproduce the above copyright notice,
13-
this list of conditions and the following disclaimer in the documentation
14-
and/or other materials provided with the distribution.
8+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
159

16-
3. Neither the name of the copyright holder nor the names of its
17-
contributors may be used to endorse or promote products derived from
18-
this software without specific prior written permission.
10+
3. Neither the name Appwrite nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
1911

20-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

+43-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,43 @@
1-
# sdk-for-dotnet
2-
[READ-ONLY] Official Appwrite .NET SDK
1+
# Appwrite .NET SDK
2+
3+
![License](https://img.shields.io/github/license/appwrite/sdk-for-dotnet.svg?v=1)
4+
![Version](https://img.shields.io/badge/api%20version-0.6.2-blue.svg?v=1)
5+
6+
**This SDK is compatible with Appwrite server version 0.6.2. For older versions, please check previous releases.**
7+
8+
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way.
9+
Use the .NET SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools.
10+
For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
11+
12+
13+
14+
![Appwrite](https://appwrite.io/images/github.png)
15+
16+
## Installation
17+
18+
### Maven
19+
Add this to your project's `pom.xml` file:
20+
21+
```xml
22+
<dependencies>
23+
<dependency>
24+
<groupId>com.squareup.okhttp3</groupId>
25+
<artifactId>appwrite</artifactId>
26+
<version>0.0.1</version>
27+
</dependency>
28+
</dependencies>
29+
```
30+
31+
You can install packages from the command line:
32+
33+
```bash
34+
mvn install appwrite
35+
```
36+
37+
## Contribution
38+
39+
This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.
40+
41+
## License
42+
43+
Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.

docs/examples/avatars/get-browser.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Avatars avatars = new Avatars(client);
12+
13+
result = avatars.getBrowser("aa");
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Avatars avatars = new Avatars(client);
12+
13+
result = avatars.getCreditCard("amex");

docs/examples/avatars/get-favicon.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Avatars avatars = new Avatars(client);
12+
13+
result = avatars.getFavicon("https://example.com");

docs/examples/avatars/get-flag.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Avatars avatars = new Avatars(client);
12+
13+
result = avatars.getFlag("af");

docs/examples/avatars/get-image.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Avatars avatars = new Avatars(client);
12+
13+
result = avatars.getImage("https://example.com");

docs/examples/avatars/get-initials.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Avatars avatars = new Avatars(client);
12+
13+
result = avatars.getInitials();

docs/examples/avatars/get-q-r.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Avatars avatars = new Avatars(client);
12+
13+
result = avatars.getQR("[TEXT]");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Database database = new Database(client);
12+
13+
result = database.createCollection("[NAME]", {}, {}, {});
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Database database = new Database(client);
12+
13+
result = database.createDocument("[COLLECTION_ID]", {}, {}, {});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Database database = new Database(client);
12+
13+
result = database.deleteCollection("[COLLECTION_ID]");
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Database database = new Database(client);
12+
13+
result = database.deleteDocument("[COLLECTION_ID]", "[DOCUMENT_ID]");
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Database database = new Database(client);
12+
13+
result = database.getCollection("[COLLECTION_ID]");
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Database database = new Database(client);
12+
13+
result = database.getDocument("[COLLECTION_ID]", "[DOCUMENT_ID]");
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Database database = new Database(client);
12+
13+
result = database.listCollections();
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Database database = new Database(client);
12+
13+
result = database.listDocuments("[COLLECTION_ID]");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Database database = new Database(client);
12+
13+
result = database.updateCollection("[COLLECTION_ID]", "[NAME]", {}, {});
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Database database = new Database(client);
12+
13+
result = database.updateDocument("[COLLECTION_ID]", "[DOCUMENT_ID]", {}, {}, {});
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Health health = new Health(client);
12+
13+
result = health.getAntiVirus();

docs/examples/health/get-cache.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Health health = new Health(client);
12+
13+
result = health.getCache();

docs/examples/health/get-d-b.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Health health = new Health(client);
12+
13+
result = health.getDB();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Health health = new Health(client);
12+
13+
result = health.getQueueCertificates();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use Appwrite;
2+
3+
Client client = new Client();
4+
5+
client
6+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetProject("5df5acd0d48c2") # Your project ID
8+
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") # Your secret API key
9+
;
10+
11+
Health health = new Health(client);
12+
13+
result = health.getQueueFunctions();

0 commit comments

Comments
 (0)