1
0
Fork 0
mirror of synced 2024-06-23 08:40:58 +12:00

remove other files

This commit is contained in:
Damodar Lohani 2021-03-11 14:38:44 +05:45
parent 90fc752ffe
commit 98d7d13f16
2 changed files with 0 additions and 89 deletions

View file

@ -1,30 +0,0 @@
## Getting Started
### Initialize & Make API Request
Once you add the dependencies, its extremely easy to get started with the SDK; All you need to do is import the package in your code, set your Appwrite credentials, and start making API calls. Below is a simple example:
```dart
import 'package:dart_appwrite/dart_appwrite.dart';
void main() async {
Client client = Client();
.setEndpoint('http://[HOSTNAME_OR_IP]/v1') // Make sure your endpoint is accessible
.setProject('5ff3379a01d25') // Your project ID
.setKey('cd868c7af8bdc893b4...93b7535db89')
Users users = Users(client);
try {
final response = await users.create(email: email@example.com,password: password, name: name);
print(response.data);
} on AppwriteException catch(e) {
print(e.message);
}
}
```
### Learn more
You can use followng resources to learn more and get help
- [Appwrite Docs](https://appwrite.io/docs)
- [Discord Community](https://appwrite.io/discord)
- [Appwrite Dart Playground](https://github.com/appwrite/playground-for-dart)

View file

@ -1,59 +0,0 @@
## Getting Started
### Init your SDK
Initialize your SDK code with your project ID which can be found in your project settings page and your new API secret Key from previous phase.
```typescript
let client = new sdk.Client();
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
```
### Make your first request
Once your SDK object is set, create any of the Appwrite service project objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the API References section.
```typescript
let users = new sdk.Users(client);
let promise = users.create('email@example.com', 'password');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
```
### Full Example
```typescript
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
let client = new sdk.Client();
let users = new sdk.Users(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = users.create('email@example.com', 'password');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});
```
### Learn more
You can use followng resources to learn more and get help
- [Appwrite Docs](https://appwrite.io/docs)
- [Discord Community](https://appwrite.io/discord)
- [Appwrite Deno Playground](https://github.com/appwrite/playground-for-deno)