This repository was archived by the owner on Sep 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
update getting started guide #126
Merged
Merged
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,7 +90,7 @@ val client = Client(context) | |
| <div class="ide" data-lang="android" data-lang-label="Android SDK"> | ||
| <pre class="line-numbers"><code class="prism language-kotlin" data-prism>// Register User | ||
| val account = Account(client) | ||
| val response = account.create("[email protected]", "password") | ||
| val response = account.create("[USER_ID]", "[email protected]", "password") | ||
| val json = response.body?.string()</code></pre> | ||
| </div> | ||
|
|
||
|
|
@@ -123,7 +123,7 @@ val client = Client(context) | |
|
|
||
| // Register User | ||
| val account = Account(client) | ||
| val response = account.create("[email protected]", "password") | ||
| val response = account.create("[USER_ID]", "[email protected]", "password") | ||
| val json = response.body?.string() | ||
|
|
||
| // Subscribe to files channel | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -121,7 +121,7 @@ let client = Client() | |
| <div class="ide" data-lang="swift" data-lang-label="Apple SDK"> | ||
| <pre class="line-numbers"><code class="prism language-swift" data-prism>// Register User | ||
| let account = Account(client: client) | ||
| account.create(email: "[email protected]", password: "password") { result in | ||
| account.create(userId: "[USER_ID]", email: "[email protected]", password: "password") { result in | ||
| switch result { | ||
| case .failure(let error): print(error.message) | ||
| case .success(let user): print(String(describing: user)) | ||
|
|
@@ -159,7 +159,7 @@ let client = Client() | |
|
|
||
| // Register User | ||
| let account = Account(client: client) | ||
| account.create(email: "[email protected]", password: "password") { result in | ||
| account.create(userId: "[USER_ID]", email: "[email protected]", password: "password") { result in | ||
| switch result { | ||
| case .failure(let error): print(error.message) | ||
| case .success(let user): print(String(describing: user)) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -155,6 +155,7 @@ Account account = Account(client); | |
|
|
||
| Response user = await account | ||
| .create( | ||
| userId: '[USER_ID]', | ||
| email: '[email protected]', | ||
| password: 'password', | ||
| name: 'My Name' | ||
|
|
@@ -197,6 +198,7 @@ Account account = Account(client); | |
|
|
||
| Response user = await account | ||
| .create( | ||
| userId: '[USER_ID]', | ||
| email: '[email protected]', | ||
| password: 'password', | ||
| name: 'My Name' | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ foreach($platforms['server']['languages'] ?? [] as $lang) { | |
| } | ||
|
|
||
| $kotlinVersion = $versions['kotlin'] ?? ''; | ||
| $swiftVersion = $versions['swift'] ?? ''; | ||
| ?> | ||
|
|
||
| <p>Appwrite is a development platform providing you easy yet powerful API and management console to get your next project up and running quickly.</p> | ||
|
|
@@ -85,7 +86,7 @@ $kotlinVersion = $versions['kotlin'] ?? ''; | |
| <div class="ide margin-top-small" data-lang="swift" data-lang-label="Swift"> | ||
| <pre class="line-numbers"><code class="prism language-swift" data-prism>dependencies: [ | ||
| // ... | ||
| .package(url: "https://github.com/appwrite/sdk-for-swift.git", from: "0.0.1") | ||
| .package(url: "https://github.com/appwrite/sdk-for-swift.git", from: "?php $this->escape($swiftVersion); ?>") | ||
| // ... | ||
| ]</code></pre> | ||
| </div> | ||
|
|
@@ -318,7 +319,6 @@ $client | |
| <h3>Python</h3> | ||
| <div class="ide margin-top-small" data-lang="python" data-lang-label="Python SDK"> | ||
| <pre class="line-numbers"><code class="prism language-python" data-prism>from appwrite.client import Client | ||
| from appwrite.services.users import Users | ||
Meldiron marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| client = Client() | ||
|
|
||
|
|
@@ -406,7 +406,7 @@ client | |
| <div class="ide margin-top-small" data-lang="nodejs" data-lang-label="Node.js SDK"> | ||
| <pre class="line-numbers"><code class="prism language-javascript" data-prism>const users = new sdk.Users(client); | ||
|
|
||
| let promise = users.create('[email protected]', 'password'); | ||
| let promise = users.create('[USER_ID]', '[email protected]', 'password'); | ||
|
|
||
| promise.then(function (response) { | ||
| console.log(response); | ||
|
|
@@ -429,15 +429,15 @@ $result = $users->create('[email protected]', 'password');</code></pre> | |
| <div class="ide margin-top-small" data-lang="python" data-lang-label="Python SDK"> | ||
| <pre class="line-numbers"><code class="prism language-python" data-prism>users = Users(client) | ||
|
|
||
| result = users.create('[email protected]', 'password')</code></pre> | ||
| result = users.create('[USER_ID]', '[email protected]', 'password')</code></pre> | ||
| </div> | ||
| </li> | ||
| <li> | ||
| <h3>Ruby</h3> | ||
| <div class="ide margin-top-small" data-lang="ruby" data-lang-label="Ruby SDK"> | ||
| <pre class="line-numbers"><code class="prism language-ruby" data-prism>users = Appwrite::Users.new(client); | ||
|
|
||
| response = users.create(email: '[email protected]', password: 'password'); | ||
| response = users.create(userId: '[USER_ID]', email: '[email protected]', password: 'password'); | ||
|
|
||
| puts response</code></pre> | ||
| </div> | ||
|
|
@@ -447,7 +447,7 @@ puts response</code></pre> | |
| <div class="ide margin-top-small" data-lang="typescript" data-lang-label="Deno SDK"> | ||
| <pre class="line-numbers"><code class="prism language-typescript" data-prism>const users = new sdk.Users(client); | ||
|
|
||
| let promise = users.create('[email protected]', 'password'); | ||
| let promise = users.create('[USER_ID]', '[email protected]', 'password'); | ||
|
|
||
| promise.then(function (response) { | ||
| console.log(response); | ||
|
|
@@ -461,7 +461,7 @@ promise.then(function (response) { | |
| <div class="ide margin-top-small" data-lang="dart" data-lang-label="Dart SDK"> | ||
| <pre class="line-numbers"><code class="prism language-dart" data-prism>final users = Users(client); | ||
|
|
||
| final res = users.create('[email protected]', 'password'); | ||
| final res = users.create(userId: '[USER_ID]', '[email protected]', 'password'); | ||
|
|
||
| res.then((response) { | ||
| print(response); | ||
|
|
@@ -477,7 +477,7 @@ res.then((response) { | |
|
|
||
| val users = Users(client); | ||
|
|
||
| val res = users.create(email = '[email protected]', password = 'password'); | ||
| val res = users.create(userId = '[USER_ID]', email = '[email protected]', password = 'password'); | ||
| println(res.body?.string())</code></pre> | ||
| </div> | ||
| </li> | ||
|
|
@@ -488,7 +488,7 @@ println(res.body?.string())</code></pre> | |
|
|
||
| let users = Users(client: client) | ||
|
|
||
| users.create(email: "[email protected]", password: "password") { result in | ||
| users.create(userId: "[USER_ID]", email: "[email protected]", password: "password") { result in | ||
| switch result { | ||
| case .failure(let error): print(error.message) | ||
| case .success(let user): print(String(describing: user)) | ||
|
|
@@ -516,7 +516,7 @@ client | |
| ; | ||
|
|
||
| const users = new sdk.Users(client); | ||
| let promise = users.create('[email protected]', 'password'); | ||
| let promise = users.create('[USER_ID]', '[email protected]', 'password'); | ||
|
|
||
| promise.then(function (response) { | ||
| console.log(response); | ||
|
|
@@ -542,7 +542,7 @@ $client | |
|
|
||
| $users = new Users($client); | ||
|
|
||
| $result = $users->create('[email protected]', 'password');</code></pre> | ||
| $result = $users->create('[USER_ID]', '[email protected]', 'password');</code></pre> | ||
| </div> | ||
| </li> | ||
| <li> | ||
|
|
@@ -561,7 +561,7 @@ client = Client() | |
|
|
||
| users = Users(client) | ||
|
|
||
| result = users.create('[email protected]', 'password')</code></pre> | ||
| result = users.create('[USER_ID]', '[email protected]', 'password')</code></pre> | ||
| </div> | ||
| </li> | ||
| <li> | ||
|
|
@@ -579,7 +579,7 @@ client | |
|
|
||
| users = Appwrite::Users.new(client); | ||
|
|
||
| response = users.create(email: '[email protected]', password: 'password'); | ||
| response = users.create(userId: '[USER_ID]', email: '[email protected]', password: 'password'); | ||
|
|
||
| puts response</code></pre> | ||
| </div> | ||
|
|
@@ -598,7 +598,7 @@ client | |
| .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key | ||
| ; | ||
|
|
||
| let promise = users.create('[email protected]', 'password'); | ||
| let promise = users.create('[USER_ID]', '[email protected]', 'password'); | ||
|
|
||
| promise.then(function (response) { | ||
| console.log(response); | ||
|
|
@@ -622,7 +622,7 @@ void main() { | |
| .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key | ||
| ; | ||
|
|
||
| final res = users.create('[email protected]', 'password'); | ||
| final res = users.create('[USER_ID]', '[email protected]', 'password'); | ||
|
|
||
| res.then((response) { | ||
| print(response); | ||
|
|
@@ -647,7 +647,7 @@ client | |
|
|
||
| val users = Users(client); | ||
|
|
||
| val res = users.create('[email protected]', 'password'); | ||
| val res = users.create('[USER_ID]', '[email protected]', 'password'); | ||
|
|
||
| println(res.body?.string())</code></pre> | ||
| </div> | ||
|
|
@@ -666,7 +666,7 @@ client | |
|
|
||
| let users = Users(client: client) | ||
|
|
||
| users.create(email: "[email protected]", password: "password") { result in | ||
| users.create(userId: "[USER_ID]", email: "[email protected]", password: "password") { result in | ||
| switch result { | ||
| case .failure(let error): print(error.message) | ||
| case .success(let user): print(String(describing: user)) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -84,7 +84,7 @@ appwrite | |
| <div class="ide" data-lang="javascript" data-lang-label="Web SDK"> | ||
| <pre class="line-numbers"><code class="prism language-javascript" data-prism>// Register User | ||
| appwrite | ||
| .account.create('[email protected]', 'password', 'Jane Doe') | ||
| .account.create('[USER_ID]', '[email protected]', 'password', 'Jane Doe') | ||
| .then(response => { | ||
| console.log(response); | ||
| }, error => { | ||
|
|
@@ -119,7 +119,7 @@ appwrite | |
|
|
||
| // Register User | ||
| appwrite | ||
| .account.create('[email protected]', 'password', 'Jane Doe') | ||
| .account.create('[USER_ID]', '[email protected]', 'password', 'Jane Doe') | ||
| .then(response => { | ||
| console.log(response); | ||
| }, error => { | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.