Skip to content

Commit d56f87d

Browse files
committed
feat(version): support 0.12.0
1 parent 81d8453 commit d56f87d

Some content is hidden

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

55 files changed

+1070
-231
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2021 Appwrite (https://appwrite.io) and individual contributors.
1+
Copyright (c) 2022 Appwrite (https://appwrite.io) and individual contributors.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
[![pub package](https://img.shields.io/pub/v/appwrite?style=flat-square)](https://pub.dartlang.org/packages/appwrite)
44
![License](https://img.shields.io/github/license/appwrite/sdk-for-flutter.svg?style=flat-square)
5-
![Version](https://img.shields.io/badge/api%20version-0.11.0-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-0.12.0-blue.svg?style=flat-square)
66
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
77
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
88
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
99

10-
**This SDK is compatible with Appwrite server version 0.11.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-flutter/releases).**
10+
**This SDK is compatible with Appwrite server version 0.12.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-flutter/releases).**
1111

1212
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. Use the Flutter SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
1313

1414

1515

16-
![Appwrite](https://appwrite.io/images/github.png?x=1)
16+
![Appwrite](https://appwrite.io/images/github.png)
1717

1818
## Installation
1919

@@ -196,4 +196,4 @@ This library is auto-generated by Appwrite custom [SDK Generator](https://github
196196

197197
## License
198198

199-
Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.
199+
Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.

docs/examples/account/create-magic-u-r-l-session.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ void main() { // Init SDK
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
1111
Future result = account.createMagicURLSession(
12+
userId: '',
1213
email: 'email@example.com',
1314
);
1415

docs/examples/account/create.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ void main() { // Init SDK
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
1111
Future result = account.create(
12+
userId: '',
1213
email: 'email@example.com',
1314
password: 'password',
1415
);

docs/examples/account/get-logs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ void main() { // Init SDK
88
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
11-
Future result = account.getLogs();
11+
Future result = account.getLogs(
12+
);
1213

1314
result
1415
.then((response) {

docs/examples/account/update-magic-u-r-l-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ void main() { // Init SDK
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
1111
Future result = account.updateMagicURLSession(
12-
userId: '[USER_ID]',
12+
userId: '',
1313
secret: '[SECRET]',
1414
);
1515

docs/examples/database/create-document.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ void main() { // Init SDK
1010
;
1111
Future result = database.createDocument(
1212
collectionId: '[COLLECTION_ID]',
13+
documentId: '',
1314
data: {},
1415
);
1516

docs/examples/storage/create-file.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ void main() { // Init SDK
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
;
1212
Future result = storage.createFile(
13+
fileId: '',
1314
file: await MultipartFile.fromPath('file', './path-to-files/image.jpg', 'image.jpg'),
1415
);
1516

docs/examples/teams/create.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ void main() { // Init SDK
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
1111
Future result = teams.create(
12+
teamId: '',
1213
name: '[NAME]',
1314
);
1415

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import 'package:appwrite/appwrite.dart';
2+
3+
void main() { // Init SDK
4+
Client client = Client();
5+
Teams teams = Teams(client);
6+
7+
client
8+
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setProject('5df5acd0d48c2') // Your project ID
10+
;
11+
Future result = teams.getMembership(
12+
teamId: '[TEAM_ID]',
13+
membershipId: '[MEMBERSHIP_ID]',
14+
);
15+
16+
result
17+
.then((response) {
18+
print(response);
19+
}).catchError((error) {
20+
print(error.response);
21+
});
22+
}

0 commit comments

Comments
 (0)