From 98d7d13f1611fc76e9be2dd99814be4232641cab Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 11 Mar 2021 14:38:44 +0545 Subject: [PATCH] remove other files --- docs/sdks/dart/GETTING_STARTED.md | 30 ---------------- docs/sdks/deno/GETTING_STARTED.md | 59 ------------------------------- 2 files changed, 89 deletions(-) delete mode 100644 docs/sdks/dart/GETTING_STARTED.md delete mode 100644 docs/sdks/deno/GETTING_STARTED.md diff --git a/docs/sdks/dart/GETTING_STARTED.md b/docs/sdks/dart/GETTING_STARTED.md deleted file mode 100644 index 78d7c4972..000000000 --- a/docs/sdks/dart/GETTING_STARTED.md +++ /dev/null @@ -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) \ No newline at end of file diff --git a/docs/sdks/deno/GETTING_STARTED.md b/docs/sdks/deno/GETTING_STARTED.md deleted file mode 100644 index d06f5ff58..000000000 --- a/docs/sdks/deno/GETTING_STARTED.md +++ /dev/null @@ -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) \ No newline at end of file