Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/views/docs/getting-started-for-android.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions app/views/docs/getting-started-for-apple.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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))
Expand Down
2 changes: 2 additions & 0 deletions app/views/docs/getting-started-for-flutter.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ Account account = Account(client);

Response user = await account
.create(
userId: '[USER_ID]',
email: '[email protected]',
password: 'password',
name: 'My Name'
Expand Down Expand Up @@ -197,6 +198,7 @@ Account account = Account(client);

Response user = await account
.create(
userId: '[USER_ID]',
email: '[email protected]',
password: 'password',
name: 'My Name'
Expand Down
34 changes: 17 additions & 17 deletions app/views/docs/getting-started-for-server.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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

client = Client()

Expand Down Expand Up @@ -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);
Expand All @@ -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>
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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>
Expand All @@ -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))
Expand Down Expand Up @@ -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);
Expand All @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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>
Expand All @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions app/views/docs/getting-started-for-web.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down Expand Up @@ -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 => {
Expand Down