diff --git a/docs/examples/1.2.x/client-android/java/account/create-anonymous-session.md b/docs/examples/1.2.x/client-android/java/account/create-anonymous-session.md deleted file mode 100644 index b1a2a25828..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/create-anonymous-session.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.createAnonymousSession(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/create-email-session.md b/docs/examples/1.2.x/client-android/java/account/create-email-session.md deleted file mode 100644 index 055b828e9e..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/create-email-session.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.createEmailSession( - "email@example.com", - "password" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/create-j-w-t.md b/docs/examples/1.2.x/client-android/java/account/create-j-w-t.md deleted file mode 100644 index 3a97c334ce..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/create-j-w-t.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.createJWT(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/client-android/java/account/create-magic-u-r-l-session.md deleted file mode 100644 index 6c9fa7c662..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/create-magic-u-r-l-session.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.createMagicURLSession( - "[USER_ID]", - "email@example.com", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/create-o-auth2session.md b/docs/examples/1.2.x/client-android/java/account/create-o-auth2session.md deleted file mode 100644 index e4cfb8d471..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/create-o-auth2session.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.createOAuth2Session( - this, - "amazon", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/create-phone-session.md b/docs/examples/1.2.x/client-android/java/account/create-phone-session.md deleted file mode 100644 index 78be92216c..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/create-phone-session.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.createPhoneSession( - "[USER_ID]", - "" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/create-phone-verification.md b/docs/examples/1.2.x/client-android/java/account/create-phone-verification.md deleted file mode 100644 index 401b942888..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/create-phone-verification.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.createPhoneVerification(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/create-recovery.md b/docs/examples/1.2.x/client-android/java/account/create-recovery.md deleted file mode 100644 index 459213bce9..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/create-recovery.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.createRecovery( - "email@example.com", - "https://example.com" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/create-verification.md b/docs/examples/1.2.x/client-android/java/account/create-verification.md deleted file mode 100644 index b8b1c206bf..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/create-verification.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.createVerification( - "https://example.com" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/create.md b/docs/examples/1.2.x/client-android/java/account/create.md deleted file mode 100644 index 11a5168d60..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/create.md +++ /dev/null @@ -1,50 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.create( - "[USER_ID]", - "email@example.com", - "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/delete-session.md b/docs/examples/1.2.x/client-android/java/account/delete-session.md deleted file mode 100644 index b3549c708b..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/delete-session.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.deleteSession( - "[SESSION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/delete-sessions.md b/docs/examples/1.2.x/client-android/java/account/delete-sessions.md deleted file mode 100644 index 153c323b56..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/delete-sessions.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.deleteSessions(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/get-prefs.md b/docs/examples/1.2.x/client-android/java/account/get-prefs.md deleted file mode 100644 index 25ab6c3951..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/get-prefs.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.getPrefs(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/get-session.md b/docs/examples/1.2.x/client-android/java/account/get-session.md deleted file mode 100644 index 8d4c95aaf2..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/get-session.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.getSession( - "[SESSION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/get.md b/docs/examples/1.2.x/client-android/java/account/get.md deleted file mode 100644 index 146a5e501d..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/get.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.get(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/list-logs.md b/docs/examples/1.2.x/client-android/java/account/list-logs.md deleted file mode 100644 index f33c413938..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/list-logs.md +++ /dev/null @@ -1,47 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.listLogs( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/list-sessions.md b/docs/examples/1.2.x/client-android/java/account/list-sessions.md deleted file mode 100644 index 5933f0399c..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/list-sessions.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.listSessions(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/update-email.md b/docs/examples/1.2.x/client-android/java/account/update-email.md deleted file mode 100644 index 56a1bc0206..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/update-email.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updateEmail( - "email@example.com", - "password" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/client-android/java/account/update-magic-u-r-l-session.md deleted file mode 100644 index d0734e18ee..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/update-magic-u-r-l-session.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updateMagicURLSession( - "[USER_ID]", - "[SECRET]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/update-name.md b/docs/examples/1.2.x/client-android/java/account/update-name.md deleted file mode 100644 index 9842a2216e..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/update-name.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updateName( - "[NAME]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/update-password.md b/docs/examples/1.2.x/client-android/java/account/update-password.md deleted file mode 100644 index 468bdc21da..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/update-password.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updatePassword( - "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/update-phone-session.md b/docs/examples/1.2.x/client-android/java/account/update-phone-session.md deleted file mode 100644 index f8d35c734c..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/update-phone-session.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updatePhoneSession( - "[USER_ID]", - "[SECRET]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/update-phone-verification.md b/docs/examples/1.2.x/client-android/java/account/update-phone-verification.md deleted file mode 100644 index 7aec064194..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/update-phone-verification.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updatePhoneVerification( - "[USER_ID]", - "[SECRET]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/update-phone.md b/docs/examples/1.2.x/client-android/java/account/update-phone.md deleted file mode 100644 index 37c54c8c74..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/update-phone.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updatePhone( - "", - "password" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/update-prefs.md b/docs/examples/1.2.x/client-android/java/account/update-prefs.md deleted file mode 100644 index 9f94b8fe59..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/update-prefs.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updatePrefs( - mapOf( "a" to "b" ) - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/update-recovery.md b/docs/examples/1.2.x/client-android/java/account/update-recovery.md deleted file mode 100644 index bfcc89ed19..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/update-recovery.md +++ /dev/null @@ -1,51 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updateRecovery( - "[USER_ID]", - "[SECRET]", - "password", - "password" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/update-session.md b/docs/examples/1.2.x/client-android/java/account/update-session.md deleted file mode 100644 index 80aff11b98..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/update-session.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updateSession( - "[SESSION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/update-status.md b/docs/examples/1.2.x/client-android/java/account/update-status.md deleted file mode 100644 index 0ef6a6e1f8..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/update-status.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updateStatus(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/account/update-verification.md b/docs/examples/1.2.x/client-android/java/account/update-verification.md deleted file mode 100644 index 8cf8d67363..0000000000 --- a/docs/examples/1.2.x/client-android/java/account/update-verification.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Account account = new Account(client); - - account.updateVerification( - "[USER_ID]", - "[SECRET]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-browser.md b/docs/examples/1.2.x/client-android/java/avatars/get-browser.md deleted file mode 100644 index fa88749dff..0000000000 --- a/docs/examples/1.2.x/client-android/java/avatars/get-browser.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Avatars avatars = new Avatars(client); - - avatars.getBrowser( - "aa", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-credit-card.md b/docs/examples/1.2.x/client-android/java/avatars/get-credit-card.md deleted file mode 100644 index 2ddda86cce..0000000000 --- a/docs/examples/1.2.x/client-android/java/avatars/get-credit-card.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Avatars avatars = new Avatars(client); - - avatars.getCreditCard( - "amex", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-favicon.md b/docs/examples/1.2.x/client-android/java/avatars/get-favicon.md deleted file mode 100644 index 39c1432260..0000000000 --- a/docs/examples/1.2.x/client-android/java/avatars/get-favicon.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Avatars avatars = new Avatars(client); - - avatars.getFavicon( - "https://example.com" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-flag.md b/docs/examples/1.2.x/client-android/java/avatars/get-flag.md deleted file mode 100644 index 77bf3b1b1f..0000000000 --- a/docs/examples/1.2.x/client-android/java/avatars/get-flag.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Avatars avatars = new Avatars(client); - - avatars.getFlag( - "af", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-image.md b/docs/examples/1.2.x/client-android/java/avatars/get-image.md deleted file mode 100644 index 69371da6d3..0000000000 --- a/docs/examples/1.2.x/client-android/java/avatars/get-image.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Avatars avatars = new Avatars(client); - - avatars.getImage( - "https://example.com", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-initials.md b/docs/examples/1.2.x/client-android/java/avatars/get-initials.md deleted file mode 100644 index eea5669c2c..0000000000 --- a/docs/examples/1.2.x/client-android/java/avatars/get-initials.md +++ /dev/null @@ -1,47 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Avatars avatars = new Avatars(client); - - avatars.getInitials( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-q-r.md b/docs/examples/1.2.x/client-android/java/avatars/get-q-r.md deleted file mode 100644 index e2c48cdded..0000000000 --- a/docs/examples/1.2.x/client-android/java/avatars/get-q-r.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Avatars avatars = new Avatars(client); - - avatars.getQR( - "[TEXT]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/databases/create-document.md b/docs/examples/1.2.x/client-android/java/databases/create-document.md deleted file mode 100644 index 7fc322b8ca..0000000000 --- a/docs/examples/1.2.x/client-android/java/databases/create-document.md +++ /dev/null @@ -1,51 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Databases - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Databases databases = new Databases(client); - - databases.createDocument( - "[DATABASE_ID]", - "[COLLECTION_ID]", - "[DOCUMENT_ID]", - mapOf( "a" to "b" ), - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/databases/delete-document.md b/docs/examples/1.2.x/client-android/java/databases/delete-document.md deleted file mode 100644 index f42a09b498..0000000000 --- a/docs/examples/1.2.x/client-android/java/databases/delete-document.md +++ /dev/null @@ -1,50 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Databases - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Databases databases = new Databases(client); - - databases.deleteDocument( - "[DATABASE_ID]", - "[COLLECTION_ID]", - "[DOCUMENT_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/databases/get-document.md b/docs/examples/1.2.x/client-android/java/databases/get-document.md deleted file mode 100644 index f1a4d449b4..0000000000 --- a/docs/examples/1.2.x/client-android/java/databases/get-document.md +++ /dev/null @@ -1,50 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Databases - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Databases databases = new Databases(client); - - databases.getDocument( - "[DATABASE_ID]", - "[COLLECTION_ID]", - "[DOCUMENT_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/databases/list-documents.md b/docs/examples/1.2.x/client-android/java/databases/list-documents.md deleted file mode 100644 index 93d73336ec..0000000000 --- a/docs/examples/1.2.x/client-android/java/databases/list-documents.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Databases - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Databases databases = new Databases(client); - - databases.listDocuments( - "[DATABASE_ID]", - "[COLLECTION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/databases/update-document.md b/docs/examples/1.2.x/client-android/java/databases/update-document.md deleted file mode 100644 index 81e55d48f1..0000000000 --- a/docs/examples/1.2.x/client-android/java/databases/update-document.md +++ /dev/null @@ -1,50 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Databases - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Databases databases = new Databases(client); - - databases.updateDocument( - "[DATABASE_ID]", - "[COLLECTION_ID]", - "[DOCUMENT_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/functions/create-execution.md b/docs/examples/1.2.x/client-android/java/functions/create-execution.md deleted file mode 100644 index ea30faddf3..0000000000 --- a/docs/examples/1.2.x/client-android/java/functions/create-execution.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Functions - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Functions functions = new Functions(client); - - functions.createExecution( - "[FUNCTION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/functions/get-execution.md b/docs/examples/1.2.x/client-android/java/functions/get-execution.md deleted file mode 100644 index 2f4e57edce..0000000000 --- a/docs/examples/1.2.x/client-android/java/functions/get-execution.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Functions - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Functions functions = new Functions(client); - - functions.getExecution( - "[FUNCTION_ID]", - "[EXECUTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/functions/list-executions.md b/docs/examples/1.2.x/client-android/java/functions/list-executions.md deleted file mode 100644 index 68f767db9c..0000000000 --- a/docs/examples/1.2.x/client-android/java/functions/list-executions.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Functions - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Functions functions = new Functions(client); - - functions.listExecutions( - "[FUNCTION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/graphql/get.md b/docs/examples/1.2.x/client-android/java/graphql/get.md deleted file mode 100644 index 6a93979fa2..0000000000 --- a/docs/examples/1.2.x/client-android/java/graphql/get.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Graphql - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Graphql graphql = new Graphql(client); - - graphql.get( - "[QUERY]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/graphql/post.md b/docs/examples/1.2.x/client-android/java/graphql/post.md deleted file mode 100644 index 5fca39735a..0000000000 --- a/docs/examples/1.2.x/client-android/java/graphql/post.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Graphql - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Graphql graphql = new Graphql(client); - - graphql.post( - mapOf( "a" to "b" ) - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/locale/get.md b/docs/examples/1.2.x/client-android/java/locale/get.md deleted file mode 100644 index 417fc16f23..0000000000 --- a/docs/examples/1.2.x/client-android/java/locale/get.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Locale locale = new Locale(client); - - locale.get(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/locale/list-continents.md b/docs/examples/1.2.x/client-android/java/locale/list-continents.md deleted file mode 100644 index 970f066d51..0000000000 --- a/docs/examples/1.2.x/client-android/java/locale/list-continents.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Locale locale = new Locale(client); - - locale.listContinents(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/locale/list-countries-e-u.md b/docs/examples/1.2.x/client-android/java/locale/list-countries-e-u.md deleted file mode 100644 index b2d0b29b6a..0000000000 --- a/docs/examples/1.2.x/client-android/java/locale/list-countries-e-u.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Locale locale = new Locale(client); - - locale.listCountriesEU(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/locale/list-countries-phones.md b/docs/examples/1.2.x/client-android/java/locale/list-countries-phones.md deleted file mode 100644 index ed4d1f4f84..0000000000 --- a/docs/examples/1.2.x/client-android/java/locale/list-countries-phones.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Locale locale = new Locale(client); - - locale.listCountriesPhones(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/locale/list-countries.md b/docs/examples/1.2.x/client-android/java/locale/list-countries.md deleted file mode 100644 index cb4000f464..0000000000 --- a/docs/examples/1.2.x/client-android/java/locale/list-countries.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Locale locale = new Locale(client); - - locale.listCountries(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/locale/list-currencies.md b/docs/examples/1.2.x/client-android/java/locale/list-currencies.md deleted file mode 100644 index 5423698276..0000000000 --- a/docs/examples/1.2.x/client-android/java/locale/list-currencies.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Locale locale = new Locale(client); - - locale.listCurrencies(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/locale/list-languages.md b/docs/examples/1.2.x/client-android/java/locale/list-languages.md deleted file mode 100644 index 158c0e5722..0000000000 --- a/docs/examples/1.2.x/client-android/java/locale/list-languages.md +++ /dev/null @@ -1,46 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Locale locale = new Locale(client); - - locale.listLanguages(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/storage/create-file.md b/docs/examples/1.2.x/client-android/java/storage/create-file.md deleted file mode 100644 index 32e0fd09f2..0000000000 --- a/docs/examples/1.2.x/client-android/java/storage/create-file.md +++ /dev/null @@ -1,51 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.models.InputFile -import io.appwrite.services.Storage - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Storage storage = new Storage(client); - - storage.createFile( - "[BUCKET_ID]", - "[FILE_ID]", - InputFile.fromPath("file.png"), - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/storage/delete-file.md b/docs/examples/1.2.x/client-android/java/storage/delete-file.md deleted file mode 100644 index 585593a8cb..0000000000 --- a/docs/examples/1.2.x/client-android/java/storage/delete-file.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Storage storage = new Storage(client); - - storage.deleteFile( - "[BUCKET_ID]", - "[FILE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/storage/get-file-download.md b/docs/examples/1.2.x/client-android/java/storage/get-file-download.md deleted file mode 100644 index b16224804a..0000000000 --- a/docs/examples/1.2.x/client-android/java/storage/get-file-download.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Storage storage = new Storage(client); - - storage.getFileDownload( - "[BUCKET_ID]", - "[FILE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/storage/get-file-preview.md b/docs/examples/1.2.x/client-android/java/storage/get-file-preview.md deleted file mode 100644 index 583c1a0a3c..0000000000 --- a/docs/examples/1.2.x/client-android/java/storage/get-file-preview.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Storage storage = new Storage(client); - - storage.getFilePreview( - "[BUCKET_ID]", - "[FILE_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/storage/get-file-view.md b/docs/examples/1.2.x/client-android/java/storage/get-file-view.md deleted file mode 100644 index 21a5074aca..0000000000 --- a/docs/examples/1.2.x/client-android/java/storage/get-file-view.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Storage storage = new Storage(client); - - storage.getFileView( - "[BUCKET_ID]", - "[FILE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/storage/get-file.md b/docs/examples/1.2.x/client-android/java/storage/get-file.md deleted file mode 100644 index 61740a9a46..0000000000 --- a/docs/examples/1.2.x/client-android/java/storage/get-file.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Storage storage = new Storage(client); - - storage.getFile( - "[BUCKET_ID]", - "[FILE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/storage/list-files.md b/docs/examples/1.2.x/client-android/java/storage/list-files.md deleted file mode 100644 index a7ea06ec5b..0000000000 --- a/docs/examples/1.2.x/client-android/java/storage/list-files.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Storage storage = new Storage(client); - - storage.listFiles( - "[BUCKET_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/storage/update-file.md b/docs/examples/1.2.x/client-android/java/storage/update-file.md deleted file mode 100644 index b3e8e904ef..0000000000 --- a/docs/examples/1.2.x/client-android/java/storage/update-file.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Storage storage = new Storage(client); - - storage.updateFile( - "[BUCKET_ID]", - "[FILE_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/teams/create-membership.md b/docs/examples/1.2.x/client-android/java/teams/create-membership.md deleted file mode 100644 index f4d96de575..0000000000 --- a/docs/examples/1.2.x/client-android/java/teams/create-membership.md +++ /dev/null @@ -1,51 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.createMembership( - "[TEAM_ID]", - "email@example.com", - listOf(), - "https://example.com", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/teams/create.md b/docs/examples/1.2.x/client-android/java/teams/create.md deleted file mode 100644 index 3723b30b03..0000000000 --- a/docs/examples/1.2.x/client-android/java/teams/create.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.create( - "[TEAM_ID]", - "[NAME]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/teams/delete-membership.md b/docs/examples/1.2.x/client-android/java/teams/delete-membership.md deleted file mode 100644 index 98cb29ac75..0000000000 --- a/docs/examples/1.2.x/client-android/java/teams/delete-membership.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.deleteMembership( - "[TEAM_ID]", - "[MEMBERSHIP_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/teams/delete.md b/docs/examples/1.2.x/client-android/java/teams/delete.md deleted file mode 100644 index 828b457217..0000000000 --- a/docs/examples/1.2.x/client-android/java/teams/delete.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.delete( - "[TEAM_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/teams/get-membership.md b/docs/examples/1.2.x/client-android/java/teams/get-membership.md deleted file mode 100644 index 87c0160bf1..0000000000 --- a/docs/examples/1.2.x/client-android/java/teams/get-membership.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.getMembership( - "[TEAM_ID]", - "[MEMBERSHIP_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/teams/get.md b/docs/examples/1.2.x/client-android/java/teams/get.md deleted file mode 100644 index 53ba33c4ca..0000000000 --- a/docs/examples/1.2.x/client-android/java/teams/get.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.get( - "[TEAM_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/teams/list-memberships.md b/docs/examples/1.2.x/client-android/java/teams/list-memberships.md deleted file mode 100644 index c53493d954..0000000000 --- a/docs/examples/1.2.x/client-android/java/teams/list-memberships.md +++ /dev/null @@ -1,48 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.listMemberships( - "[TEAM_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/teams/list.md b/docs/examples/1.2.x/client-android/java/teams/list.md deleted file mode 100644 index 61c2aa3f8e..0000000000 --- a/docs/examples/1.2.x/client-android/java/teams/list.md +++ /dev/null @@ -1,47 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.list( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/teams/update-membership-roles.md b/docs/examples/1.2.x/client-android/java/teams/update-membership-roles.md deleted file mode 100644 index ef6c67307e..0000000000 --- a/docs/examples/1.2.x/client-android/java/teams/update-membership-roles.md +++ /dev/null @@ -1,50 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.updateMembershipRoles( - "[TEAM_ID]", - "[MEMBERSHIP_ID]", - listOf() - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/teams/update-membership-status.md b/docs/examples/1.2.x/client-android/java/teams/update-membership-status.md deleted file mode 100644 index 447d0da2c9..0000000000 --- a/docs/examples/1.2.x/client-android/java/teams/update-membership-status.md +++ /dev/null @@ -1,51 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.updateMembershipStatus( - "[TEAM_ID]", - "[MEMBERSHIP_ID]", - "[USER_ID]", - "[SECRET]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/java/teams/update.md b/docs/examples/1.2.x/client-android/java/teams/update.md deleted file mode 100644 index b4df429a07..0000000000 --- a/docs/examples/1.2.x/client-android/java/teams/update.md +++ /dev/null @@ -1,49 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - Client client = new Client(getApplicationContext()) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID - - Teams teams = new Teams(client); - - teams.update( - "[TEAM_ID]", - "[NAME]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - json = response.body().string(); - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-anonymous-session.md b/docs/examples/1.2.x/client-android/kotlin/account/create-anonymous-session.md deleted file mode 100644 index 5fa06994fb..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-anonymous-session.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.createAnonymousSession() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-email-session.md b/docs/examples/1.2.x/client-android/kotlin/account/create-email-session.md deleted file mode 100644 index 5dcec231b1..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-email-session.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.createEmailSession( - email = "email@example.com", - password = "password" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-j-w-t.md b/docs/examples/1.2.x/client-android/kotlin/account/create-j-w-t.md deleted file mode 100644 index 212838b7fd..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-j-w-t.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.createJWT() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/client-android/kotlin/account/create-magic-u-r-l-session.md deleted file mode 100644 index 15fa1c7a9f..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-magic-u-r-l-session.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.createMagicURLSession( - userId = "[USER_ID]", - email = "email@example.com", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-o-auth2session.md b/docs/examples/1.2.x/client-android/kotlin/account/create-o-auth2session.md deleted file mode 100644 index baf993069a..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-o-auth2session.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - account.createOAuth2Session( - activity = this@MainActivity, - provider = "amazon", - ) - - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-phone-session.md b/docs/examples/1.2.x/client-android/kotlin/account/create-phone-session.md deleted file mode 100644 index 2df83ad8bc..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-phone-session.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.createPhoneSession( - userId = "[USER_ID]", - phone = "" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-phone-verification.md b/docs/examples/1.2.x/client-android/kotlin/account/create-phone-verification.md deleted file mode 100644 index ab0eccfb54..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-phone-verification.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.createPhoneVerification() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-recovery.md b/docs/examples/1.2.x/client-android/kotlin/account/create-recovery.md deleted file mode 100644 index 2c1e7597b9..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-recovery.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.createRecovery( - email = "email@example.com", - url = "https://example.com" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-verification.md b/docs/examples/1.2.x/client-android/kotlin/account/create-verification.md deleted file mode 100644 index 1ebddee5cf..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-verification.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.createVerification( - url = "https://example.com" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create.md b/docs/examples/1.2.x/client-android/kotlin/account/create.md deleted file mode 100644 index ab2534f1db..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/create.md +++ /dev/null @@ -1,28 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.create( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/delete-session.md b/docs/examples/1.2.x/client-android/kotlin/account/delete-session.md deleted file mode 100644 index e670623490..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/delete-session.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.deleteSession( - sessionId = "[SESSION_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/delete-sessions.md b/docs/examples/1.2.x/client-android/kotlin/account/delete-sessions.md deleted file mode 100644 index ec30efdb8f..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/delete-sessions.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.deleteSessions() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/get-prefs.md b/docs/examples/1.2.x/client-android/kotlin/account/get-prefs.md deleted file mode 100644 index 9378cd2456..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/get-prefs.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.getPrefs() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/get-session.md b/docs/examples/1.2.x/client-android/kotlin/account/get-session.md deleted file mode 100644 index 45f00b69fc..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/get-session.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.getSession( - sessionId = "[SESSION_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/get.md b/docs/examples/1.2.x/client-android/kotlin/account/get.md deleted file mode 100644 index c4c81a20aa..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/get.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.get() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/list-logs.md b/docs/examples/1.2.x/client-android/kotlin/account/list-logs.md deleted file mode 100644 index 397906b921..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/list-logs.md +++ /dev/null @@ -1,25 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.listLogs( - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/list-sessions.md b/docs/examples/1.2.x/client-android/kotlin/account/list-sessions.md deleted file mode 100644 index 0a0bc73ebc..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/list-sessions.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.listSessions() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-email.md b/docs/examples/1.2.x/client-android/kotlin/account/update-email.md deleted file mode 100644 index a9ec88b8a4..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-email.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updateEmail( - email = "email@example.com", - password = "password" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/client-android/kotlin/account/update-magic-u-r-l-session.md deleted file mode 100644 index 3fe1b7c26e..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-magic-u-r-l-session.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updateMagicURLSession( - userId = "[USER_ID]", - secret = "[SECRET]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-name.md b/docs/examples/1.2.x/client-android/kotlin/account/update-name.md deleted file mode 100644 index ce9d8a368f..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-name.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updateName( - name = "[NAME]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-password.md b/docs/examples/1.2.x/client-android/kotlin/account/update-password.md deleted file mode 100644 index edee78eab9..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-password.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updatePassword( - password = "password", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-phone-session.md b/docs/examples/1.2.x/client-android/kotlin/account/update-phone-session.md deleted file mode 100644 index c981991720..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-phone-session.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updatePhoneSession( - userId = "[USER_ID]", - secret = "[SECRET]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-phone-verification.md b/docs/examples/1.2.x/client-android/kotlin/account/update-phone-verification.md deleted file mode 100644 index aa5eea3425..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-phone-verification.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updatePhoneVerification( - userId = "[USER_ID]", - secret = "[SECRET]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-phone.md b/docs/examples/1.2.x/client-android/kotlin/account/update-phone.md deleted file mode 100644 index 8ffef51a21..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-phone.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updatePhone( - phone = "", - password = "password" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.2.x/client-android/kotlin/account/update-prefs.md deleted file mode 100644 index 3059bc8196..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-prefs.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updatePrefs( - prefs = mapOf( "a" to "b" ) - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-recovery.md b/docs/examples/1.2.x/client-android/kotlin/account/update-recovery.md deleted file mode 100644 index 81c00b4f26..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-recovery.md +++ /dev/null @@ -1,29 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updateRecovery( - userId = "[USER_ID]", - secret = "[SECRET]", - password = "password", - passwordAgain = "password" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-session.md b/docs/examples/1.2.x/client-android/kotlin/account/update-session.md deleted file mode 100644 index 465320d097..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-session.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updateSession( - sessionId = "[SESSION_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-status.md b/docs/examples/1.2.x/client-android/kotlin/account/update-status.md deleted file mode 100644 index e138751287..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-status.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updateStatus() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-verification.md b/docs/examples/1.2.x/client-android/kotlin/account/update-verification.md deleted file mode 100644 index cea2592a73..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-verification.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Account - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val account = Account(client) - - GlobalScope.launch { - val response = account.updateVerification( - userId = "[USER_ID]", - secret = "[SECRET]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-browser.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-browser.md deleted file mode 100644 index 95a2201d6a..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-browser.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val avatars = Avatars(client) - - GlobalScope.launch { - val result = avatars.getBrowser( - code = "aa", - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-credit-card.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-credit-card.md deleted file mode 100644 index 7507c40c5c..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-credit-card.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val avatars = Avatars(client) - - GlobalScope.launch { - val result = avatars.getCreditCard( - code = "amex", - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-favicon.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-favicon.md deleted file mode 100644 index f8e2b400a8..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-favicon.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val avatars = Avatars(client) - - GlobalScope.launch { - val result = avatars.getFavicon( - url = "https://example.com" - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-flag.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-flag.md deleted file mode 100644 index 738ec8a91f..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-flag.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val avatars = Avatars(client) - - GlobalScope.launch { - val result = avatars.getFlag( - code = "af", - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-image.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-image.md deleted file mode 100644 index 25171b1447..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-image.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val avatars = Avatars(client) - - GlobalScope.launch { - val result = avatars.getImage( - url = "https://example.com", - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-initials.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-initials.md deleted file mode 100644 index e53a647b09..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-initials.md +++ /dev/null @@ -1,25 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val avatars = Avatars(client) - - GlobalScope.launch { - val result = avatars.getInitials( - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-q-r.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-q-r.md deleted file mode 100644 index c9d60ea9c7..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-q-r.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Avatars - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val avatars = Avatars(client) - - GlobalScope.launch { - val result = avatars.getQR( - text = "[TEXT]", - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.2.x/client-android/kotlin/databases/create-document.md deleted file mode 100644 index 8a755a265b..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/databases/create-document.md +++ /dev/null @@ -1,29 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Databases - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val databases = Databases(client) - - GlobalScope.launch { - val response = databases.createDocument( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]", - data = mapOf( "a" to "b" ), - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/databases/delete-document.md b/docs/examples/1.2.x/client-android/kotlin/databases/delete-document.md deleted file mode 100644 index f56293b880..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/databases/delete-document.md +++ /dev/null @@ -1,28 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Databases - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val databases = Databases(client) - - GlobalScope.launch { - val response = databases.deleteDocument( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/databases/get-document.md b/docs/examples/1.2.x/client-android/kotlin/databases/get-document.md deleted file mode 100644 index 1f5bf29b10..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/databases/get-document.md +++ /dev/null @@ -1,28 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Databases - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val databases = Databases(client) - - GlobalScope.launch { - val response = databases.getDocument( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/databases/list-documents.md b/docs/examples/1.2.x/client-android/kotlin/databases/list-documents.md deleted file mode 100644 index 5277b46a01..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/databases/list-documents.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Databases - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val databases = Databases(client) - - GlobalScope.launch { - val response = databases.listDocuments( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/databases/update-document.md b/docs/examples/1.2.x/client-android/kotlin/databases/update-document.md deleted file mode 100644 index 7807f5218f..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/databases/update-document.md +++ /dev/null @@ -1,28 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Databases - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val databases = Databases(client) - - GlobalScope.launch { - val response = databases.updateDocument( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/functions/create-execution.md b/docs/examples/1.2.x/client-android/kotlin/functions/create-execution.md deleted file mode 100644 index 3a7e599f8c..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/functions/create-execution.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Functions - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val functions = Functions(client) - - GlobalScope.launch { - val response = functions.createExecution( - functionId = "[FUNCTION_ID]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/functions/get-execution.md b/docs/examples/1.2.x/client-android/kotlin/functions/get-execution.md deleted file mode 100644 index 781f26c743..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/functions/get-execution.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Functions - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val functions = Functions(client) - - GlobalScope.launch { - val response = functions.getExecution( - functionId = "[FUNCTION_ID]", - executionId = "[EXECUTION_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/functions/list-executions.md b/docs/examples/1.2.x/client-android/kotlin/functions/list-executions.md deleted file mode 100644 index 4f11574f0d..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/functions/list-executions.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Functions - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val functions = Functions(client) - - GlobalScope.launch { - val response = functions.listExecutions( - functionId = "[FUNCTION_ID]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/graphql/get.md b/docs/examples/1.2.x/client-android/kotlin/graphql/get.md deleted file mode 100644 index 8381a7b0cc..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/graphql/get.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Graphql - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val graphql = Graphql(client) - - GlobalScope.launch { - val response = graphql.get( - query = "[QUERY]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/graphql/post.md b/docs/examples/1.2.x/client-android/kotlin/graphql/post.md deleted file mode 100644 index f7dde0937d..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/graphql/post.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Graphql - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val graphql = Graphql(client) - - GlobalScope.launch { - val response = graphql.post( - query = mapOf( "a" to "b" ) - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/get.md b/docs/examples/1.2.x/client-android/kotlin/locale/get.md deleted file mode 100644 index f89c66a7ed..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/locale/get.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val locale = Locale(client) - - GlobalScope.launch { - val response = locale.get() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-continents.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-continents.md deleted file mode 100644 index b582b40114..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-continents.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val locale = Locale(client) - - GlobalScope.launch { - val response = locale.listContinents() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-e-u.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-e-u.md deleted file mode 100644 index 133da97f4b..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-e-u.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val locale = Locale(client) - - GlobalScope.launch { - val response = locale.listCountriesEU() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-phones.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-phones.md deleted file mode 100644 index 7f17f47b7f..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-phones.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val locale = Locale(client) - - GlobalScope.launch { - val response = locale.listCountriesPhones() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-countries.md deleted file mode 100644 index 1d83452953..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val locale = Locale(client) - - GlobalScope.launch { - val response = locale.listCountries() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-currencies.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-currencies.md deleted file mode 100644 index 657652f3a0..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-currencies.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val locale = Locale(client) - - GlobalScope.launch { - val response = locale.listCurrencies() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-languages.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-languages.md deleted file mode 100644 index bdf023ef9b..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-languages.md +++ /dev/null @@ -1,24 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Locale - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val locale = Locale(client) - - GlobalScope.launch { - val response = locale.listLanguages() - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/create-file.md b/docs/examples/1.2.x/client-android/kotlin/storage/create-file.md deleted file mode 100644 index d3d7c608e4..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/storage/create-file.md +++ /dev/null @@ -1,29 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.models.InputFile -import io.appwrite.services.Storage - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val storage = Storage(client) - - GlobalScope.launch { - val response = storage.createFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - file = InputFile.fromPath("file.png"), - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/delete-file.md b/docs/examples/1.2.x/client-android/kotlin/storage/delete-file.md deleted file mode 100644 index 1a4a5b9da1..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/storage/delete-file.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val storage = Storage(client) - - GlobalScope.launch { - val response = storage.deleteFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-download.md b/docs/examples/1.2.x/client-android/kotlin/storage/get-file-download.md deleted file mode 100644 index 3970fb8245..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-download.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val storage = Storage(client) - - GlobalScope.launch { - val result = storage.getFileDownload( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-preview.md b/docs/examples/1.2.x/client-android/kotlin/storage/get-file-preview.md deleted file mode 100644 index 780452729e..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-preview.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val storage = Storage(client) - - GlobalScope.launch { - val result = storage.getFilePreview( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-view.md b/docs/examples/1.2.x/client-android/kotlin/storage/get-file-view.md deleted file mode 100644 index 107ad45679..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-view.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val storage = Storage(client) - - GlobalScope.launch { - val result = storage.getFileView( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - ) - println(result); // Resource URL - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/get-file.md b/docs/examples/1.2.x/client-android/kotlin/storage/get-file.md deleted file mode 100644 index 30f640ba35..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/storage/get-file.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val storage = Storage(client) - - GlobalScope.launch { - val response = storage.getFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/list-files.md b/docs/examples/1.2.x/client-android/kotlin/storage/list-files.md deleted file mode 100644 index 20a253ab07..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/storage/list-files.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val storage = Storage(client) - - GlobalScope.launch { - val response = storage.listFiles( - bucketId = "[BUCKET_ID]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/update-file.md b/docs/examples/1.2.x/client-android/kotlin/storage/update-file.md deleted file mode 100644 index 35b1afb939..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/storage/update-file.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Storage - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val storage = Storage(client) - - GlobalScope.launch { - val response = storage.updateFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/create-membership.md b/docs/examples/1.2.x/client-android/kotlin/teams/create-membership.md deleted file mode 100644 index e2b7d16bfc..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/teams/create-membership.md +++ /dev/null @@ -1,29 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.createMembership( - teamId = "[TEAM_ID]", - email = "email@example.com", - roles = listOf(), - url = "https://example.com", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/create.md b/docs/examples/1.2.x/client-android/kotlin/teams/create.md deleted file mode 100644 index 73857b80bb..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/teams/create.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.create( - teamId = "[TEAM_ID]", - name = "[NAME]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/delete-membership.md b/docs/examples/1.2.x/client-android/kotlin/teams/delete-membership.md deleted file mode 100644 index 6545af5de7..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/teams/delete-membership.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.deleteMembership( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/delete.md b/docs/examples/1.2.x/client-android/kotlin/teams/delete.md deleted file mode 100644 index de12449562..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/teams/delete.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.delete( - teamId = "[TEAM_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/get-membership.md b/docs/examples/1.2.x/client-android/kotlin/teams/get-membership.md deleted file mode 100644 index aa3f29e74d..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/teams/get-membership.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.getMembership( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/get.md b/docs/examples/1.2.x/client-android/kotlin/teams/get.md deleted file mode 100644 index 54550b3ed6..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/teams/get.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.get( - teamId = "[TEAM_ID]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/list-memberships.md b/docs/examples/1.2.x/client-android/kotlin/teams/list-memberships.md deleted file mode 100644 index 32ef3bd823..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/teams/list-memberships.md +++ /dev/null @@ -1,26 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.listMemberships( - teamId = "[TEAM_ID]", - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/list.md b/docs/examples/1.2.x/client-android/kotlin/teams/list.md deleted file mode 100644 index 6444205472..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/teams/list.md +++ /dev/null @@ -1,25 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.list( - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-roles.md b/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-roles.md deleted file mode 100644 index d9a8a41895..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-roles.md +++ /dev/null @@ -1,28 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.updateMembershipRoles( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]", - roles = listOf() - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-status.md b/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-status.md deleted file mode 100644 index f8e10fdafc..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-status.md +++ /dev/null @@ -1,29 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.updateMembershipStatus( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]", - userId = "[USER_ID]", - secret = "[SECRET]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/update.md b/docs/examples/1.2.x/client-android/kotlin/teams/update.md deleted file mode 100644 index 59dd69f081..0000000000 --- a/docs/examples/1.2.x/client-android/kotlin/teams/update.md +++ /dev/null @@ -1,27 +0,0 @@ -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import io.appwrite.Client -import io.appwrite.services.Teams - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val client = Client(applicationContext) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - - val teams = Teams(client) - - GlobalScope.launch { - val response = teams.update( - teamId = "[TEAM_ID]", - name = "[NAME]" - ) - val json = response.body?.string() - } - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-anonymous-session.md b/docs/examples/1.2.x/client-apple/examples/account/create-anonymous-session.md deleted file mode 100644 index d2d71b9f00..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/create-anonymous-session.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let session = try await account.createAnonymousSession() - - print(String(describing: session) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-email-session.md b/docs/examples/1.2.x/client-apple/examples/account/create-email-session.md deleted file mode 100644 index e8e52ed637..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/create-email-session.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let session = try await account.createEmailSession( - email: "email@example.com", - password: "password" - ) - - print(String(describing: session) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-j-w-t.md b/docs/examples/1.2.x/client-apple/examples/account/create-j-w-t.md deleted file mode 100644 index 51952f9953..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/create-j-w-t.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let jwt = try await account.createJWT() - - print(String(describing: jwt) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/client-apple/examples/account/create-magic-u-r-l-session.md deleted file mode 100644 index 3eab67aac4..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/create-magic-u-r-l-session.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let token = try await account.createMagicURLSession( - userId: "[USER_ID]", - email: "email@example.com" - ) - - print(String(describing: token) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-o-auth2session.md b/docs/examples/1.2.x/client-apple/examples/account/create-o-auth2session.md deleted file mode 100644 index ddd7eb28a4..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/create-o-auth2session.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let success = try await account.createOAuth2Session( - provider: "amazon" - ) - - print(String(describing: success) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-phone-session.md b/docs/examples/1.2.x/client-apple/examples/account/create-phone-session.md deleted file mode 100644 index bda15f9093..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/create-phone-session.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let token = try await account.createPhoneSession( - userId: "[USER_ID]", - phone: "" - ) - - print(String(describing: token) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-phone-verification.md b/docs/examples/1.2.x/client-apple/examples/account/create-phone-verification.md deleted file mode 100644 index 1033795be1..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/create-phone-verification.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let token = try await account.createPhoneVerification() - - print(String(describing: token) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-recovery.md b/docs/examples/1.2.x/client-apple/examples/account/create-recovery.md deleted file mode 100644 index 1f2d9b9e05..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/create-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let token = try await account.createRecovery( - email: "email@example.com", - url: "https://example.com" - ) - - print(String(describing: token) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-verification.md b/docs/examples/1.2.x/client-apple/examples/account/create-verification.md deleted file mode 100644 index cd0f9d5c87..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/create-verification.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let token = try await account.createVerification( - url: "https://example.com" - ) - - print(String(describing: token) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/create.md b/docs/examples/1.2.x/client-apple/examples/account/create.md deleted file mode 100644 index bd6e152e53..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/create.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let account = try await account.create( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) - - print(String(describing: account) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/delete-session.md b/docs/examples/1.2.x/client-apple/examples/account/delete-session.md deleted file mode 100644 index 6f3dd76905..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/delete-session.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let result = try await account.deleteSession( - sessionId: "[SESSION_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/delete-sessions.md b/docs/examples/1.2.x/client-apple/examples/account/delete-sessions.md deleted file mode 100644 index f2721be95e..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/delete-sessions.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let result = try await account.deleteSessions() - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/get-prefs.md b/docs/examples/1.2.x/client-apple/examples/account/get-prefs.md deleted file mode 100644 index 6fb47ce31f..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/get-prefs.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let preferences = try await account.getPrefs() - - print(String(describing: preferences) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/get-session.md b/docs/examples/1.2.x/client-apple/examples/account/get-session.md deleted file mode 100644 index fa15d6d222..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/get-session.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let session = try await account.getSession( - sessionId: "[SESSION_ID]" - ) - - print(String(describing: session) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/get.md b/docs/examples/1.2.x/client-apple/examples/account/get.md deleted file mode 100644 index 09fd44655f..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/get.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let account = try await account.get() - - print(String(describing: account) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/list-logs.md b/docs/examples/1.2.x/client-apple/examples/account/list-logs.md deleted file mode 100644 index 882df254ab..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/list-logs.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let logList = try await account.listLogs() - - print(String(describing: logList) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/list-sessions.md b/docs/examples/1.2.x/client-apple/examples/account/list-sessions.md deleted file mode 100644 index 1583fa43fd..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/list-sessions.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let sessionList = try await account.listSessions() - - print(String(describing: sessionList) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-email.md b/docs/examples/1.2.x/client-apple/examples/account/update-email.md deleted file mode 100644 index 67e1275783..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/update-email.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let account = try await account.updateEmail( - email: "email@example.com", - password: "password" - ) - - print(String(describing: account) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/client-apple/examples/account/update-magic-u-r-l-session.md deleted file mode 100644 index 34bfab9e80..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/update-magic-u-r-l-session.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let session = try await account.updateMagicURLSession( - userId: "[USER_ID]", - secret: "[SECRET]" - ) - - print(String(describing: session) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-name.md b/docs/examples/1.2.x/client-apple/examples/account/update-name.md deleted file mode 100644 index 0ceff078a6..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/update-name.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let account = try await account.updateName( - name: "[NAME]" - ) - - print(String(describing: account) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-password.md b/docs/examples/1.2.x/client-apple/examples/account/update-password.md deleted file mode 100644 index a94bb2c3e6..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/update-password.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let account = try await account.updatePassword( - password: "password" - ) - - print(String(describing: account) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-phone-session.md b/docs/examples/1.2.x/client-apple/examples/account/update-phone-session.md deleted file mode 100644 index 21d018ea2a..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/update-phone-session.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let session = try await account.updatePhoneSession( - userId: "[USER_ID]", - secret: "[SECRET]" - ) - - print(String(describing: session) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-phone-verification.md b/docs/examples/1.2.x/client-apple/examples/account/update-phone-verification.md deleted file mode 100644 index f148346920..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/update-phone-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let token = try await account.updatePhoneVerification( - userId: "[USER_ID]", - secret: "[SECRET]" - ) - - print(String(describing: token) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-phone.md b/docs/examples/1.2.x/client-apple/examples/account/update-phone.md deleted file mode 100644 index b4c5fad124..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/update-phone.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let account = try await account.updatePhone( - phone: "", - password: "password" - ) - - print(String(describing: account) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.2.x/client-apple/examples/account/update-prefs.md deleted file mode 100644 index ebccea57b3..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/update-prefs.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let account = try await account.updatePrefs( - prefs: [:] - ) - - print(String(describing: account) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-recovery.md b/docs/examples/1.2.x/client-apple/examples/account/update-recovery.md deleted file mode 100644 index f412c0f35a..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/update-recovery.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let token = try await account.updateRecovery( - userId: "[USER_ID]", - secret: "[SECRET]", - password: "password", - passwordAgain: "password" - ) - - print(String(describing: token) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-session.md b/docs/examples/1.2.x/client-apple/examples/account/update-session.md deleted file mode 100644 index 1d9282641c..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/update-session.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let session = try await account.updateSession( - sessionId: "[SESSION_ID]" - ) - - print(String(describing: session) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-status.md b/docs/examples/1.2.x/client-apple/examples/account/update-status.md deleted file mode 100644 index 172eae0478..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/update-status.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let account = try await account.updateStatus() - - print(String(describing: account) -} diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-verification.md b/docs/examples/1.2.x/client-apple/examples/account/update-verification.md deleted file mode 100644 index 10e46b19d1..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/account/update-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let account = Account(client) - let token = try await account.updateVerification( - userId: "[USER_ID]", - secret: "[SECRET]" - ) - - print(String(describing: token) -} diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-browser.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-browser.md deleted file mode 100644 index 536d9b6167..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-browser.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let avatars = Avatars(client) - let byteBuffer = try await avatars.getBrowser( - code: "aa" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-credit-card.md deleted file mode 100644 index 7dff9411d0..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let avatars = Avatars(client) - let byteBuffer = try await avatars.getCreditCard( - code: "amex" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-favicon.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-favicon.md deleted file mode 100644 index 1e2afab969..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-favicon.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let avatars = Avatars(client) - let byteBuffer = try await avatars.getFavicon( - url: "https://example.com" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-flag.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-flag.md deleted file mode 100644 index 43035a3530..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-flag.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let avatars = Avatars(client) - let byteBuffer = try await avatars.getFlag( - code: "af" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-image.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-image.md deleted file mode 100644 index a28299c153..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-image.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let avatars = Avatars(client) - let byteBuffer = try await avatars.getImage( - url: "https://example.com" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-initials.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-initials.md deleted file mode 100644 index df22100428..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-initials.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let avatars = Avatars(client) - let byteBuffer = try await avatars.getInitials() - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-q-r.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-q-r.md deleted file mode 100644 index a9e3e9bae1..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-q-r.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let avatars = Avatars(client) - let byteBuffer = try await avatars.getQR( - text: "[TEXT]" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/client-apple/examples/databases/create-document.md b/docs/examples/1.2.x/client-apple/examples/databases/create-document.md deleted file mode 100644 index e97fa29bbe..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/databases/create-document.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let databases = Databases(client) - let document = try await databases.createDocument( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]", - data: [:] - ) - - print(String(describing: document) -} diff --git a/docs/examples/1.2.x/client-apple/examples/databases/delete-document.md b/docs/examples/1.2.x/client-apple/examples/databases/delete-document.md deleted file mode 100644 index b8fec29238..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/databases/delete-document.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let databases = Databases(client) - let result = try await databases.deleteDocument( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/client-apple/examples/databases/get-document.md b/docs/examples/1.2.x/client-apple/examples/databases/get-document.md deleted file mode 100644 index 8d8999dde9..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/databases/get-document.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let databases = Databases(client) - let document = try await databases.getDocument( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]" - ) - - print(String(describing: document) -} diff --git a/docs/examples/1.2.x/client-apple/examples/databases/list-documents.md b/docs/examples/1.2.x/client-apple/examples/databases/list-documents.md deleted file mode 100644 index 3468cf8fc3..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/databases/list-documents.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let databases = Databases(client) - let documentList = try await databases.listDocuments( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]" - ) - - print(String(describing: documentList) -} diff --git a/docs/examples/1.2.x/client-apple/examples/databases/update-document.md b/docs/examples/1.2.x/client-apple/examples/databases/update-document.md deleted file mode 100644 index 5f88a6253b..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/databases/update-document.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let databases = Databases(client) - let document = try await databases.updateDocument( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]" - ) - - print(String(describing: document) -} diff --git a/docs/examples/1.2.x/client-apple/examples/functions/create-execution.md b/docs/examples/1.2.x/client-apple/examples/functions/create-execution.md deleted file mode 100644 index f086125c35..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/functions/create-execution.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let functions = Functions(client) - let execution = try await functions.createExecution( - functionId: "[FUNCTION_ID]" - ) - - print(String(describing: execution) -} diff --git a/docs/examples/1.2.x/client-apple/examples/functions/get-execution.md b/docs/examples/1.2.x/client-apple/examples/functions/get-execution.md deleted file mode 100644 index 503c7f5412..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/functions/get-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let functions = Functions(client) - let execution = try await functions.getExecution( - functionId: "[FUNCTION_ID]", - executionId: "[EXECUTION_ID]" - ) - - print(String(describing: execution) -} diff --git a/docs/examples/1.2.x/client-apple/examples/functions/list-executions.md b/docs/examples/1.2.x/client-apple/examples/functions/list-executions.md deleted file mode 100644 index 45da8ee7a2..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/functions/list-executions.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let functions = Functions(client) - let executionList = try await functions.listExecutions( - functionId: "[FUNCTION_ID]" - ) - - print(String(describing: executionList) -} diff --git a/docs/examples/1.2.x/client-apple/examples/graphql/get.md b/docs/examples/1.2.x/client-apple/examples/graphql/get.md deleted file mode 100644 index be5fc7c914..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/graphql/get.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let graphql = Graphql(client) - let any = try await graphql.get( - query: "[QUERY]" - ) - - print(String(describing: any) -} diff --git a/docs/examples/1.2.x/client-apple/examples/graphql/post.md b/docs/examples/1.2.x/client-apple/examples/graphql/post.md deleted file mode 100644 index 9650cfe9b2..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/graphql/post.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let graphql = Graphql(client) - let any = try await graphql.post( - query: [:] - ) - - print(String(describing: any) -} diff --git a/docs/examples/1.2.x/client-apple/examples/locale/get.md b/docs/examples/1.2.x/client-apple/examples/locale/get.md deleted file mode 100644 index 2b6101c5ed..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/locale/get.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let locale = Locale(client) - let locale = try await locale.get() - - print(String(describing: locale) -} diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-continents.md b/docs/examples/1.2.x/client-apple/examples/locale/list-continents.md deleted file mode 100644 index 03f3aa7631..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-continents.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let locale = Locale(client) - let continentList = try await locale.listContinents() - - print(String(describing: continentList) -} diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/client-apple/examples/locale/list-countries-e-u.md deleted file mode 100644 index f25e383da6..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-countries-e-u.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let locale = Locale(client) - let countryList = try await locale.listCountriesEU() - - print(String(describing: countryList) -} diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/client-apple/examples/locale/list-countries-phones.md deleted file mode 100644 index 31af0e230d..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-countries-phones.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let locale = Locale(client) - let phoneList = try await locale.listCountriesPhones() - - print(String(describing: phoneList) -} diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-countries.md b/docs/examples/1.2.x/client-apple/examples/locale/list-countries.md deleted file mode 100644 index 29ac42ea59..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-countries.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let locale = Locale(client) - let countryList = try await locale.listCountries() - - print(String(describing: countryList) -} diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-currencies.md b/docs/examples/1.2.x/client-apple/examples/locale/list-currencies.md deleted file mode 100644 index aa0f6a0f0e..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-currencies.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let locale = Locale(client) - let currencyList = try await locale.listCurrencies() - - print(String(describing: currencyList) -} diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-languages.md b/docs/examples/1.2.x/client-apple/examples/locale/list-languages.md deleted file mode 100644 index 043690a4eb..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-languages.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let locale = Locale(client) - let languageList = try await locale.listLanguages() - - print(String(describing: languageList) -} diff --git a/docs/examples/1.2.x/client-apple/examples/storage/create-file.md b/docs/examples/1.2.x/client-apple/examples/storage/create-file.md deleted file mode 100644 index 050dc8fc08..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/storage/create-file.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let storage = Storage(client) - let file = try await storage.createFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]", - file: InputFile.fromPath("file.png") - ) - - print(String(describing: file) -} diff --git a/docs/examples/1.2.x/client-apple/examples/storage/delete-file.md b/docs/examples/1.2.x/client-apple/examples/storage/delete-file.md deleted file mode 100644 index 5bad56677d..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/storage/delete-file.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let storage = Storage(client) - let result = try await storage.deleteFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/client-apple/examples/storage/get-file-download.md b/docs/examples/1.2.x/client-apple/examples/storage/get-file-download.md deleted file mode 100644 index 1504f78d33..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/storage/get-file-download.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let storage = Storage(client) - let byteBuffer = try await storage.getFileDownload( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/client-apple/examples/storage/get-file-preview.md b/docs/examples/1.2.x/client-apple/examples/storage/get-file-preview.md deleted file mode 100644 index 33b80c49ae..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/storage/get-file-preview.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let storage = Storage(client) - let byteBuffer = try await storage.getFilePreview( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/client-apple/examples/storage/get-file-view.md b/docs/examples/1.2.x/client-apple/examples/storage/get-file-view.md deleted file mode 100644 index 7e3524aabb..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/storage/get-file-view.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let storage = Storage(client) - let byteBuffer = try await storage.getFileView( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/client-apple/examples/storage/get-file.md b/docs/examples/1.2.x/client-apple/examples/storage/get-file.md deleted file mode 100644 index 1f2fae973d..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/storage/get-file.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let storage = Storage(client) - let file = try await storage.getFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: file) -} diff --git a/docs/examples/1.2.x/client-apple/examples/storage/list-files.md b/docs/examples/1.2.x/client-apple/examples/storage/list-files.md deleted file mode 100644 index 01ae959e43..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/storage/list-files.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let storage = Storage(client) - let fileList = try await storage.listFiles( - bucketId: "[BUCKET_ID]" - ) - - print(String(describing: fileList) -} diff --git a/docs/examples/1.2.x/client-apple/examples/storage/update-file.md b/docs/examples/1.2.x/client-apple/examples/storage/update-file.md deleted file mode 100644 index 85503f0199..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/storage/update-file.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let storage = Storage(client) - let file = try await storage.updateFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: file) -} diff --git a/docs/examples/1.2.x/client-apple/examples/teams/create-membership.md b/docs/examples/1.2.x/client-apple/examples/teams/create-membership.md deleted file mode 100644 index 5a81e431d9..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/teams/create-membership.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let membership = try await teams.createMembership( - teamId: "[TEAM_ID]", - email: "email@example.com", - roles: [], - url: "https://example.com" - ) - - print(String(describing: membership) -} diff --git a/docs/examples/1.2.x/client-apple/examples/teams/create.md b/docs/examples/1.2.x/client-apple/examples/teams/create.md deleted file mode 100644 index 227ceb37b2..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/teams/create.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let team = try await teams.create( - teamId: "[TEAM_ID]", - name: "[NAME]" - ) - - print(String(describing: team) -} diff --git a/docs/examples/1.2.x/client-apple/examples/teams/delete-membership.md b/docs/examples/1.2.x/client-apple/examples/teams/delete-membership.md deleted file mode 100644 index 46a1ad7728..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/teams/delete-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let result = try await teams.deleteMembership( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/client-apple/examples/teams/delete.md b/docs/examples/1.2.x/client-apple/examples/teams/delete.md deleted file mode 100644 index d117a8bbf7..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/teams/delete.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let result = try await teams.delete( - teamId: "[TEAM_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/client-apple/examples/teams/get-membership.md b/docs/examples/1.2.x/client-apple/examples/teams/get-membership.md deleted file mode 100644 index 8d19d11072..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/teams/get-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let membership = try await teams.getMembership( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]" - ) - - print(String(describing: membership) -} diff --git a/docs/examples/1.2.x/client-apple/examples/teams/get.md b/docs/examples/1.2.x/client-apple/examples/teams/get.md deleted file mode 100644 index e4e0b9b68b..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/teams/get.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let team = try await teams.get( - teamId: "[TEAM_ID]" - ) - - print(String(describing: team) -} diff --git a/docs/examples/1.2.x/client-apple/examples/teams/list-memberships.md b/docs/examples/1.2.x/client-apple/examples/teams/list-memberships.md deleted file mode 100644 index 3e3d89ff6f..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/teams/list-memberships.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let membershipList = try await teams.listMemberships( - teamId: "[TEAM_ID]" - ) - - print(String(describing: membershipList) -} diff --git a/docs/examples/1.2.x/client-apple/examples/teams/list.md b/docs/examples/1.2.x/client-apple/examples/teams/list.md deleted file mode 100644 index a1e454fd6c..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/teams/list.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let teamList = try await teams.list() - - print(String(describing: teamList) -} diff --git a/docs/examples/1.2.x/client-apple/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/client-apple/examples/teams/update-membership-roles.md deleted file mode 100644 index 68ed875e42..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let membership = try await teams.updateMembershipRoles( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]", - roles: [] - ) - - print(String(describing: membership) -} diff --git a/docs/examples/1.2.x/client-apple/examples/teams/update-membership-status.md b/docs/examples/1.2.x/client-apple/examples/teams/update-membership-status.md deleted file mode 100644 index 9712539a6e..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/teams/update-membership-status.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let membership = try await teams.updateMembershipStatus( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]", - userId: "[USER_ID]", - secret: "[SECRET]" - ) - - print(String(describing: membership) -} diff --git a/docs/examples/1.2.x/client-apple/examples/teams/update.md b/docs/examples/1.2.x/client-apple/examples/teams/update.md deleted file mode 100644 index 90a4332756..0000000000 --- a/docs/examples/1.2.x/client-apple/examples/teams/update.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - let teams = Teams(client) - let team = try await teams.update( - teamId: "[TEAM_ID]", - name: "[NAME]" - ) - - print(String(describing: team) -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-anonymous-session.md b/docs/examples/1.2.x/client-flutter/examples/account/create-anonymous-session.md deleted file mode 100644 index 01b43744b0..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-anonymous-session.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.createAnonymousSession(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-email-session.md b/docs/examples/1.2.x/client-flutter/examples/account/create-email-session.md deleted file mode 100644 index 6cbb2275ee..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-email-session.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.createEmailSession( - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/1.2.x/client-flutter/examples/account/create-j-w-t.md deleted file mode 100644 index f88c7ad3ea..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-j-w-t.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.createJWT(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/client-flutter/examples/account/create-magic-u-r-l-session.md deleted file mode 100644 index 4d36b45b30..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-magic-u-r-l-session.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.createMagicURLSession( - userId: '[USER_ID]', - email: 'email@example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/1.2.x/client-flutter/examples/account/create-o-auth2session.md deleted file mode 100644 index a100378a00..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-o-auth2session.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.createOAuth2Session( - provider: 'amazon', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-phone-session.md b/docs/examples/1.2.x/client-flutter/examples/account/create-phone-session.md deleted file mode 100644 index 65f2861b81..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-phone-session.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.createPhoneSession( - userId: '[USER_ID]', - phone: '', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-phone-verification.md b/docs/examples/1.2.x/client-flutter/examples/account/create-phone-verification.md deleted file mode 100644 index ee16f768e7..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-phone-verification.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.createPhoneVerification(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-recovery.md b/docs/examples/1.2.x/client-flutter/examples/account/create-recovery.md deleted file mode 100644 index 2a5df1aa49..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-recovery.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.createRecovery( - email: 'email@example.com', - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-verification.md b/docs/examples/1.2.x/client-flutter/examples/account/create-verification.md deleted file mode 100644 index 18fa98aed2..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-verification.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.createVerification( - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create.md b/docs/examples/1.2.x/client-flutter/examples/account/create.md deleted file mode 100644 index 37447d9810..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/create.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.create( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/delete-session.md b/docs/examples/1.2.x/client-flutter/examples/account/delete-session.md deleted file mode 100644 index c116ef1188..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/delete-session.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.deleteSession( - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/delete-sessions.md b/docs/examples/1.2.x/client-flutter/examples/account/delete-sessions.md deleted file mode 100644 index 0d84b9d121..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/delete-sessions.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.deleteSessions(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/get-prefs.md b/docs/examples/1.2.x/client-flutter/examples/account/get-prefs.md deleted file mode 100644 index 2d6efd54db..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/get-prefs.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.getPrefs(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/get-session.md b/docs/examples/1.2.x/client-flutter/examples/account/get-session.md deleted file mode 100644 index 4d93a81c72..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/get-session.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.getSession( - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/get.md b/docs/examples/1.2.x/client-flutter/examples/account/get.md deleted file mode 100644 index 733d8842ce..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/get.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.get(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/list-logs.md b/docs/examples/1.2.x/client-flutter/examples/account/list-logs.md deleted file mode 100644 index 965378c0f2..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/list-logs.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.listLogs( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/list-sessions.md b/docs/examples/1.2.x/client-flutter/examples/account/list-sessions.md deleted file mode 100644 index ac370b084b..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/list-sessions.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.listSessions(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-email.md b/docs/examples/1.2.x/client-flutter/examples/account/update-email.md deleted file mode 100644 index 30dff9b7c9..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-email.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updateEmail( - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/client-flutter/examples/account/update-magic-u-r-l-session.md deleted file mode 100644 index 96881103b5..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-magic-u-r-l-session.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updateMagicURLSession( - userId: '[USER_ID]', - secret: '[SECRET]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-name.md b/docs/examples/1.2.x/client-flutter/examples/account/update-name.md deleted file mode 100644 index 01ff7a0b62..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-name.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updateName( - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-password.md b/docs/examples/1.2.x/client-flutter/examples/account/update-password.md deleted file mode 100644 index a4647c95bc..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-password.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updatePassword( - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-phone-session.md b/docs/examples/1.2.x/client-flutter/examples/account/update-phone-session.md deleted file mode 100644 index 2125266d81..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-phone-session.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updatePhoneSession( - userId: '[USER_ID]', - secret: '[SECRET]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-phone-verification.md b/docs/examples/1.2.x/client-flutter/examples/account/update-phone-verification.md deleted file mode 100644 index 9ad71febaf..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-phone-verification.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updatePhoneVerification( - userId: '[USER_ID]', - secret: '[SECRET]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-phone.md b/docs/examples/1.2.x/client-flutter/examples/account/update-phone.md deleted file mode 100644 index fbf1343a03..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-phone.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updatePhone( - phone: '', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.2.x/client-flutter/examples/account/update-prefs.md deleted file mode 100644 index bb7b8f800e..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-prefs.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updatePrefs( - prefs: {}, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-recovery.md b/docs/examples/1.2.x/client-flutter/examples/account/update-recovery.md deleted file mode 100644 index df9f144600..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-recovery.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updateRecovery( - userId: '[USER_ID]', - secret: '[SECRET]', - password: 'password', - passwordAgain: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-session.md b/docs/examples/1.2.x/client-flutter/examples/account/update-session.md deleted file mode 100644 index 37fd58c3fd..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-session.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updateSession( - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-status.md b/docs/examples/1.2.x/client-flutter/examples/account/update-status.md deleted file mode 100644 index fb3790ead8..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-status.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updateStatus(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-verification.md b/docs/examples/1.2.x/client-flutter/examples/account/update-verification.md deleted file mode 100644 index 2bfbaed75c..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-verification.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = account.updateVerification( - userId: '[USER_ID]', - secret: '[SECRET]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-browser.md deleted file mode 100644 index f908d11099..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-browser.md +++ /dev/null @@ -1,34 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = avatars.getBrowser( - code: 'aa', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: avatars.getBrowser( - code: 'aa', - ), //works for both public file and private file, for private files you need to be logged in - builder: (context, snapshot) { - return snapshot.hasData && snapshot.data != null - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-credit-card.md deleted file mode 100644 index 0c6ff01d19..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,34 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = avatars.getCreditCard( - code: 'amex', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: avatars.getCreditCard( - code: 'amex', - ), //works for both public file and private file, for private files you need to be logged in - builder: (context, snapshot) { - return snapshot.hasData && snapshot.data != null - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-favicon.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-favicon.md deleted file mode 100644 index 6df7c2dfbf..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-favicon.md +++ /dev/null @@ -1,34 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = avatars.getFavicon( - url: 'https://example.com', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: avatars.getFavicon( - url: 'https://example.com', - ), //works for both public file and private file, for private files you need to be logged in - builder: (context, snapshot) { - return snapshot.hasData && snapshot.data != null - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-flag.md deleted file mode 100644 index fa5b60d767..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-flag.md +++ /dev/null @@ -1,34 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = avatars.getFlag( - code: 'af', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: avatars.getFlag( - code: 'af', - ), //works for both public file and private file, for private files you need to be logged in - builder: (context, snapshot) { - return snapshot.hasData && snapshot.data != null - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-image.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-image.md deleted file mode 100644 index 219d160d8d..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-image.md +++ /dev/null @@ -1,34 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = avatars.getImage( - url: 'https://example.com', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: avatars.getImage( - url: 'https://example.com', - ), //works for both public file and private file, for private files you need to be logged in - builder: (context, snapshot) { - return snapshot.hasData && snapshot.data != null - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-initials.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-initials.md deleted file mode 100644 index cd1b1f7e9c..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-initials.md +++ /dev/null @@ -1,32 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = avatars.getInitials( - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: avatars.getInitials( - ), //works for both public file and private file, for private files you need to be logged in - builder: (context, snapshot) { - return snapshot.hasData && snapshot.data != null - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-q-r.md deleted file mode 100644 index df6ebd3c8c..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-q-r.md +++ /dev/null @@ -1,34 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = avatars.getQR( - text: '[TEXT]', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: avatars.getQR( - text: '[TEXT]', - ), //works for both public file and private file, for private files you need to be logged in - builder: (context, snapshot) { - return snapshot.hasData && snapshot.data != null - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/1.2.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.2.x/client-flutter/examples/databases/create-document.md deleted file mode 100644 index 730dd21d76..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/databases/create-document.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = databases.createDocument( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - data: {}, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/databases/delete-document.md b/docs/examples/1.2.x/client-flutter/examples/databases/delete-document.md deleted file mode 100644 index 8dc62460ce..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/databases/delete-document.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = databases.deleteDocument( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/databases/get-document.md b/docs/examples/1.2.x/client-flutter/examples/databases/get-document.md deleted file mode 100644 index 71c88d6055..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/databases/get-document.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = databases.getDocument( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/databases/list-documents.md b/docs/examples/1.2.x/client-flutter/examples/databases/list-documents.md deleted file mode 100644 index 816a17da14..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/databases/list-documents.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = databases.listDocuments( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/databases/update-document.md b/docs/examples/1.2.x/client-flutter/examples/databases/update-document.md deleted file mode 100644 index 29abff6fe7..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/databases/update-document.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = databases.updateDocument( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.2.x/client-flutter/examples/functions/create-execution.md deleted file mode 100644 index 70b617ffab..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/functions/create-execution.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = functions.createExecution( - functionId: '[FUNCTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/functions/get-execution.md b/docs/examples/1.2.x/client-flutter/examples/functions/get-execution.md deleted file mode 100644 index a10f7933c2..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/functions/get-execution.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = functions.getExecution( - functionId: '[FUNCTION_ID]', - executionId: '[EXECUTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/functions/list-executions.md b/docs/examples/1.2.x/client-flutter/examples/functions/list-executions.md deleted file mode 100644 index 3f59aa3f20..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/functions/list-executions.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = functions.listExecutions( - functionId: '[FUNCTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/graphql/get.md b/docs/examples/1.2.x/client-flutter/examples/graphql/get.md deleted file mode 100644 index 59cee1a3c5..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/graphql/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Graphql graphql = Graphql(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = graphql.get( - query: '[QUERY]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/graphql/post.md b/docs/examples/1.2.x/client-flutter/examples/graphql/post.md deleted file mode 100644 index ae038ed80c..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/graphql/post.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Graphql graphql = Graphql(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = graphql.post( - query: {}, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/get.md b/docs/examples/1.2.x/client-flutter/examples/locale/get.md deleted file mode 100644 index 21b1a6cff2..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/locale/get.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = locale.get(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-continents.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-continents.md deleted file mode 100644 index be47ec274e..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-continents.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = locale.listContinents(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-e-u.md deleted file mode 100644 index 9f2a9ab7d0..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-e-u.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = locale.listCountriesEU(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-phones.md deleted file mode 100644 index 93d84ea1fc..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-phones.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = locale.listCountriesPhones(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-countries.md deleted file mode 100644 index 6eb8d42ab7..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = locale.listCountries(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-currencies.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-currencies.md deleted file mode 100644 index eb8be0fff9..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-currencies.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = locale.listCurrencies(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-languages.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-languages.md deleted file mode 100644 index 287f69bdbd..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-languages.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = locale.listLanguages(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/create-file.md b/docs/examples/1.2.x/client-flutter/examples/storage/create-file.md deleted file mode 100644 index 5c591ff223..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/storage/create-file.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'dart:io'; -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = storage.createFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - file: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'), - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/delete-file.md b/docs/examples/1.2.x/client-flutter/examples/storage/delete-file.md deleted file mode 100644 index ee193d936f..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/storage/delete-file.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = storage.deleteFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-download.md b/docs/examples/1.2.x/client-flutter/examples/storage/get-file-download.md deleted file mode 100644 index ea3f2abfc8..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-download.md +++ /dev/null @@ -1,36 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = storage.getFileDownload( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: storage.getFileDownload( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ), //works for both public file and private file, for private files you need to be logged in - builder: (context, snapshot) { - return snapshot.hasData && snapshot.data != null - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/1.2.x/client-flutter/examples/storage/get-file-preview.md deleted file mode 100644 index 1a0fca2911..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-preview.md +++ /dev/null @@ -1,36 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = storage.getFilePreview( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: storage.getFilePreview( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ), //works for both public file and private file, for private files you need to be logged in - builder: (context, snapshot) { - return snapshot.hasData && snapshot.data != null - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-view.md b/docs/examples/1.2.x/client-flutter/examples/storage/get-file-view.md deleted file mode 100644 index 46051338eb..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-view.md +++ /dev/null @@ -1,36 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - // downloading file - Future result = storage.getFileView( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ).then((bytes) { - final file = File('path_to_file/filename.ext'); - file.writeAsBytesSync(bytes) - }).catchError((error) { - print(error.response); - }) -} - -//displaying image preview -FutureBuilder( - future: storage.getFileView( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ), //works for both public file and private file, for private files you need to be logged in - builder: (context, snapshot) { - return snapshot.hasData && snapshot.data != null - ? Image.memory( - snapshot.data, - ) - : CircularProgressIndicator(); - }, -); diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/get-file.md b/docs/examples/1.2.x/client-flutter/examples/storage/get-file.md deleted file mode 100644 index 26e5db0777..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/storage/get-file.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = storage.getFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/list-files.md b/docs/examples/1.2.x/client-flutter/examples/storage/list-files.md deleted file mode 100644 index b1d095a5c7..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/storage/list-files.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = storage.listFiles( - bucketId: '[BUCKET_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/update-file.md b/docs/examples/1.2.x/client-flutter/examples/storage/update-file.md deleted file mode 100644 index 71056526e9..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/storage/update-file.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = storage.updateFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/create-membership.md b/docs/examples/1.2.x/client-flutter/examples/teams/create-membership.md deleted file mode 100644 index ef5931ea66..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/teams/create-membership.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.createMembership( - teamId: '[TEAM_ID]', - email: 'email@example.com', - roles: [], - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/create.md b/docs/examples/1.2.x/client-flutter/examples/teams/create.md deleted file mode 100644 index 5333ce35f8..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/teams/create.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.create( - teamId: '[TEAM_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/delete-membership.md b/docs/examples/1.2.x/client-flutter/examples/teams/delete-membership.md deleted file mode 100644 index 8192b8528e..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/teams/delete-membership.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.deleteMembership( - teamId: '[TEAM_ID]', - membershipId: '[MEMBERSHIP_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/delete.md b/docs/examples/1.2.x/client-flutter/examples/teams/delete.md deleted file mode 100644 index e55c62b2e3..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/teams/delete.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.delete( - teamId: '[TEAM_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/get-membership.md b/docs/examples/1.2.x/client-flutter/examples/teams/get-membership.md deleted file mode 100644 index 6abecfe3f8..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/teams/get-membership.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.getMembership( - teamId: '[TEAM_ID]', - membershipId: '[MEMBERSHIP_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/get.md b/docs/examples/1.2.x/client-flutter/examples/teams/get.md deleted file mode 100644 index 25eb2453fc..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/teams/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.get( - teamId: '[TEAM_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/list-memberships.md b/docs/examples/1.2.x/client-flutter/examples/teams/list-memberships.md deleted file mode 100644 index 67a6c1586d..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/teams/list-memberships.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.listMemberships( - teamId: '[TEAM_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/list.md b/docs/examples/1.2.x/client-flutter/examples/teams/list.md deleted file mode 100644 index 8657f80fd3..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/teams/list.md +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.list( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-roles.md deleted file mode 100644 index 7615752cd9..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.updateMembershipRoles( - teamId: '[TEAM_ID]', - membershipId: '[MEMBERSHIP_ID]', - roles: [], - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-status.md b/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-status.md deleted file mode 100644 index 7cda544d00..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-status.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.updateMembershipStatus( - teamId: '[TEAM_ID]', - membershipId: '[MEMBERSHIP_ID]', - userId: '[USER_ID]', - secret: '[SECRET]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/update.md b/docs/examples/1.2.x/client-flutter/examples/teams/update.md deleted file mode 100644 index 838639be9b..0000000000 --- a/docs/examples/1.2.x/client-flutter/examples/teams/update.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - ; - Future result = teams.update( - teamId: '[TEAM_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} diff --git a/docs/examples/1.2.x/client-graphql/examples/account/create-anonymous-session.md b/docs/examples/1.2.x/client-graphql/examples/account/create-anonymous-session.md deleted file mode 100644 index 5307823243..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/create-anonymous-session.md +++ /dev/null @@ -1,29 +0,0 @@ -mutation { - accountCreateAnonymousSession { - id - createdAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/create-email-session.md b/docs/examples/1.2.x/client-graphql/examples/account/create-email-session.md deleted file mode 100644 index 7e4b064b26..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/create-email-session.md +++ /dev/null @@ -1,32 +0,0 @@ -mutation { - accountCreateEmailSession( - email: "email@example.com", - password: "password" - ) { - id - createdAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/create-j-w-t.md b/docs/examples/1.2.x/client-graphql/examples/account/create-j-w-t.md deleted file mode 100644 index 0f56932555..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/create-j-w-t.md +++ /dev/null @@ -1,5 +0,0 @@ -mutation { - accountCreateJWT { - jwt - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/client-graphql/examples/account/create-magic-u-r-l-session.md deleted file mode 100644 index f7bf6c1442..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/create-magic-u-r-l-session.md +++ /dev/null @@ -1,12 +0,0 @@ -mutation { - accountCreateMagicURLSession( - userId: "[USER_ID]", - email: "email@example.com" - ) { - id - createdAt - userId - secret - expire - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/create-phone-session.md b/docs/examples/1.2.x/client-graphql/examples/account/create-phone-session.md deleted file mode 100644 index 76061cc7e3..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/create-phone-session.md +++ /dev/null @@ -1,12 +0,0 @@ -mutation { - accountCreatePhoneSession( - userId: "[USER_ID]", - phone: "" - ) { - id - createdAt - userId - secret - expire - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/create-phone-verification.md b/docs/examples/1.2.x/client-graphql/examples/account/create-phone-verification.md deleted file mode 100644 index f2656f65c4..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/create-phone-verification.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - accountCreatePhoneVerification { - id - createdAt - userId - secret - expire - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/create-recovery.md b/docs/examples/1.2.x/client-graphql/examples/account/create-recovery.md deleted file mode 100644 index 449a66f9ec..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/create-recovery.md +++ /dev/null @@ -1,12 +0,0 @@ -mutation { - accountCreateRecovery( - email: "email@example.com", - url: "https://example.com" - ) { - id - createdAt - userId - secret - expire - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/create-verification.md b/docs/examples/1.2.x/client-graphql/examples/account/create-verification.md deleted file mode 100644 index caf964570d..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/create-verification.md +++ /dev/null @@ -1,11 +0,0 @@ -mutation { - accountCreateVerification( - url: "https://example.com" - ) { - id - createdAt - userId - secret - expire - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/create.md b/docs/examples/1.2.x/client-graphql/examples/account/create.md deleted file mode 100644 index 943482fea4..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/create.md +++ /dev/null @@ -1,20 +0,0 @@ -mutation { - accountCreate( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) { - id - createdAt - updatedAt - name - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/delete-session.md b/docs/examples/1.2.x/client-graphql/examples/account/delete-session.md deleted file mode 100644 index 7cfd435011..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/delete-session.md +++ /dev/null @@ -1,7 +0,0 @@ -mutation { - accountDeleteSession( - sessionId: "[SESSION_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/delete-sessions.md b/docs/examples/1.2.x/client-graphql/examples/account/delete-sessions.md deleted file mode 100644 index 7b2bf7a976..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/delete-sessions.md +++ /dev/null @@ -1,5 +0,0 @@ -mutation { - accountDeleteSessions { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/get-prefs.md b/docs/examples/1.2.x/client-graphql/examples/account/get-prefs.md deleted file mode 100644 index f77ef6ff70..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/get-prefs.md +++ /dev/null @@ -1,5 +0,0 @@ -query { - accountGetPrefs { - data - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/get-session.md b/docs/examples/1.2.x/client-graphql/examples/account/get-session.md deleted file mode 100644 index 130a6af9af..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/get-session.md +++ /dev/null @@ -1,31 +0,0 @@ -query { - accountGetSession( - sessionId: "[SESSION_ID]" - ) { - id - createdAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/get.md b/docs/examples/1.2.x/client-graphql/examples/account/get.md deleted file mode 100644 index 54baf853c7..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/get.md +++ /dev/null @@ -1,16 +0,0 @@ -query { - accountGet { - id - createdAt - updatedAt - name - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/list-logs.md b/docs/examples/1.2.x/client-graphql/examples/account/list-logs.md deleted file mode 100644 index aae32886ec..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/list-logs.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - accountListLogs { - total - logs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/list-sessions.md b/docs/examples/1.2.x/client-graphql/examples/account/list-sessions.md deleted file mode 100644 index 397d615381..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/list-sessions.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - accountListSessions { - total - sessions - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/update-email.md b/docs/examples/1.2.x/client-graphql/examples/account/update-email.md deleted file mode 100644 index dad4bc6f09..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/update-email.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - accountUpdateEmail( - email: "email@example.com", - password: "password" - ) { - id - createdAt - updatedAt - name - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/client-graphql/examples/account/update-magic-u-r-l-session.md deleted file mode 100644 index 4dd62eec95..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/update-magic-u-r-l-session.md +++ /dev/null @@ -1,32 +0,0 @@ -mutation { - accountUpdateMagicURLSession( - userId: "[USER_ID]", - secret: "[SECRET]" - ) { - id - createdAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/update-name.md b/docs/examples/1.2.x/client-graphql/examples/account/update-name.md deleted file mode 100644 index 2a5cc67ee1..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/update-name.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - accountUpdateName( - name: "[NAME]" - ) { - id - createdAt - updatedAt - name - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/update-password.md b/docs/examples/1.2.x/client-graphql/examples/account/update-password.md deleted file mode 100644 index e88dbb0a5f..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/update-password.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - accountUpdatePassword( - password: "password" - ) { - id - createdAt - updatedAt - name - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/update-phone-session.md b/docs/examples/1.2.x/client-graphql/examples/account/update-phone-session.md deleted file mode 100644 index bb485d61d3..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/update-phone-session.md +++ /dev/null @@ -1,32 +0,0 @@ -mutation { - accountUpdatePhoneSession( - userId: "[USER_ID]", - secret: "[SECRET]" - ) { - id - createdAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/update-phone-verification.md b/docs/examples/1.2.x/client-graphql/examples/account/update-phone-verification.md deleted file mode 100644 index b6c251a8a8..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/update-phone-verification.md +++ /dev/null @@ -1,12 +0,0 @@ -mutation { - accountUpdatePhoneVerification( - userId: "[USER_ID]", - secret: "[SECRET]" - ) { - id - createdAt - userId - secret - expire - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/update-phone.md b/docs/examples/1.2.x/client-graphql/examples/account/update-phone.md deleted file mode 100644 index f532585ba7..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/update-phone.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - accountUpdatePhone( - phone: "", - password: "password" - ) { - id - createdAt - updatedAt - name - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/update-prefs.md b/docs/examples/1.2.x/client-graphql/examples/account/update-prefs.md deleted file mode 100644 index 1c433b590f..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/update-prefs.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - accountUpdatePrefs( - prefs: "{}" - ) { - id - createdAt - updatedAt - name - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/update-recovery.md b/docs/examples/1.2.x/client-graphql/examples/account/update-recovery.md deleted file mode 100644 index abbb8c6123..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/update-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ -mutation { - accountUpdateRecovery( - userId: "[USER_ID]", - secret: "[SECRET]", - password: "password", - passwordAgain: "password" - ) { - id - createdAt - userId - secret - expire - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/update-session.md b/docs/examples/1.2.x/client-graphql/examples/account/update-session.md deleted file mode 100644 index acb4f614c7..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/update-session.md +++ /dev/null @@ -1,31 +0,0 @@ -mutation { - accountUpdateSession( - sessionId: "[SESSION_ID]" - ) { - id - createdAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/update-status.md b/docs/examples/1.2.x/client-graphql/examples/account/update-status.md deleted file mode 100644 index f7b6c4fbff..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/update-status.md +++ /dev/null @@ -1,16 +0,0 @@ -mutation { - accountUpdateStatus { - id - createdAt - updatedAt - name - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/account/update-verification.md b/docs/examples/1.2.x/client-graphql/examples/account/update-verification.md deleted file mode 100644 index 4e738e06b1..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/account/update-verification.md +++ /dev/null @@ -1,12 +0,0 @@ -mutation { - accountUpdateVerification( - userId: "[USER_ID]", - secret: "[SECRET]" - ) { - id - createdAt - userId - secret - expire - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/avatars/get-browser.md b/docs/examples/1.2.x/client-graphql/examples/avatars/get-browser.md deleted file mode 100644 index 0cd2af38ad..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/avatars/get-browser.md +++ /dev/null @@ -1,7 +0,0 @@ -query { - avatarsGetBrowser( - code: "aa" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/client-graphql/examples/avatars/get-credit-card.md deleted file mode 100644 index 0dbfd8a261..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,7 +0,0 @@ -query { - avatarsGetCreditCard( - code: "amex" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/avatars/get-favicon.md b/docs/examples/1.2.x/client-graphql/examples/avatars/get-favicon.md deleted file mode 100644 index 3e4ac1e617..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/avatars/get-favicon.md +++ /dev/null @@ -1,7 +0,0 @@ -query { - avatarsGetFavicon( - url: "https://example.com" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/avatars/get-flag.md b/docs/examples/1.2.x/client-graphql/examples/avatars/get-flag.md deleted file mode 100644 index 648cbf577b..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/avatars/get-flag.md +++ /dev/null @@ -1,7 +0,0 @@ -query { - avatarsGetFlag( - code: "af" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/avatars/get-image.md b/docs/examples/1.2.x/client-graphql/examples/avatars/get-image.md deleted file mode 100644 index 3921e06205..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/avatars/get-image.md +++ /dev/null @@ -1,7 +0,0 @@ -query { - avatarsGetImage( - url: "https://example.com" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/avatars/get-initials.md b/docs/examples/1.2.x/client-graphql/examples/avatars/get-initials.md deleted file mode 100644 index b072255fcf..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/avatars/get-initials.md +++ /dev/null @@ -1,5 +0,0 @@ -query { - avatarsGetInitials { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/avatars/get-q-r.md b/docs/examples/1.2.x/client-graphql/examples/avatars/get-q-r.md deleted file mode 100644 index c3e1ee6d55..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/avatars/get-q-r.md +++ /dev/null @@ -1,7 +0,0 @@ -query { - avatarsGetQR( - text: "[TEXT]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/databases/create-document.md b/docs/examples/1.2.x/client-graphql/examples/databases/create-document.md deleted file mode 100644 index 5073fe709a..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/databases/create-document.md +++ /dev/null @@ -1,16 +0,0 @@ -mutation { - databasesCreateDocument( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]", - data: "{}" - ) { - id - collectionId - databaseId - createdAt - updatedAt - permissions - data - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/databases/delete-document.md b/docs/examples/1.2.x/client-graphql/examples/databases/delete-document.md deleted file mode 100644 index 9a6e013fb0..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/databases/delete-document.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - databasesDeleteDocument( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/databases/get-document.md b/docs/examples/1.2.x/client-graphql/examples/databases/get-document.md deleted file mode 100644 index 1123167a94..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/databases/get-document.md +++ /dev/null @@ -1,15 +0,0 @@ -query { - databasesGetDocument( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]" - ) { - id - collectionId - databaseId - createdAt - updatedAt - permissions - data - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/databases/list-documents.md b/docs/examples/1.2.x/client-graphql/examples/databases/list-documents.md deleted file mode 100644 index 9ff5fa589d..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/databases/list-documents.md +++ /dev/null @@ -1,9 +0,0 @@ -query { - databasesListDocuments( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]" - ) { - total - documents - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/databases/update-document.md b/docs/examples/1.2.x/client-graphql/examples/databases/update-document.md deleted file mode 100644 index 32fb05b56f..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/databases/update-document.md +++ /dev/null @@ -1,15 +0,0 @@ -mutation { - databasesUpdateDocument( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]" - ) { - id - collectionId - databaseId - createdAt - updatedAt - permissions - data - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/functions/create-execution.md b/docs/examples/1.2.x/client-graphql/examples/functions/create-execution.md deleted file mode 100644 index a4e089d12f..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/functions/create-execution.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - functionsCreateExecution( - functionId: "[FUNCTION_ID]" - ) { - id - createdAt - updatedAt - permissions - functionId - trigger - status - statusCode - response - stdout - stderr - duration - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/functions/get-execution.md b/docs/examples/1.2.x/client-graphql/examples/functions/get-execution.md deleted file mode 100644 index 679e879020..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/functions/get-execution.md +++ /dev/null @@ -1,19 +0,0 @@ -query { - functionsGetExecution( - functionId: "[FUNCTION_ID]", - executionId: "[EXECUTION_ID]" - ) { - id - createdAt - updatedAt - permissions - functionId - trigger - status - statusCode - response - stdout - stderr - duration - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/functions/list-executions.md b/docs/examples/1.2.x/client-graphql/examples/functions/list-executions.md deleted file mode 100644 index 748ce18912..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/functions/list-executions.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - functionsListExecutions( - functionId: "[FUNCTION_ID]" - ) { - total - executions - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/locale/get.md b/docs/examples/1.2.x/client-graphql/examples/locale/get.md deleted file mode 100644 index 6c0a19c545..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/locale/get.md +++ /dev/null @@ -1,11 +0,0 @@ -query { - localeGet { - ip - countryCode - country - continentCode - continent - eu - currency - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/locale/list-continents.md b/docs/examples/1.2.x/client-graphql/examples/locale/list-continents.md deleted file mode 100644 index 498d26d6a7..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/locale/list-continents.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - localeListContinents { - total - continents - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/client-graphql/examples/locale/list-countries-e-u.md deleted file mode 100644 index e3d549399b..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/locale/list-countries-e-u.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - localeListCountriesEU { - total - countries - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/client-graphql/examples/locale/list-countries-phones.md deleted file mode 100644 index a3285e4f04..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/locale/list-countries-phones.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - localeListCountriesPhones { - total - phones - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/locale/list-countries.md b/docs/examples/1.2.x/client-graphql/examples/locale/list-countries.md deleted file mode 100644 index 01be755392..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/locale/list-countries.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - localeListCountries { - total - countries - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/locale/list-currencies.md b/docs/examples/1.2.x/client-graphql/examples/locale/list-currencies.md deleted file mode 100644 index df0c60ee9d..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/locale/list-currencies.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - localeListCurrencies { - total - currencies - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/locale/list-languages.md b/docs/examples/1.2.x/client-graphql/examples/locale/list-languages.md deleted file mode 100644 index de4b911d60..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/locale/list-languages.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - localeListLanguages { - total - languages - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/storage/create-file.md b/docs/examples/1.2.x/client-graphql/examples/storage/create-file.md deleted file mode 100644 index 692d7ba966..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/storage/create-file.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - storageCreateFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]", - file: null - ) { - id - bucketId - createdAt - updatedAt - permissions - name - signature - mimeType - sizeOriginal - chunksTotal - chunksUploaded - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/storage/delete-file.md b/docs/examples/1.2.x/client-graphql/examples/storage/delete-file.md deleted file mode 100644 index 354f48836e..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/storage/delete-file.md +++ /dev/null @@ -1,8 +0,0 @@ -mutation { - storageDeleteFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/storage/get-file-download.md b/docs/examples/1.2.x/client-graphql/examples/storage/get-file-download.md deleted file mode 100644 index 5e94b92a7d..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/storage/get-file-download.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - storageGetFileDownload( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/storage/get-file-preview.md b/docs/examples/1.2.x/client-graphql/examples/storage/get-file-preview.md deleted file mode 100644 index 0071ea78bb..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/storage/get-file-preview.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - storageGetFilePreview( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/storage/get-file-view.md b/docs/examples/1.2.x/client-graphql/examples/storage/get-file-view.md deleted file mode 100644 index 7f442635ad..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/storage/get-file-view.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - storageGetFileView( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/storage/get-file.md b/docs/examples/1.2.x/client-graphql/examples/storage/get-file.md deleted file mode 100644 index bd6270b3fb..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/storage/get-file.md +++ /dev/null @@ -1,18 +0,0 @@ -query { - storageGetFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) { - id - bucketId - createdAt - updatedAt - permissions - name - signature - mimeType - sizeOriginal - chunksTotal - chunksUploaded - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/storage/list-files.md b/docs/examples/1.2.x/client-graphql/examples/storage/list-files.md deleted file mode 100644 index 1e1d6821d1..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/storage/list-files.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - storageListFiles( - bucketId: "[BUCKET_ID]" - ) { - total - files - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/storage/update-file.md b/docs/examples/1.2.x/client-graphql/examples/storage/update-file.md deleted file mode 100644 index 193299c5a1..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/storage/update-file.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - storageUpdateFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) { - id - bucketId - createdAt - updatedAt - permissions - name - signature - mimeType - sizeOriginal - chunksTotal - chunksUploaded - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/teams/create-membership.md b/docs/examples/1.2.x/client-graphql/examples/teams/create-membership.md deleted file mode 100644 index b671c9dac7..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/teams/create-membership.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - teamsCreateMembership( - teamId: "[TEAM_ID]", - email: "email@example.com", - roles: [], - url: "https://example.com" - ) { - id - createdAt - updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - roles - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/teams/create.md b/docs/examples/1.2.x/client-graphql/examples/teams/create.md deleted file mode 100644 index 651a8ab0e3..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/teams/create.md +++ /dev/null @@ -1,12 +0,0 @@ -mutation { - teamsCreate( - teamId: "[TEAM_ID]", - name: "[NAME]" - ) { - id - createdAt - updatedAt - name - total - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/teams/delete-membership.md b/docs/examples/1.2.x/client-graphql/examples/teams/delete-membership.md deleted file mode 100644 index cb0d4fe9d9..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/teams/delete-membership.md +++ /dev/null @@ -1,8 +0,0 @@ -mutation { - teamsDeleteMembership( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/teams/delete.md b/docs/examples/1.2.x/client-graphql/examples/teams/delete.md deleted file mode 100644 index d8fe20c0fc..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/teams/delete.md +++ /dev/null @@ -1,7 +0,0 @@ -mutation { - teamsDelete( - teamId: "[TEAM_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/teams/get-membership.md b/docs/examples/1.2.x/client-graphql/examples/teams/get-membership.md deleted file mode 100644 index db95014a37..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/teams/get-membership.md +++ /dev/null @@ -1,19 +0,0 @@ -query { - teamsGetMembership( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]" - ) { - id - createdAt - updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - roles - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/teams/get.md b/docs/examples/1.2.x/client-graphql/examples/teams/get.md deleted file mode 100644 index 765d88f979..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/teams/get.md +++ /dev/null @@ -1,11 +0,0 @@ -query { - teamsGet( - teamId: "[TEAM_ID]" - ) { - id - createdAt - updatedAt - name - total - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/teams/list-memberships.md b/docs/examples/1.2.x/client-graphql/examples/teams/list-memberships.md deleted file mode 100644 index 5ac1d8eccf..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/teams/list-memberships.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - teamsListMemberships( - teamId: "[TEAM_ID]" - ) { - total - memberships - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/teams/list.md b/docs/examples/1.2.x/client-graphql/examples/teams/list.md deleted file mode 100644 index c4917cf966..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/teams/list.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - teamsList { - total - teams - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/client-graphql/examples/teams/update-membership-roles.md deleted file mode 100644 index c5653260f5..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,20 +0,0 @@ -mutation { - teamsUpdateMembershipRoles( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]", - roles: [] - ) { - id - createdAt - updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - roles - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/teams/update-membership-status.md b/docs/examples/1.2.x/client-graphql/examples/teams/update-membership-status.md deleted file mode 100644 index c98b369370..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/teams/update-membership-status.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - teamsUpdateMembershipStatus( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]", - userId: "[USER_ID]", - secret: "[SECRET]" - ) { - id - createdAt - updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - roles - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-graphql/examples/teams/update.md b/docs/examples/1.2.x/client-graphql/examples/teams/update.md deleted file mode 100644 index 45697ce588..0000000000 --- a/docs/examples/1.2.x/client-graphql/examples/teams/update.md +++ /dev/null @@ -1,12 +0,0 @@ -mutation { - teamsUpdate( - teamId: "[TEAM_ID]", - name: "[NAME]" - ) { - id - createdAt - updatedAt - name - total - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/1.2.x/client-web/examples/account/create-anonymous-session.md deleted file mode 100644 index a1ff484477..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/create-anonymous-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.createAnonymousSession(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/create-email-session.md b/docs/examples/1.2.x/client-web/examples/account/create-email-session.md deleted file mode 100644 index 43a0aa25a0..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/create-email-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.createEmailSession('email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/create-j-w-t.md b/docs/examples/1.2.x/client-web/examples/account/create-j-w-t.md deleted file mode 100644 index 3b5c7ed679..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/create-j-w-t.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.createJWT(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/client-web/examples/account/create-magic-u-r-l-session.md deleted file mode 100644 index 9339d6742c..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/create-magic-u-r-l-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.createMagicURLSession('[USER_ID]', 'email@example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/1.2.x/client-web/examples/account/create-o-auth2session.md deleted file mode 100644 index 25e67b15ec..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/create-o-auth2session.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -// Go to OAuth provider login page -account.createOAuth2Session('amazon'); - diff --git a/docs/examples/1.2.x/client-web/examples/account/create-phone-session.md b/docs/examples/1.2.x/client-web/examples/account/create-phone-session.md deleted file mode 100644 index 465dbe4e49..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/create-phone-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.createPhoneSession('[USER_ID]', ''); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/create-phone-verification.md b/docs/examples/1.2.x/client-web/examples/account/create-phone-verification.md deleted file mode 100644 index f325a9210f..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/create-phone-verification.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.createPhoneVerification(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/create-recovery.md b/docs/examples/1.2.x/client-web/examples/account/create-recovery.md deleted file mode 100644 index 4f737edf3d..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/create-recovery.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.createRecovery('email@example.com', 'https://example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/create-verification.md b/docs/examples/1.2.x/client-web/examples/account/create-verification.md deleted file mode 100644 index 0e7162c8cf..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/create-verification.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.createVerification('https://example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/create.md b/docs/examples/1.2.x/client-web/examples/account/create.md deleted file mode 100644 index 5b275bd1ba..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/create.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.create('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/delete-session.md b/docs/examples/1.2.x/client-web/examples/account/delete-session.md deleted file mode 100644 index a23a1f25e5..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/delete-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.deleteSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/delete-sessions.md b/docs/examples/1.2.x/client-web/examples/account/delete-sessions.md deleted file mode 100644 index 58495385f1..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/delete-sessions.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.deleteSessions(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/get-prefs.md b/docs/examples/1.2.x/client-web/examples/account/get-prefs.md deleted file mode 100644 index a355c68ee0..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/get-prefs.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.getPrefs(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/get-session.md b/docs/examples/1.2.x/client-web/examples/account/get-session.md deleted file mode 100644 index dd0c08633e..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/get-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.getSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/get.md b/docs/examples/1.2.x/client-web/examples/account/get.md deleted file mode 100644 index fd26ad70dc..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/get.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.get(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/list-logs.md b/docs/examples/1.2.x/client-web/examples/account/list-logs.md deleted file mode 100644 index 4ce60e4314..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/list-logs.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.listLogs(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/list-sessions.md b/docs/examples/1.2.x/client-web/examples/account/list-sessions.md deleted file mode 100644 index d7e901c406..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/list-sessions.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.listSessions(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/update-email.md b/docs/examples/1.2.x/client-web/examples/account/update-email.md deleted file mode 100644 index 6e3d603801..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/update-email.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updateEmail('email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/client-web/examples/account/update-magic-u-r-l-session.md deleted file mode 100644 index 1934263b69..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/update-magic-u-r-l-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updateMagicURLSession('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/update-name.md b/docs/examples/1.2.x/client-web/examples/account/update-name.md deleted file mode 100644 index 24a27f1363..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/update-name.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updateName('[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/update-password.md b/docs/examples/1.2.x/client-web/examples/account/update-password.md deleted file mode 100644 index 5ace968e6b..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/update-password.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updatePassword('password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/update-phone-session.md b/docs/examples/1.2.x/client-web/examples/account/update-phone-session.md deleted file mode 100644 index 8ad2051057..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/update-phone-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updatePhoneSession('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/update-phone-verification.md b/docs/examples/1.2.x/client-web/examples/account/update-phone-verification.md deleted file mode 100644 index b96f3bea21..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/update-phone-verification.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updatePhoneVerification('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/update-phone.md b/docs/examples/1.2.x/client-web/examples/account/update-phone.md deleted file mode 100644 index 852ab16538..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/update-phone.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updatePhone('', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/update-prefs.md b/docs/examples/1.2.x/client-web/examples/account/update-prefs.md deleted file mode 100644 index 4948631a27..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/update-prefs.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updatePrefs({}); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/update-recovery.md b/docs/examples/1.2.x/client-web/examples/account/update-recovery.md deleted file mode 100644 index 85915f1ab9..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/update-recovery.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/update-session.md b/docs/examples/1.2.x/client-web/examples/account/update-session.md deleted file mode 100644 index 70fe5faa11..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/update-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updateSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/update-status.md b/docs/examples/1.2.x/client-web/examples/account/update-status.md deleted file mode 100644 index a7c7817338..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/update-status.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updateStatus(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/account/update-verification.md b/docs/examples/1.2.x/client-web/examples/account/update-verification.md deleted file mode 100644 index 27d5cbc2f7..0000000000 --- a/docs/examples/1.2.x/client-web/examples/account/update-verification.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updateVerification('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-browser.md b/docs/examples/1.2.x/client-web/examples/avatars/get-browser.md deleted file mode 100644 index 20480ce124..0000000000 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-browser.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Avatars } from "appwrite"; - -const client = new Client(); - -const avatars = new Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = avatars.getBrowser('aa'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/client-web/examples/avatars/get-credit-card.md deleted file mode 100644 index cdbc4a0067..0000000000 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Avatars } from "appwrite"; - -const client = new Client(); - -const avatars = new Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = avatars.getCreditCard('amex'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-favicon.md b/docs/examples/1.2.x/client-web/examples/avatars/get-favicon.md deleted file mode 100644 index f8db5c378c..0000000000 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-favicon.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Avatars } from "appwrite"; - -const client = new Client(); - -const avatars = new Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = avatars.getFavicon('https://example.com'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-flag.md b/docs/examples/1.2.x/client-web/examples/avatars/get-flag.md deleted file mode 100644 index e609fb299d..0000000000 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-flag.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Avatars } from "appwrite"; - -const client = new Client(); - -const avatars = new Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = avatars.getFlag('af'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-image.md b/docs/examples/1.2.x/client-web/examples/avatars/get-image.md deleted file mode 100644 index 468f6a3c54..0000000000 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-image.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Avatars } from "appwrite"; - -const client = new Client(); - -const avatars = new Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = avatars.getImage('https://example.com'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-initials.md b/docs/examples/1.2.x/client-web/examples/avatars/get-initials.md deleted file mode 100644 index d061813297..0000000000 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-initials.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Avatars } from "appwrite"; - -const client = new Client(); - -const avatars = new Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = avatars.getInitials(); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-q-r.md b/docs/examples/1.2.x/client-web/examples/avatars/get-q-r.md deleted file mode 100644 index 86fed127e9..0000000000 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-q-r.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Avatars } from "appwrite"; - -const client = new Client(); - -const avatars = new Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = avatars.getQR('[TEXT]'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/databases/create-document.md b/docs/examples/1.2.x/client-web/examples/databases/create-document.md deleted file mode 100644 index 5b8d89ad47..0000000000 --- a/docs/examples/1.2.x/client-web/examples/databases/create-document.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.createDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]', {}); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/databases/delete-document.md b/docs/examples/1.2.x/client-web/examples/databases/delete-document.md deleted file mode 100644 index e201280445..0000000000 --- a/docs/examples/1.2.x/client-web/examples/databases/delete-document.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.deleteDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/databases/get-document.md b/docs/examples/1.2.x/client-web/examples/databases/get-document.md deleted file mode 100644 index 89314e880a..0000000000 --- a/docs/examples/1.2.x/client-web/examples/databases/get-document.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.getDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/databases/list-documents.md b/docs/examples/1.2.x/client-web/examples/databases/list-documents.md deleted file mode 100644 index a4afd21031..0000000000 --- a/docs/examples/1.2.x/client-web/examples/databases/list-documents.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.listDocuments('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/databases/update-document.md b/docs/examples/1.2.x/client-web/examples/databases/update-document.md deleted file mode 100644 index 2d59a8ad85..0000000000 --- a/docs/examples/1.2.x/client-web/examples/databases/update-document.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/functions/create-execution.md b/docs/examples/1.2.x/client-web/examples/functions/create-execution.md deleted file mode 100644 index 2b64bc9f7b..0000000000 --- a/docs/examples/1.2.x/client-web/examples/functions/create-execution.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.createExecution('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/functions/get-execution.md b/docs/examples/1.2.x/client-web/examples/functions/get-execution.md deleted file mode 100644 index f5046a08c4..0000000000 --- a/docs/examples/1.2.x/client-web/examples/functions/get-execution.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.getExecution('[FUNCTION_ID]', '[EXECUTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/functions/list-executions.md b/docs/examples/1.2.x/client-web/examples/functions/list-executions.md deleted file mode 100644 index 99186a95de..0000000000 --- a/docs/examples/1.2.x/client-web/examples/functions/list-executions.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.listExecutions('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/graphql/get.md b/docs/examples/1.2.x/client-web/examples/graphql/get.md deleted file mode 100644 index 3528cf73af..0000000000 --- a/docs/examples/1.2.x/client-web/examples/graphql/get.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Graphql } from "appwrite"; - -const client = new Client(); - -const graphql = new Graphql(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = graphql.get('[QUERY]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/graphql/post.md b/docs/examples/1.2.x/client-web/examples/graphql/post.md deleted file mode 100644 index 2f99a264a2..0000000000 --- a/docs/examples/1.2.x/client-web/examples/graphql/post.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Graphql } from "appwrite"; - -const client = new Client(); - -const graphql = new Graphql(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = graphql.post({}); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/locale/get.md b/docs/examples/1.2.x/client-web/examples/locale/get.md deleted file mode 100644 index 634256c83e..0000000000 --- a/docs/examples/1.2.x/client-web/examples/locale/get.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Locale } from "appwrite"; - -const client = new Client(); - -const locale = new Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = locale.get(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-continents.md b/docs/examples/1.2.x/client-web/examples/locale/list-continents.md deleted file mode 100644 index e79a8eab5c..0000000000 --- a/docs/examples/1.2.x/client-web/examples/locale/list-continents.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Locale } from "appwrite"; - -const client = new Client(); - -const locale = new Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = locale.listContinents(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/client-web/examples/locale/list-countries-e-u.md deleted file mode 100644 index 964bed390b..0000000000 --- a/docs/examples/1.2.x/client-web/examples/locale/list-countries-e-u.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Locale } from "appwrite"; - -const client = new Client(); - -const locale = new Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = locale.listCountriesEU(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/client-web/examples/locale/list-countries-phones.md deleted file mode 100644 index 65ec4f4dbd..0000000000 --- a/docs/examples/1.2.x/client-web/examples/locale/list-countries-phones.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Locale } from "appwrite"; - -const client = new Client(); - -const locale = new Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = locale.listCountriesPhones(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-countries.md b/docs/examples/1.2.x/client-web/examples/locale/list-countries.md deleted file mode 100644 index 6b7e8e665f..0000000000 --- a/docs/examples/1.2.x/client-web/examples/locale/list-countries.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Locale } from "appwrite"; - -const client = new Client(); - -const locale = new Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = locale.listCountries(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-currencies.md b/docs/examples/1.2.x/client-web/examples/locale/list-currencies.md deleted file mode 100644 index 3638c2e1bb..0000000000 --- a/docs/examples/1.2.x/client-web/examples/locale/list-currencies.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Locale } from "appwrite"; - -const client = new Client(); - -const locale = new Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = locale.listCurrencies(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-languages.md b/docs/examples/1.2.x/client-web/examples/locale/list-languages.md deleted file mode 100644 index bffa5eb0c6..0000000000 --- a/docs/examples/1.2.x/client-web/examples/locale/list-languages.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Locale } from "appwrite"; - -const client = new Client(); - -const locale = new Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = locale.listLanguages(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/storage/create-file.md b/docs/examples/1.2.x/client-web/examples/storage/create-file.md deleted file mode 100644 index 10992d2b89..0000000000 --- a/docs/examples/1.2.x/client-web/examples/storage/create-file.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', document.getElementById('uploader').files[0]); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/storage/delete-file.md b/docs/examples/1.2.x/client-web/examples/storage/delete-file.md deleted file mode 100644 index 4512a8c1ce..0000000000 --- a/docs/examples/1.2.x/client-web/examples/storage/delete-file.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.deleteFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/storage/get-file-download.md b/docs/examples/1.2.x/client-web/examples/storage/get-file-download.md deleted file mode 100644 index 17c06600b3..0000000000 --- a/docs/examples/1.2.x/client-web/examples/storage/get-file-download.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = storage.getFileDownload('[BUCKET_ID]', '[FILE_ID]'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/storage/get-file-preview.md b/docs/examples/1.2.x/client-web/examples/storage/get-file-preview.md deleted file mode 100644 index 52866d108a..0000000000 --- a/docs/examples/1.2.x/client-web/examples/storage/get-file-preview.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = storage.getFilePreview('[BUCKET_ID]', '[FILE_ID]'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/storage/get-file-view.md b/docs/examples/1.2.x/client-web/examples/storage/get-file-view.md deleted file mode 100644 index 7bb6c67d51..0000000000 --- a/docs/examples/1.2.x/client-web/examples/storage/get-file-view.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = storage.getFileView('[BUCKET_ID]', '[FILE_ID]'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/storage/get-file.md b/docs/examples/1.2.x/client-web/examples/storage/get-file.md deleted file mode 100644 index 3263865c73..0000000000 --- a/docs/examples/1.2.x/client-web/examples/storage/get-file.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.getFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/storage/list-files.md b/docs/examples/1.2.x/client-web/examples/storage/list-files.md deleted file mode 100644 index 92d75742a5..0000000000 --- a/docs/examples/1.2.x/client-web/examples/storage/list-files.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.listFiles('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/storage/update-file.md b/docs/examples/1.2.x/client-web/examples/storage/update-file.md deleted file mode 100644 index 1313e30cff..0000000000 --- a/docs/examples/1.2.x/client-web/examples/storage/update-file.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.updateFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/teams/create-membership.md b/docs/examples/1.2.x/client-web/examples/teams/create-membership.md deleted file mode 100644 index 6cb7d87b7f..0000000000 --- a/docs/examples/1.2.x/client-web/examples/teams/create-membership.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/teams/create.md b/docs/examples/1.2.x/client-web/examples/teams/create.md deleted file mode 100644 index 2c40c9017d..0000000000 --- a/docs/examples/1.2.x/client-web/examples/teams/create.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.create('[TEAM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/teams/delete-membership.md b/docs/examples/1.2.x/client-web/examples/teams/delete-membership.md deleted file mode 100644 index 828674a86f..0000000000 --- a/docs/examples/1.2.x/client-web/examples/teams/delete-membership.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/teams/delete.md b/docs/examples/1.2.x/client-web/examples/teams/delete.md deleted file mode 100644 index b9b79ed1b7..0000000000 --- a/docs/examples/1.2.x/client-web/examples/teams/delete.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.delete('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/teams/get-membership.md b/docs/examples/1.2.x/client-web/examples/teams/get-membership.md deleted file mode 100644 index cce63e7fba..0000000000 --- a/docs/examples/1.2.x/client-web/examples/teams/get-membership.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.getMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/teams/get.md b/docs/examples/1.2.x/client-web/examples/teams/get.md deleted file mode 100644 index 3a7185319a..0000000000 --- a/docs/examples/1.2.x/client-web/examples/teams/get.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.get('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/teams/list-memberships.md b/docs/examples/1.2.x/client-web/examples/teams/list-memberships.md deleted file mode 100644 index 12bef1a6f8..0000000000 --- a/docs/examples/1.2.x/client-web/examples/teams/list-memberships.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.listMemberships('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/teams/list.md b/docs/examples/1.2.x/client-web/examples/teams/list.md deleted file mode 100644 index 1aea267038..0000000000 --- a/docs/examples/1.2.x/client-web/examples/teams/list.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.list(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/client-web/examples/teams/update-membership-roles.md deleted file mode 100644 index ca76ead1d6..0000000000 --- a/docs/examples/1.2.x/client-web/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/teams/update-membership-status.md b/docs/examples/1.2.x/client-web/examples/teams/update-membership-status.md deleted file mode 100644 index 4a29cdc116..0000000000 --- a/docs/examples/1.2.x/client-web/examples/teams/update-membership-status.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/client-web/examples/teams/update.md b/docs/examples/1.2.x/client-web/examples/teams/update.md deleted file mode 100644 index a59cc80000..0000000000 --- a/docs/examples/1.2.x/client-web/examples/teams/update.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.update('[TEAM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-cli/examples/account/create-anonymous-session.md b/docs/examples/1.2.x/console-cli/examples/account/create-anonymous-session.md deleted file mode 100644 index a7eb9c5be3..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/create-anonymous-session.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account createAnonymousSession diff --git a/docs/examples/1.2.x/console-cli/examples/account/create-email-session.md b/docs/examples/1.2.x/console-cli/examples/account/create-email-session.md deleted file mode 100644 index ec9268c77c..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/create-email-session.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account createEmailSession \ - --email email@example.com \ - --password password diff --git a/docs/examples/1.2.x/console-cli/examples/account/create-j-w-t.md b/docs/examples/1.2.x/console-cli/examples/account/create-j-w-t.md deleted file mode 100644 index 7b5337993d..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/create-j-w-t.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account createJWT diff --git a/docs/examples/1.2.x/console-cli/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/console-cli/examples/account/create-magic-u-r-l-session.md deleted file mode 100644 index 0060f2a892..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/create-magic-u-r-l-session.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite account createMagicURLSession \ - --userId [USER_ID] \ - --email email@example.com \ - diff --git a/docs/examples/1.2.x/console-cli/examples/account/create-o-auth2session.md b/docs/examples/1.2.x/console-cli/examples/account/create-o-auth2session.md deleted file mode 100644 index 9159b8f25f..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/create-o-auth2session.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite account createOAuth2Session \ - --provider amazon \ - - - diff --git a/docs/examples/1.2.x/console-cli/examples/account/create-phone-session.md b/docs/examples/1.2.x/console-cli/examples/account/create-phone-session.md deleted file mode 100644 index 8fc3ec6a4c..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/create-phone-session.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account createPhoneSession \ - --userId [USER_ID] \ - --phone '' diff --git a/docs/examples/1.2.x/console-cli/examples/account/create-phone-verification.md b/docs/examples/1.2.x/console-cli/examples/account/create-phone-verification.md deleted file mode 100644 index 3c4402ba1f..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/create-phone-verification.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account createPhoneVerification diff --git a/docs/examples/1.2.x/console-cli/examples/account/create-recovery.md b/docs/examples/1.2.x/console-cli/examples/account/create-recovery.md deleted file mode 100644 index ea8c145abb..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/create-recovery.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account createRecovery \ - --email email@example.com \ - --url https://example.com diff --git a/docs/examples/1.2.x/console-cli/examples/account/create-verification.md b/docs/examples/1.2.x/console-cli/examples/account/create-verification.md deleted file mode 100644 index 402038b4b6..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/create-verification.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account createVerification \ - --url https://example.com diff --git a/docs/examples/1.2.x/console-cli/examples/account/create.md b/docs/examples/1.2.x/console-cli/examples/account/create.md deleted file mode 100644 index 7d2221be29..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/create.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite account create \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - diff --git a/docs/examples/1.2.x/console-cli/examples/account/delete-session.md b/docs/examples/1.2.x/console-cli/examples/account/delete-session.md deleted file mode 100644 index 2c68c1a43b..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/delete-session.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account deleteSession \ - --sessionId [SESSION_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/account/delete-sessions.md b/docs/examples/1.2.x/console-cli/examples/account/delete-sessions.md deleted file mode 100644 index dd11877a5d..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/delete-sessions.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account deleteSessions diff --git a/docs/examples/1.2.x/console-cli/examples/account/get-prefs.md b/docs/examples/1.2.x/console-cli/examples/account/get-prefs.md deleted file mode 100644 index 6569925d99..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/get-prefs.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account getPrefs diff --git a/docs/examples/1.2.x/console-cli/examples/account/get-session.md b/docs/examples/1.2.x/console-cli/examples/account/get-session.md deleted file mode 100644 index fac3fca10d..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/get-session.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account getSession \ - --sessionId [SESSION_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/account/get.md b/docs/examples/1.2.x/console-cli/examples/account/get.md deleted file mode 100644 index c8b46e34c7..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/get.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account get diff --git a/docs/examples/1.2.x/console-cli/examples/account/list-logs.md b/docs/examples/1.2.x/console-cli/examples/account/list-logs.md deleted file mode 100644 index e92f49063a..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/list-logs.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account listLogs \ - diff --git a/docs/examples/1.2.x/console-cli/examples/account/list-sessions.md b/docs/examples/1.2.x/console-cli/examples/account/list-sessions.md deleted file mode 100644 index 87cbab0f66..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/list-sessions.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account listSessions diff --git a/docs/examples/1.2.x/console-cli/examples/account/update-email.md b/docs/examples/1.2.x/console-cli/examples/account/update-email.md deleted file mode 100644 index 81938ff3a9..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/update-email.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account updateEmail \ - --email email@example.com \ - --password password diff --git a/docs/examples/1.2.x/console-cli/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/console-cli/examples/account/update-magic-u-r-l-session.md deleted file mode 100644 index 1411370123..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/update-magic-u-r-l-session.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account updateMagicURLSession \ - --userId [USER_ID] \ - --secret [SECRET] diff --git a/docs/examples/1.2.x/console-cli/examples/account/update-name.md b/docs/examples/1.2.x/console-cli/examples/account/update-name.md deleted file mode 100644 index f4acb58db6..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/update-name.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account updateName \ - --name [NAME] diff --git a/docs/examples/1.2.x/console-cli/examples/account/update-password.md b/docs/examples/1.2.x/console-cli/examples/account/update-password.md deleted file mode 100644 index 520f9bb82e..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/update-password.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account updatePassword \ - --password password \ - diff --git a/docs/examples/1.2.x/console-cli/examples/account/update-phone-session.md b/docs/examples/1.2.x/console-cli/examples/account/update-phone-session.md deleted file mode 100644 index b2ee53a18c..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/update-phone-session.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account updatePhoneSession \ - --userId [USER_ID] \ - --secret [SECRET] diff --git a/docs/examples/1.2.x/console-cli/examples/account/update-phone-verification.md b/docs/examples/1.2.x/console-cli/examples/account/update-phone-verification.md deleted file mode 100644 index 5e0dd45617..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/update-phone-verification.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account updatePhoneVerification \ - --userId [USER_ID] \ - --secret [SECRET] diff --git a/docs/examples/1.2.x/console-cli/examples/account/update-phone.md b/docs/examples/1.2.x/console-cli/examples/account/update-phone.md deleted file mode 100644 index 716cd1040b..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/update-phone.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account updatePhone \ - --phone '' \ - --password password diff --git a/docs/examples/1.2.x/console-cli/examples/account/update-prefs.md b/docs/examples/1.2.x/console-cli/examples/account/update-prefs.md deleted file mode 100644 index 568ac66e48..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/update-prefs.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account updatePrefs \ - --prefs '{ "key": "value" }' diff --git a/docs/examples/1.2.x/console-cli/examples/account/update-recovery.md b/docs/examples/1.2.x/console-cli/examples/account/update-recovery.md deleted file mode 100644 index 7825aac8f0..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/update-recovery.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite account updateRecovery \ - --userId [USER_ID] \ - --secret [SECRET] \ - --password password \ - --passwordAgain password diff --git a/docs/examples/1.2.x/console-cli/examples/account/update-session.md b/docs/examples/1.2.x/console-cli/examples/account/update-session.md deleted file mode 100644 index 56f74565de..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/update-session.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account updateSession \ - --sessionId [SESSION_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/account/update-status.md b/docs/examples/1.2.x/console-cli/examples/account/update-status.md deleted file mode 100644 index 8886dbbc6a..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/update-status.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account updateStatus diff --git a/docs/examples/1.2.x/console-cli/examples/account/update-verification.md b/docs/examples/1.2.x/console-cli/examples/account/update-verification.md deleted file mode 100644 index ff420b5895..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/account/update-verification.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account updateVerification \ - --userId [USER_ID] \ - --secret [SECRET] diff --git a/docs/examples/1.2.x/console-cli/examples/avatars/get-browser.md b/docs/examples/1.2.x/console-cli/examples/avatars/get-browser.md deleted file mode 100644 index 6b4f0b8007..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/avatars/get-browser.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite avatars getBrowser \ - --code aa \ - - - diff --git a/docs/examples/1.2.x/console-cli/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/console-cli/examples/avatars/get-credit-card.md deleted file mode 100644 index 365568ba19..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite avatars getCreditCard \ - --code amex \ - - - diff --git a/docs/examples/1.2.x/console-cli/examples/avatars/get-favicon.md b/docs/examples/1.2.x/console-cli/examples/avatars/get-favicon.md deleted file mode 100644 index c658f1a483..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/avatars/get-favicon.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite avatars getFavicon \ - --url https://example.com diff --git a/docs/examples/1.2.x/console-cli/examples/avatars/get-flag.md b/docs/examples/1.2.x/console-cli/examples/avatars/get-flag.md deleted file mode 100644 index 9f11fef840..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/avatars/get-flag.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite avatars getFlag \ - --code af \ - - - diff --git a/docs/examples/1.2.x/console-cli/examples/avatars/get-image.md b/docs/examples/1.2.x/console-cli/examples/avatars/get-image.md deleted file mode 100644 index 7df150610c..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/avatars/get-image.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite avatars getImage \ - --url https://example.com \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/avatars/get-initials.md b/docs/examples/1.2.x/console-cli/examples/avatars/get-initials.md deleted file mode 100644 index b0b3da71c9..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/avatars/get-initials.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite avatars getInitials \ - - - - diff --git a/docs/examples/1.2.x/console-cli/examples/avatars/get-q-r.md b/docs/examples/1.2.x/console-cli/examples/avatars/get-q-r.md deleted file mode 100644 index 855f33920a..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/avatars/get-q-r.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite avatars getQR \ - --text [TEXT] \ - - - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/console-cli/examples/databases/create-boolean-attribute.md deleted file mode 100644 index 4a5b036b21..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/create-boolean-attribute.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite databases createBooleanAttribute \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/create-collection.md b/docs/examples/1.2.x/console-cli/examples/databases/create-collection.md deleted file mode 100644 index 60b4828b8b..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/create-collection.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite databases createCollection \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --name [NAME] \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/console-cli/examples/databases/create-datetime-attribute.md deleted file mode 100644 index 95b3f3b27f..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/create-datetime-attribute.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite databases createDatetimeAttribute \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/create-document.md b/docs/examples/1.2.x/console-cli/examples/databases/create-document.md deleted file mode 100644 index 6944ac664a..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/create-document.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite databases createDocument \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --documentId [DOCUMENT_ID] \ - --data '{ "key": "value" }' \ - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/console-cli/examples/databases/create-email-attribute.md deleted file mode 100644 index d26ca2acbd..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/create-email-attribute.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite databases createEmailAttribute \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/console-cli/examples/databases/create-enum-attribute.md deleted file mode 100644 index 5bd2fccbfc..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/create-enum-attribute.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite databases createEnumAttribute \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --elements one two three \ - --required false \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/console-cli/examples/databases/create-float-attribute.md deleted file mode 100644 index b0bb3776de..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/create-float-attribute.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite databases createFloatAttribute \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --required false \ - - - - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/create-index.md b/docs/examples/1.2.x/console-cli/examples/databases/create-index.md deleted file mode 100644 index 27c8dfecf5..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/create-index.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite databases createIndex \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --type key \ - --attributes one two three \ - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/console-cli/examples/databases/create-integer-attribute.md deleted file mode 100644 index 76b5aad455..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/create-integer-attribute.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite databases createIntegerAttribute \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --required false \ - - - - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/console-cli/examples/databases/create-ip-attribute.md deleted file mode 100644 index c9281dd316..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/create-ip-attribute.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite databases createIpAttribute \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/console-cli/examples/databases/create-string-attribute.md deleted file mode 100644 index 790aa97edc..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/create-string-attribute.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite databases createStringAttribute \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --size 1 \ - --required false \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/console-cli/examples/databases/create-url-attribute.md deleted file mode 100644 index d204de0c1d..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/create-url-attribute.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite databases createUrlAttribute \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/create.md b/docs/examples/1.2.x/console-cli/examples/databases/create.md deleted file mode 100644 index 02b1484bd0..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/create.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite databases create \ - --databaseId [DATABASE_ID] \ - --name [NAME] diff --git a/docs/examples/1.2.x/console-cli/examples/databases/delete-attribute.md b/docs/examples/1.2.x/console-cli/examples/databases/delete-attribute.md deleted file mode 100644 index 3db88fbfba..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/delete-attribute.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite databases deleteAttribute \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --key '' diff --git a/docs/examples/1.2.x/console-cli/examples/databases/delete-collection.md b/docs/examples/1.2.x/console-cli/examples/databases/delete-collection.md deleted file mode 100644 index f1941d4bf0..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/delete-collection.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite databases deleteCollection \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/databases/delete-document.md b/docs/examples/1.2.x/console-cli/examples/databases/delete-document.md deleted file mode 100644 index 9dc46f7dc6..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/delete-document.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite databases deleteDocument \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --documentId [DOCUMENT_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/databases/delete-index.md b/docs/examples/1.2.x/console-cli/examples/databases/delete-index.md deleted file mode 100644 index 8e7194febf..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/delete-index.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite databases deleteIndex \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --key '' diff --git a/docs/examples/1.2.x/console-cli/examples/databases/delete.md b/docs/examples/1.2.x/console-cli/examples/databases/delete.md deleted file mode 100644 index 851cc8deb2..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/delete.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite databases delete \ - --databaseId [DATABASE_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/databases/get-attribute.md b/docs/examples/1.2.x/console-cli/examples/databases/get-attribute.md deleted file mode 100644 index 3dbb2c44fe..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/get-attribute.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite databases getAttribute \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --key '' diff --git a/docs/examples/1.2.x/console-cli/examples/databases/get-collection-usage.md b/docs/examples/1.2.x/console-cli/examples/databases/get-collection-usage.md deleted file mode 100644 index de8f78665a..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/get-collection-usage.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite databases getCollectionUsage \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/get-collection.md b/docs/examples/1.2.x/console-cli/examples/databases/get-collection.md deleted file mode 100644 index a4f08fbd45..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/get-collection.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite databases getCollection \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/databases/get-database-usage.md b/docs/examples/1.2.x/console-cli/examples/databases/get-database-usage.md deleted file mode 100644 index e4d3e4df3a..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/get-database-usage.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite databases getDatabaseUsage \ - --databaseId [DATABASE_ID] \ - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/get-document.md b/docs/examples/1.2.x/console-cli/examples/databases/get-document.md deleted file mode 100644 index 8142c31bcd..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/get-document.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite databases getDocument \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --documentId [DOCUMENT_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/databases/get-index.md b/docs/examples/1.2.x/console-cli/examples/databases/get-index.md deleted file mode 100644 index b7537897ac..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/get-index.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite databases getIndex \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --key '' diff --git a/docs/examples/1.2.x/console-cli/examples/databases/get-usage.md b/docs/examples/1.2.x/console-cli/examples/databases/get-usage.md deleted file mode 100644 index 53c85fc849..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/get-usage.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite databases getUsage \ - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/get.md b/docs/examples/1.2.x/console-cli/examples/databases/get.md deleted file mode 100644 index feb9a3c859..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/get.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite databases get \ - --databaseId [DATABASE_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/databases/list-attributes.md b/docs/examples/1.2.x/console-cli/examples/databases/list-attributes.md deleted file mode 100644 index 69d4690251..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/list-attributes.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite databases listAttributes \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/databases/list-collection-logs.md b/docs/examples/1.2.x/console-cli/examples/databases/list-collection-logs.md deleted file mode 100644 index fa2f062797..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/list-collection-logs.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite databases listCollectionLogs \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/list-collections.md b/docs/examples/1.2.x/console-cli/examples/databases/list-collections.md deleted file mode 100644 index 6517ebbc16..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/list-collections.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite databases listCollections \ - --databaseId [DATABASE_ID] \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/list-document-logs.md b/docs/examples/1.2.x/console-cli/examples/databases/list-document-logs.md deleted file mode 100644 index 0ab0125d0d..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/list-document-logs.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite databases listDocumentLogs \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --documentId [DOCUMENT_ID] \ - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/list-documents.md b/docs/examples/1.2.x/console-cli/examples/databases/list-documents.md deleted file mode 100644 index 08dcbdf584..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/list-documents.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite databases listDocuments \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/list-indexes.md b/docs/examples/1.2.x/console-cli/examples/databases/list-indexes.md deleted file mode 100644 index 4be6715864..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/list-indexes.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite databases listIndexes \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/databases/list-logs.md b/docs/examples/1.2.x/console-cli/examples/databases/list-logs.md deleted file mode 100644 index f1c44f1f74..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/list-logs.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite databases listLogs \ - --databaseId [DATABASE_ID] \ - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/list.md b/docs/examples/1.2.x/console-cli/examples/databases/list.md deleted file mode 100644 index e723bc32ec..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/list.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite databases list \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/update-collection.md b/docs/examples/1.2.x/console-cli/examples/databases/update-collection.md deleted file mode 100644 index 027d7cc830..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/update-collection.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite databases updateCollection \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --name [NAME] \ - - - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/update-document.md b/docs/examples/1.2.x/console-cli/examples/databases/update-document.md deleted file mode 100644 index d281fe2efe..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/update-document.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite databases updateDocument \ - --databaseId [DATABASE_ID] \ - --collectionId [COLLECTION_ID] \ - --documentId [DOCUMENT_ID] \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/databases/update.md b/docs/examples/1.2.x/console-cli/examples/databases/update.md deleted file mode 100644 index ab60c89f8f..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/databases/update.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite databases update \ - --databaseId [DATABASE_ID] \ - --name [NAME] diff --git a/docs/examples/1.2.x/console-cli/examples/functions/create-build.md b/docs/examples/1.2.x/console-cli/examples/functions/create-build.md deleted file mode 100644 index efbf91ceb7..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/create-build.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite functions createBuild \ - --functionId [FUNCTION_ID] \ - --deploymentId [DEPLOYMENT_ID] \ - --buildId [BUILD_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/functions/create-deployment.md b/docs/examples/1.2.x/console-cli/examples/functions/create-deployment.md deleted file mode 100644 index 91e31739ba..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/create-deployment.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite functions createDeployment \ - --functionId [FUNCTION_ID] \ - --entrypoint [ENTRYPOINT] \ - --code 'path/to/file.png' \ - --activate false diff --git a/docs/examples/1.2.x/console-cli/examples/functions/create-execution.md b/docs/examples/1.2.x/console-cli/examples/functions/create-execution.md deleted file mode 100644 index adcb3cde08..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/create-execution.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite functions createExecution \ - --functionId [FUNCTION_ID] \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/functions/create-variable.md b/docs/examples/1.2.x/console-cli/examples/functions/create-variable.md deleted file mode 100644 index 79b559fa6e..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/create-variable.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite functions createVariable \ - --functionId [FUNCTION_ID] \ - --key [KEY] \ - --value [VALUE] diff --git a/docs/examples/1.2.x/console-cli/examples/functions/create.md b/docs/examples/1.2.x/console-cli/examples/functions/create.md deleted file mode 100644 index c52dd0f685..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/create.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite functions create \ - --functionId [FUNCTION_ID] \ - --name [NAME] \ - --execute "any" \ - --runtime node-14.5 \ - - - - diff --git a/docs/examples/1.2.x/console-cli/examples/functions/delete-deployment.md b/docs/examples/1.2.x/console-cli/examples/functions/delete-deployment.md deleted file mode 100644 index 2033b846ce..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/delete-deployment.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite functions deleteDeployment \ - --functionId [FUNCTION_ID] \ - --deploymentId [DEPLOYMENT_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/functions/delete-variable.md b/docs/examples/1.2.x/console-cli/examples/functions/delete-variable.md deleted file mode 100644 index cb556644ca..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/delete-variable.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite functions deleteVariable \ - --functionId [FUNCTION_ID] \ - --variableId [VARIABLE_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/functions/delete.md b/docs/examples/1.2.x/console-cli/examples/functions/delete.md deleted file mode 100644 index b3ce304016..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/delete.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite functions delete \ - --functionId [FUNCTION_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/functions/get-deployment.md b/docs/examples/1.2.x/console-cli/examples/functions/get-deployment.md deleted file mode 100644 index 668bcde4fe..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/get-deployment.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite functions getDeployment \ - --functionId [FUNCTION_ID] \ - --deploymentId [DEPLOYMENT_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/functions/get-execution.md b/docs/examples/1.2.x/console-cli/examples/functions/get-execution.md deleted file mode 100644 index b6a974766d..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/get-execution.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite functions getExecution \ - --functionId [FUNCTION_ID] \ - --executionId [EXECUTION_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/functions/get-function-usage.md b/docs/examples/1.2.x/console-cli/examples/functions/get-function-usage.md deleted file mode 100644 index 71129c386f..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/get-function-usage.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite functions getFunctionUsage \ - --functionId [FUNCTION_ID] \ - diff --git a/docs/examples/1.2.x/console-cli/examples/functions/get-usage.md b/docs/examples/1.2.x/console-cli/examples/functions/get-usage.md deleted file mode 100644 index a3fe7c38de..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/get-usage.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite functions getUsage \ - diff --git a/docs/examples/1.2.x/console-cli/examples/functions/get-variable.md b/docs/examples/1.2.x/console-cli/examples/functions/get-variable.md deleted file mode 100644 index 8a8bd4832e..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/get-variable.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite functions getVariable \ - --functionId [FUNCTION_ID] \ - --variableId [VARIABLE_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/functions/get.md b/docs/examples/1.2.x/console-cli/examples/functions/get.md deleted file mode 100644 index 0332c4a6aa..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/get.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite functions get \ - --functionId [FUNCTION_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/functions/list-deployments.md b/docs/examples/1.2.x/console-cli/examples/functions/list-deployments.md deleted file mode 100644 index 5ffd5b909f..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/list-deployments.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite functions listDeployments \ - --functionId [FUNCTION_ID] \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/functions/list-executions.md b/docs/examples/1.2.x/console-cli/examples/functions/list-executions.md deleted file mode 100644 index 894cb04426..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/list-executions.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite functions listExecutions \ - --functionId [FUNCTION_ID] \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/functions/list-runtimes.md b/docs/examples/1.2.x/console-cli/examples/functions/list-runtimes.md deleted file mode 100644 index 15dc019c44..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/list-runtimes.md +++ /dev/null @@ -1 +0,0 @@ -appwrite functions listRuntimes diff --git a/docs/examples/1.2.x/console-cli/examples/functions/list-variables.md b/docs/examples/1.2.x/console-cli/examples/functions/list-variables.md deleted file mode 100644 index 3e4df28a86..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/list-variables.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite functions listVariables \ - --functionId [FUNCTION_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/functions/list.md b/docs/examples/1.2.x/console-cli/examples/functions/list.md deleted file mode 100644 index 3b7551266e..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/list.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite functions list \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/functions/update-deployment.md b/docs/examples/1.2.x/console-cli/examples/functions/update-deployment.md deleted file mode 100644 index 7276b3e780..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/update-deployment.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite functions updateDeployment \ - --functionId [FUNCTION_ID] \ - --deploymentId [DEPLOYMENT_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/functions/update-variable.md b/docs/examples/1.2.x/console-cli/examples/functions/update-variable.md deleted file mode 100644 index 56e9ebeb00..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/update-variable.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite functions updateVariable \ - --functionId [FUNCTION_ID] \ - --variableId [VARIABLE_ID] \ - --key [KEY] \ - diff --git a/docs/examples/1.2.x/console-cli/examples/functions/update.md b/docs/examples/1.2.x/console-cli/examples/functions/update.md deleted file mode 100644 index e7e2573dc1..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/functions/update.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite functions update \ - --functionId [FUNCTION_ID] \ - --name [NAME] \ - --execute "any" \ - - - - diff --git a/docs/examples/1.2.x/console-cli/examples/graphql/get.md b/docs/examples/1.2.x/console-cli/examples/graphql/get.md deleted file mode 100644 index 0063caba15..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/graphql/get.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite graphql get \ - --query [QUERY] \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/graphql/post.md b/docs/examples/1.2.x/console-cli/examples/graphql/post.md deleted file mode 100644 index c27e470b6b..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/graphql/post.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite graphql post \ - --query '{ "key": "value" }' diff --git a/docs/examples/1.2.x/console-cli/examples/health/get-antivirus.md b/docs/examples/1.2.x/console-cli/examples/health/get-antivirus.md deleted file mode 100644 index 96dd7e78b2..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/health/get-antivirus.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getAntivirus diff --git a/docs/examples/1.2.x/console-cli/examples/health/get-cache.md b/docs/examples/1.2.x/console-cli/examples/health/get-cache.md deleted file mode 100644 index ad1111ccf0..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/health/get-cache.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getCache diff --git a/docs/examples/1.2.x/console-cli/examples/health/get-d-b.md b/docs/examples/1.2.x/console-cli/examples/health/get-d-b.md deleted file mode 100644 index b0ea2d3eac..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/health/get-d-b.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getDB diff --git a/docs/examples/1.2.x/console-cli/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/console-cli/examples/health/get-queue-certificates.md deleted file mode 100644 index 7cae239389..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/health/get-queue-certificates.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getQueueCertificates diff --git a/docs/examples/1.2.x/console-cli/examples/health/get-queue-functions.md b/docs/examples/1.2.x/console-cli/examples/health/get-queue-functions.md deleted file mode 100644 index 9edfddac62..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/health/get-queue-functions.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getQueueFunctions diff --git a/docs/examples/1.2.x/console-cli/examples/health/get-queue-logs.md b/docs/examples/1.2.x/console-cli/examples/health/get-queue-logs.md deleted file mode 100644 index 9a0974934b..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/health/get-queue-logs.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getQueueLogs diff --git a/docs/examples/1.2.x/console-cli/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/console-cli/examples/health/get-queue-webhooks.md deleted file mode 100644 index f38eaa4e77..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getQueueWebhooks diff --git a/docs/examples/1.2.x/console-cli/examples/health/get-storage-local.md b/docs/examples/1.2.x/console-cli/examples/health/get-storage-local.md deleted file mode 100644 index b5df39fae0..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/health/get-storage-local.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getStorageLocal diff --git a/docs/examples/1.2.x/console-cli/examples/health/get-time.md b/docs/examples/1.2.x/console-cli/examples/health/get-time.md deleted file mode 100644 index 067e5daf9e..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/health/get-time.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getTime diff --git a/docs/examples/1.2.x/console-cli/examples/health/get.md b/docs/examples/1.2.x/console-cli/examples/health/get.md deleted file mode 100644 index 94c08e5aa3..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/health/get.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health get diff --git a/docs/examples/1.2.x/console-cli/examples/locale/get.md b/docs/examples/1.2.x/console-cli/examples/locale/get.md deleted file mode 100644 index 2002a06c20..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/locale/get.md +++ /dev/null @@ -1 +0,0 @@ -appwrite locale get diff --git a/docs/examples/1.2.x/console-cli/examples/locale/list-continents.md b/docs/examples/1.2.x/console-cli/examples/locale/list-continents.md deleted file mode 100644 index 775af5d9df..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/locale/list-continents.md +++ /dev/null @@ -1 +0,0 @@ -appwrite locale listContinents diff --git a/docs/examples/1.2.x/console-cli/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/console-cli/examples/locale/list-countries-e-u.md deleted file mode 100644 index 43b7eff7ad..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/locale/list-countries-e-u.md +++ /dev/null @@ -1 +0,0 @@ -appwrite locale listCountriesEU diff --git a/docs/examples/1.2.x/console-cli/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/console-cli/examples/locale/list-countries-phones.md deleted file mode 100644 index 072516bf71..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/locale/list-countries-phones.md +++ /dev/null @@ -1 +0,0 @@ -appwrite locale listCountriesPhones diff --git a/docs/examples/1.2.x/console-cli/examples/locale/list-countries.md b/docs/examples/1.2.x/console-cli/examples/locale/list-countries.md deleted file mode 100644 index ee7101df68..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/locale/list-countries.md +++ /dev/null @@ -1 +0,0 @@ -appwrite locale listCountries diff --git a/docs/examples/1.2.x/console-cli/examples/locale/list-currencies.md b/docs/examples/1.2.x/console-cli/examples/locale/list-currencies.md deleted file mode 100644 index 01b1b3c4b2..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/locale/list-currencies.md +++ /dev/null @@ -1 +0,0 @@ -appwrite locale listCurrencies diff --git a/docs/examples/1.2.x/console-cli/examples/locale/list-languages.md b/docs/examples/1.2.x/console-cli/examples/locale/list-languages.md deleted file mode 100644 index d47622c570..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/locale/list-languages.md +++ /dev/null @@ -1 +0,0 @@ -appwrite locale listLanguages diff --git a/docs/examples/1.2.x/console-cli/examples/projects/create-domain.md b/docs/examples/1.2.x/console-cli/examples/projects/create-domain.md deleted file mode 100644 index 6ae89ccf27..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/create-domain.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects createDomain \ - --projectId [PROJECT_ID] \ - --domain '' diff --git a/docs/examples/1.2.x/console-cli/examples/projects/create-key.md b/docs/examples/1.2.x/console-cli/examples/projects/create-key.md deleted file mode 100644 index 14112865c5..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/create-key.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite projects createKey \ - --projectId [PROJECT_ID] \ - --name [NAME] \ - --scopes one two three \ - diff --git a/docs/examples/1.2.x/console-cli/examples/projects/create-platform.md b/docs/examples/1.2.x/console-cli/examples/projects/create-platform.md deleted file mode 100644 index 1374f510e2..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/create-platform.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite projects createPlatform \ - --projectId [PROJECT_ID] \ - --type web \ - --name [NAME] \ - - - diff --git a/docs/examples/1.2.x/console-cli/examples/projects/create-webhook.md b/docs/examples/1.2.x/console-cli/examples/projects/create-webhook.md deleted file mode 100644 index 2eaacd167f..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/create-webhook.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite projects createWebhook \ - --projectId [PROJECT_ID] \ - --name [NAME] \ - --events one two three \ - --url https://example.com \ - --security false \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/projects/create.md b/docs/examples/1.2.x/console-cli/examples/projects/create.md deleted file mode 100644 index 292892fbc8..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/create.md +++ /dev/null @@ -1,14 +0,0 @@ -appwrite projects create \ - --projectId [PROJECT_ID] \ - --name [NAME] \ - --teamId [TEAM_ID] \ - --region default \ - - - - - - - - - diff --git a/docs/examples/1.2.x/console-cli/examples/projects/delete-domain.md b/docs/examples/1.2.x/console-cli/examples/projects/delete-domain.md deleted file mode 100644 index c4690086e1..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/delete-domain.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects deleteDomain \ - --projectId [PROJECT_ID] \ - --domainId [DOMAIN_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/projects/delete-key.md b/docs/examples/1.2.x/console-cli/examples/projects/delete-key.md deleted file mode 100644 index 48f97cf529..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/delete-key.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects deleteKey \ - --projectId [PROJECT_ID] \ - --keyId [KEY_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/projects/delete-platform.md b/docs/examples/1.2.x/console-cli/examples/projects/delete-platform.md deleted file mode 100644 index 9e14cb5b69..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/delete-platform.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects deletePlatform \ - --projectId [PROJECT_ID] \ - --platformId [PLATFORM_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/projects/delete-webhook.md b/docs/examples/1.2.x/console-cli/examples/projects/delete-webhook.md deleted file mode 100644 index 1235e737c4..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/delete-webhook.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects deleteWebhook \ - --projectId [PROJECT_ID] \ - --webhookId [WEBHOOK_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/projects/delete.md b/docs/examples/1.2.x/console-cli/examples/projects/delete.md deleted file mode 100644 index 99a21b1127..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/delete.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects delete \ - --projectId [PROJECT_ID] \ - --password password diff --git a/docs/examples/1.2.x/console-cli/examples/projects/get-domain.md b/docs/examples/1.2.x/console-cli/examples/projects/get-domain.md deleted file mode 100644 index 367679aa4e..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/get-domain.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects getDomain \ - --projectId [PROJECT_ID] \ - --domainId [DOMAIN_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/projects/get-key.md b/docs/examples/1.2.x/console-cli/examples/projects/get-key.md deleted file mode 100644 index 75548d21b3..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/get-key.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects getKey \ - --projectId [PROJECT_ID] \ - --keyId [KEY_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/projects/get-platform.md b/docs/examples/1.2.x/console-cli/examples/projects/get-platform.md deleted file mode 100644 index 97432f00a2..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/get-platform.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects getPlatform \ - --projectId [PROJECT_ID] \ - --platformId [PLATFORM_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/projects/get-usage.md b/docs/examples/1.2.x/console-cli/examples/projects/get-usage.md deleted file mode 100644 index a10e474c14..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/get-usage.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects getUsage \ - --projectId [PROJECT_ID] \ - diff --git a/docs/examples/1.2.x/console-cli/examples/projects/get-webhook.md b/docs/examples/1.2.x/console-cli/examples/projects/get-webhook.md deleted file mode 100644 index b51a78c247..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/get-webhook.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects getWebhook \ - --projectId [PROJECT_ID] \ - --webhookId [WEBHOOK_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/projects/get.md b/docs/examples/1.2.x/console-cli/examples/projects/get.md deleted file mode 100644 index b0589ea3e7..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/get.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite projects get \ - --projectId [PROJECT_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/projects/list-domains.md b/docs/examples/1.2.x/console-cli/examples/projects/list-domains.md deleted file mode 100644 index 29677137bc..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/list-domains.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite projects listDomains \ - --projectId [PROJECT_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/projects/list-keys.md b/docs/examples/1.2.x/console-cli/examples/projects/list-keys.md deleted file mode 100644 index aba2fab9e1..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/list-keys.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite projects listKeys \ - --projectId [PROJECT_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/projects/list-platforms.md b/docs/examples/1.2.x/console-cli/examples/projects/list-platforms.md deleted file mode 100644 index cd7ae3760f..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/list-platforms.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite projects listPlatforms \ - --projectId [PROJECT_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/projects/list-webhooks.md b/docs/examples/1.2.x/console-cli/examples/projects/list-webhooks.md deleted file mode 100644 index cda3f1e5c8..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/list-webhooks.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite projects listWebhooks \ - --projectId [PROJECT_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/projects/list.md b/docs/examples/1.2.x/console-cli/examples/projects/list.md deleted file mode 100644 index 0d3dd7a539..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/list.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects list \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/projects/update-auth-limit.md b/docs/examples/1.2.x/console-cli/examples/projects/update-auth-limit.md deleted file mode 100644 index 0f59c9600c..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/update-auth-limit.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects updateAuthLimit \ - --projectId [PROJECT_ID] \ - --limit 0 diff --git a/docs/examples/1.2.x/console-cli/examples/projects/update-auth-status.md b/docs/examples/1.2.x/console-cli/examples/projects/update-auth-status.md deleted file mode 100644 index c4348c1b09..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/update-auth-status.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite projects updateAuthStatus \ - --projectId [PROJECT_ID] \ - --method email-password \ - --status false diff --git a/docs/examples/1.2.x/console-cli/examples/projects/update-domain-verification.md b/docs/examples/1.2.x/console-cli/examples/projects/update-domain-verification.md deleted file mode 100644 index bb07cdba78..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/update-domain-verification.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects updateDomainVerification \ - --projectId [PROJECT_ID] \ - --domainId [DOMAIN_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/projects/update-key.md b/docs/examples/1.2.x/console-cli/examples/projects/update-key.md deleted file mode 100644 index 97a004b5a2..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/update-key.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite projects updateKey \ - --projectId [PROJECT_ID] \ - --keyId [KEY_ID] \ - --name [NAME] \ - --scopes one two three \ - diff --git a/docs/examples/1.2.x/console-cli/examples/projects/update-o-auth2.md b/docs/examples/1.2.x/console-cli/examples/projects/update-o-auth2.md deleted file mode 100644 index bf9dea665a..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/update-o-auth2.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite projects updateOAuth2 \ - --projectId [PROJECT_ID] \ - --provider amazon \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/projects/update-platform.md b/docs/examples/1.2.x/console-cli/examples/projects/update-platform.md deleted file mode 100644 index 77268a4ee7..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/update-platform.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite projects updatePlatform \ - --projectId [PROJECT_ID] \ - --platformId [PLATFORM_ID] \ - --name [NAME] \ - - - diff --git a/docs/examples/1.2.x/console-cli/examples/projects/update-service-status.md b/docs/examples/1.2.x/console-cli/examples/projects/update-service-status.md deleted file mode 100644 index 4cfd9f9f3c..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/update-service-status.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite projects updateServiceStatus \ - --projectId [PROJECT_ID] \ - --service account \ - --status false diff --git a/docs/examples/1.2.x/console-cli/examples/projects/update-webhook-signature.md b/docs/examples/1.2.x/console-cli/examples/projects/update-webhook-signature.md deleted file mode 100644 index 1040b491e8..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/update-webhook-signature.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects updateWebhookSignature \ - --projectId [PROJECT_ID] \ - --webhookId [WEBHOOK_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/projects/update-webhook.md b/docs/examples/1.2.x/console-cli/examples/projects/update-webhook.md deleted file mode 100644 index 98517cbfa8..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/update-webhook.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite projects updateWebhook \ - --projectId [PROJECT_ID] \ - --webhookId [WEBHOOK_ID] \ - --name [NAME] \ - --events one two three \ - --url https://example.com \ - --security false \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/projects/update.md b/docs/examples/1.2.x/console-cli/examples/projects/update.md deleted file mode 100644 index 83e99a1a8a..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/projects/update.md +++ /dev/null @@ -1,12 +0,0 @@ -appwrite projects update \ - --projectId [PROJECT_ID] \ - --name [NAME] \ - - - - - - - - - diff --git a/docs/examples/1.2.x/console-cli/examples/storage/create-bucket.md b/docs/examples/1.2.x/console-cli/examples/storage/create-bucket.md deleted file mode 100644 index 25666885f7..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/storage/create-bucket.md +++ /dev/null @@ -1,11 +0,0 @@ -appwrite storage createBucket \ - --bucketId [BUCKET_ID] \ - --name [NAME] \ - - - - - - - - diff --git a/docs/examples/1.2.x/console-cli/examples/storage/create-file.md b/docs/examples/1.2.x/console-cli/examples/storage/create-file.md deleted file mode 100644 index e13b8d0e98..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/storage/create-file.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite storage createFile \ - --bucketId [BUCKET_ID] \ - --fileId [FILE_ID] \ - --file 'path/to/file.png' \ - diff --git a/docs/examples/1.2.x/console-cli/examples/storage/delete-bucket.md b/docs/examples/1.2.x/console-cli/examples/storage/delete-bucket.md deleted file mode 100644 index 178a6a4b3a..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/storage/delete-bucket.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite storage deleteBucket \ - --bucketId [BUCKET_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/storage/delete-file.md b/docs/examples/1.2.x/console-cli/examples/storage/delete-file.md deleted file mode 100644 index 0275f87172..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/storage/delete-file.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite storage deleteFile \ - --bucketId [BUCKET_ID] \ - --fileId [FILE_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/storage/get-bucket-usage.md b/docs/examples/1.2.x/console-cli/examples/storage/get-bucket-usage.md deleted file mode 100644 index 930575e2e9..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/storage/get-bucket-usage.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite storage getBucketUsage \ - --bucketId [BUCKET_ID] \ - diff --git a/docs/examples/1.2.x/console-cli/examples/storage/get-bucket.md b/docs/examples/1.2.x/console-cli/examples/storage/get-bucket.md deleted file mode 100644 index 76479be7d6..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/storage/get-bucket.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite storage getBucket \ - --bucketId [BUCKET_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/storage/get-file-download.md b/docs/examples/1.2.x/console-cli/examples/storage/get-file-download.md deleted file mode 100644 index 637c7db1da..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/storage/get-file-download.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite storage getFileDownload \ - --bucketId [BUCKET_ID] \ - --fileId [FILE_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/storage/get-file-preview.md b/docs/examples/1.2.x/console-cli/examples/storage/get-file-preview.md deleted file mode 100644 index 309088506b..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/storage/get-file-preview.md +++ /dev/null @@ -1,14 +0,0 @@ -appwrite storage getFilePreview \ - --bucketId [BUCKET_ID] \ - --fileId [FILE_ID] \ - - - - - - - - - - - diff --git a/docs/examples/1.2.x/console-cli/examples/storage/get-file-view.md b/docs/examples/1.2.x/console-cli/examples/storage/get-file-view.md deleted file mode 100644 index a8500f3597..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/storage/get-file-view.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite storage getFileView \ - --bucketId [BUCKET_ID] \ - --fileId [FILE_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/storage/get-file.md b/docs/examples/1.2.x/console-cli/examples/storage/get-file.md deleted file mode 100644 index f556ef1d5c..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/storage/get-file.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite storage getFile \ - --bucketId [BUCKET_ID] \ - --fileId [FILE_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/storage/get-usage.md b/docs/examples/1.2.x/console-cli/examples/storage/get-usage.md deleted file mode 100644 index 29466e02f0..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/storage/get-usage.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite storage getUsage \ - diff --git a/docs/examples/1.2.x/console-cli/examples/storage/list-buckets.md b/docs/examples/1.2.x/console-cli/examples/storage/list-buckets.md deleted file mode 100644 index a5cad1988f..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/storage/list-buckets.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite storage listBuckets \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/storage/list-files.md b/docs/examples/1.2.x/console-cli/examples/storage/list-files.md deleted file mode 100644 index 062781feaf..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/storage/list-files.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite storage listFiles \ - --bucketId [BUCKET_ID] \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/storage/update-bucket.md b/docs/examples/1.2.x/console-cli/examples/storage/update-bucket.md deleted file mode 100644 index 96132f4551..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/storage/update-bucket.md +++ /dev/null @@ -1,11 +0,0 @@ -appwrite storage updateBucket \ - --bucketId [BUCKET_ID] \ - --name [NAME] \ - - - - - - - - diff --git a/docs/examples/1.2.x/console-cli/examples/storage/update-file.md b/docs/examples/1.2.x/console-cli/examples/storage/update-file.md deleted file mode 100644 index 295cb65743..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/storage/update-file.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite storage updateFile \ - --bucketId [BUCKET_ID] \ - --fileId [FILE_ID] \ - diff --git a/docs/examples/1.2.x/console-cli/examples/teams/create-membership.md b/docs/examples/1.2.x/console-cli/examples/teams/create-membership.md deleted file mode 100644 index 351213c078..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/teams/create-membership.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite teams createMembership \ - --teamId [TEAM_ID] \ - --email email@example.com \ - --roles one two three \ - --url https://example.com \ - diff --git a/docs/examples/1.2.x/console-cli/examples/teams/create.md b/docs/examples/1.2.x/console-cli/examples/teams/create.md deleted file mode 100644 index 3704d02d0b..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/teams/create.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite teams create \ - --teamId [TEAM_ID] \ - --name [NAME] \ - diff --git a/docs/examples/1.2.x/console-cli/examples/teams/delete-membership.md b/docs/examples/1.2.x/console-cli/examples/teams/delete-membership.md deleted file mode 100644 index 6aaaf8902b..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/teams/delete-membership.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite teams deleteMembership \ - --teamId [TEAM_ID] \ - --membershipId [MEMBERSHIP_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/teams/delete.md b/docs/examples/1.2.x/console-cli/examples/teams/delete.md deleted file mode 100644 index 0a4d554b1b..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/teams/delete.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite teams delete \ - --teamId [TEAM_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/teams/get-membership.md b/docs/examples/1.2.x/console-cli/examples/teams/get-membership.md deleted file mode 100644 index 25d11863b9..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/teams/get-membership.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite teams getMembership \ - --teamId [TEAM_ID] \ - --membershipId [MEMBERSHIP_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/teams/get.md b/docs/examples/1.2.x/console-cli/examples/teams/get.md deleted file mode 100644 index 111aff623b..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/teams/get.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite teams get \ - --teamId [TEAM_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/teams/list-logs.md b/docs/examples/1.2.x/console-cli/examples/teams/list-logs.md deleted file mode 100644 index 81e09b93c3..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/teams/list-logs.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite teams listLogs \ - --teamId [TEAM_ID] \ - diff --git a/docs/examples/1.2.x/console-cli/examples/teams/list-memberships.md b/docs/examples/1.2.x/console-cli/examples/teams/list-memberships.md deleted file mode 100644 index 367227fd08..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/teams/list-memberships.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite teams listMemberships \ - --teamId [TEAM_ID] \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/teams/list.md b/docs/examples/1.2.x/console-cli/examples/teams/list.md deleted file mode 100644 index dfffc4d4dd..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/teams/list.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite teams list \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/console-cli/examples/teams/update-membership-roles.md deleted file mode 100644 index c6684d2f65..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite teams updateMembershipRoles \ - --teamId [TEAM_ID] \ - --membershipId [MEMBERSHIP_ID] \ - --roles one two three diff --git a/docs/examples/1.2.x/console-cli/examples/teams/update-membership-status.md b/docs/examples/1.2.x/console-cli/examples/teams/update-membership-status.md deleted file mode 100644 index 0f3efc413a..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/teams/update-membership-status.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite teams updateMembershipStatus \ - --teamId [TEAM_ID] \ - --membershipId [MEMBERSHIP_ID] \ - --userId [USER_ID] \ - --secret [SECRET] diff --git a/docs/examples/1.2.x/console-cli/examples/teams/update.md b/docs/examples/1.2.x/console-cli/examples/teams/update.md deleted file mode 100644 index 4298ea519a..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/teams/update.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite teams update \ - --teamId [TEAM_ID] \ - --name [NAME] diff --git a/docs/examples/1.2.x/console-cli/examples/users/create-argon2user.md b/docs/examples/1.2.x/console-cli/examples/users/create-argon2user.md deleted file mode 100644 index e215603b23..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/create-argon2user.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite users createArgon2User \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - diff --git a/docs/examples/1.2.x/console-cli/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/console-cli/examples/users/create-bcrypt-user.md deleted file mode 100644 index b4f121266b..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite users createBcryptUser \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - diff --git a/docs/examples/1.2.x/console-cli/examples/users/create-m-d5user.md b/docs/examples/1.2.x/console-cli/examples/users/create-m-d5user.md deleted file mode 100644 index 4bb8cb4531..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/create-m-d5user.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite users createMD5User \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - diff --git a/docs/examples/1.2.x/console-cli/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/console-cli/examples/users/create-p-h-pass-user.md deleted file mode 100644 index c0ebd7b0ec..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite users createPHPassUser \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - diff --git a/docs/examples/1.2.x/console-cli/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/console-cli/examples/users/create-s-h-a-user.md deleted file mode 100644 index 3aae965b68..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite users createSHAUser \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/console-cli/examples/users/create-scrypt-modified-user.md deleted file mode 100644 index 73b62b8424..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/create-scrypt-modified-user.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite users createScryptModifiedUser \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - --passwordSalt [PASSWORD_SALT] \ - --passwordSaltSeparator [PASSWORD_SALT_SEPARATOR] \ - --passwordSignerKey [PASSWORD_SIGNER_KEY] \ - diff --git a/docs/examples/1.2.x/console-cli/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/console-cli/examples/users/create-scrypt-user.md deleted file mode 100644 index 595231ed11..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/create-scrypt-user.md +++ /dev/null @@ -1,10 +0,0 @@ -appwrite users createScryptUser \ - --userId [USER_ID] \ - --email email@example.com \ - --password password \ - --passwordSalt [PASSWORD_SALT] \ - --passwordCpu null \ - --passwordMemory null \ - --passwordParallel null \ - --passwordLength null \ - diff --git a/docs/examples/1.2.x/console-cli/examples/users/create.md b/docs/examples/1.2.x/console-cli/examples/users/create.md deleted file mode 100644 index c8a0d67003..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/create.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite users create \ - --userId [USER_ID] \ - - - - diff --git a/docs/examples/1.2.x/console-cli/examples/users/delete-session.md b/docs/examples/1.2.x/console-cli/examples/users/delete-session.md deleted file mode 100644 index e4b7632cf7..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/delete-session.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users deleteSession \ - --userId [USER_ID] \ - --sessionId [SESSION_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/users/delete-sessions.md b/docs/examples/1.2.x/console-cli/examples/users/delete-sessions.md deleted file mode 100644 index 16c2c3a070..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/delete-sessions.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite users deleteSessions \ - --userId [USER_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/users/delete.md b/docs/examples/1.2.x/console-cli/examples/users/delete.md deleted file mode 100644 index 9c24060965..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/delete.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite users delete \ - --userId [USER_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/users/get-prefs.md b/docs/examples/1.2.x/console-cli/examples/users/get-prefs.md deleted file mode 100644 index 1aa1b1e332..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/get-prefs.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite users getPrefs \ - --userId [USER_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/users/get-usage.md b/docs/examples/1.2.x/console-cli/examples/users/get-usage.md deleted file mode 100644 index 860cdc0c42..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/get-usage.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users getUsage \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/users/get.md b/docs/examples/1.2.x/console-cli/examples/users/get.md deleted file mode 100644 index 95f44afecf..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/get.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite users get \ - --userId [USER_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/users/list-logs.md b/docs/examples/1.2.x/console-cli/examples/users/list-logs.md deleted file mode 100644 index 257576fdb7..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/list-logs.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users listLogs \ - --userId [USER_ID] \ - diff --git a/docs/examples/1.2.x/console-cli/examples/users/list-memberships.md b/docs/examples/1.2.x/console-cli/examples/users/list-memberships.md deleted file mode 100644 index 44516c7a90..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/list-memberships.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite users listMemberships \ - --userId [USER_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/users/list-sessions.md b/docs/examples/1.2.x/console-cli/examples/users/list-sessions.md deleted file mode 100644 index 2717411d22..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/list-sessions.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite users listSessions \ - --userId [USER_ID] diff --git a/docs/examples/1.2.x/console-cli/examples/users/list.md b/docs/examples/1.2.x/console-cli/examples/users/list.md deleted file mode 100644 index e5fdb9e5c5..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/list.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users list \ - - diff --git a/docs/examples/1.2.x/console-cli/examples/users/update-email-verification.md b/docs/examples/1.2.x/console-cli/examples/users/update-email-verification.md deleted file mode 100644 index ab87d52212..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/update-email-verification.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users updateEmailVerification \ - --userId [USER_ID] \ - --emailVerification false diff --git a/docs/examples/1.2.x/console-cli/examples/users/update-email.md b/docs/examples/1.2.x/console-cli/examples/users/update-email.md deleted file mode 100644 index be8bb11607..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/update-email.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users updateEmail \ - --userId [USER_ID] \ - --email email@example.com diff --git a/docs/examples/1.2.x/console-cli/examples/users/update-name.md b/docs/examples/1.2.x/console-cli/examples/users/update-name.md deleted file mode 100644 index ce9cad511b..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/update-name.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users updateName \ - --userId [USER_ID] \ - --name [NAME] diff --git a/docs/examples/1.2.x/console-cli/examples/users/update-password.md b/docs/examples/1.2.x/console-cli/examples/users/update-password.md deleted file mode 100644 index 1678467102..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/update-password.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users updatePassword \ - --userId [USER_ID] \ - --password password diff --git a/docs/examples/1.2.x/console-cli/examples/users/update-phone-verification.md b/docs/examples/1.2.x/console-cli/examples/users/update-phone-verification.md deleted file mode 100644 index 4cea770bd0..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/update-phone-verification.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users updatePhoneVerification \ - --userId [USER_ID] \ - --phoneVerification false diff --git a/docs/examples/1.2.x/console-cli/examples/users/update-phone.md b/docs/examples/1.2.x/console-cli/examples/users/update-phone.md deleted file mode 100644 index 047dbe98b1..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/update-phone.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users updatePhone \ - --userId [USER_ID] \ - --number '' diff --git a/docs/examples/1.2.x/console-cli/examples/users/update-prefs.md b/docs/examples/1.2.x/console-cli/examples/users/update-prefs.md deleted file mode 100644 index cc4a7422ac..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/update-prefs.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users updatePrefs \ - --userId [USER_ID] \ - --prefs '{ "key": "value" }' diff --git a/docs/examples/1.2.x/console-cli/examples/users/update-status.md b/docs/examples/1.2.x/console-cli/examples/users/update-status.md deleted file mode 100644 index 6bc10ee5de..0000000000 --- a/docs/examples/1.2.x/console-cli/examples/users/update-status.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users updateStatus \ - --userId [USER_ID] \ - --status false diff --git a/docs/examples/1.2.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/1.2.x/console-web/examples/account/create-anonymous-session.md deleted file mode 100644 index a1ff484477..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/create-anonymous-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.createAnonymousSession(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/create-email-session.md b/docs/examples/1.2.x/console-web/examples/account/create-email-session.md deleted file mode 100644 index 43a0aa25a0..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/create-email-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.createEmailSession('email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/create-j-w-t.md b/docs/examples/1.2.x/console-web/examples/account/create-j-w-t.md deleted file mode 100644 index 3b5c7ed679..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/create-j-w-t.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.createJWT(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/console-web/examples/account/create-magic-u-r-l-session.md deleted file mode 100644 index 9339d6742c..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/create-magic-u-r-l-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.createMagicURLSession('[USER_ID]', 'email@example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/1.2.x/console-web/examples/account/create-o-auth2session.md deleted file mode 100644 index 25e67b15ec..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/create-o-auth2session.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -// Go to OAuth provider login page -account.createOAuth2Session('amazon'); - diff --git a/docs/examples/1.2.x/console-web/examples/account/create-phone-session.md b/docs/examples/1.2.x/console-web/examples/account/create-phone-session.md deleted file mode 100644 index 465dbe4e49..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/create-phone-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.createPhoneSession('[USER_ID]', ''); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/create-phone-verification.md b/docs/examples/1.2.x/console-web/examples/account/create-phone-verification.md deleted file mode 100644 index f325a9210f..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/create-phone-verification.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.createPhoneVerification(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/create-recovery.md b/docs/examples/1.2.x/console-web/examples/account/create-recovery.md deleted file mode 100644 index 4f737edf3d..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/create-recovery.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.createRecovery('email@example.com', 'https://example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/create-verification.md b/docs/examples/1.2.x/console-web/examples/account/create-verification.md deleted file mode 100644 index 0e7162c8cf..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/create-verification.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.createVerification('https://example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/create.md b/docs/examples/1.2.x/console-web/examples/account/create.md deleted file mode 100644 index 5b275bd1ba..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/create.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.create('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/delete-session.md b/docs/examples/1.2.x/console-web/examples/account/delete-session.md deleted file mode 100644 index a23a1f25e5..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/delete-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.deleteSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/delete-sessions.md b/docs/examples/1.2.x/console-web/examples/account/delete-sessions.md deleted file mode 100644 index 58495385f1..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/delete-sessions.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.deleteSessions(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/get-prefs.md b/docs/examples/1.2.x/console-web/examples/account/get-prefs.md deleted file mode 100644 index a355c68ee0..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/get-prefs.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.getPrefs(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/get-session.md b/docs/examples/1.2.x/console-web/examples/account/get-session.md deleted file mode 100644 index dd0c08633e..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/get-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.getSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/get.md b/docs/examples/1.2.x/console-web/examples/account/get.md deleted file mode 100644 index fd26ad70dc..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/get.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.get(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/list-logs.md b/docs/examples/1.2.x/console-web/examples/account/list-logs.md deleted file mode 100644 index 4ce60e4314..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/list-logs.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.listLogs(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/list-sessions.md b/docs/examples/1.2.x/console-web/examples/account/list-sessions.md deleted file mode 100644 index d7e901c406..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/list-sessions.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.listSessions(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/update-email.md b/docs/examples/1.2.x/console-web/examples/account/update-email.md deleted file mode 100644 index 6e3d603801..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/update-email.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updateEmail('email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/console-web/examples/account/update-magic-u-r-l-session.md deleted file mode 100644 index 1934263b69..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/update-magic-u-r-l-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updateMagicURLSession('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/update-name.md b/docs/examples/1.2.x/console-web/examples/account/update-name.md deleted file mode 100644 index 24a27f1363..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/update-name.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updateName('[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/update-password.md b/docs/examples/1.2.x/console-web/examples/account/update-password.md deleted file mode 100644 index 5ace968e6b..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/update-password.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updatePassword('password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/update-phone-session.md b/docs/examples/1.2.x/console-web/examples/account/update-phone-session.md deleted file mode 100644 index 8ad2051057..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/update-phone-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updatePhoneSession('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/update-phone-verification.md b/docs/examples/1.2.x/console-web/examples/account/update-phone-verification.md deleted file mode 100644 index b96f3bea21..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/update-phone-verification.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updatePhoneVerification('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/update-phone.md b/docs/examples/1.2.x/console-web/examples/account/update-phone.md deleted file mode 100644 index 852ab16538..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/update-phone.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updatePhone('', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/update-prefs.md b/docs/examples/1.2.x/console-web/examples/account/update-prefs.md deleted file mode 100644 index 4948631a27..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/update-prefs.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updatePrefs({}); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/update-recovery.md b/docs/examples/1.2.x/console-web/examples/account/update-recovery.md deleted file mode 100644 index 85915f1ab9..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/update-recovery.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/update-session.md b/docs/examples/1.2.x/console-web/examples/account/update-session.md deleted file mode 100644 index 70fe5faa11..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/update-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updateSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/update-status.md b/docs/examples/1.2.x/console-web/examples/account/update-status.md deleted file mode 100644 index a7c7817338..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/update-status.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updateStatus(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/account/update-verification.md b/docs/examples/1.2.x/console-web/examples/account/update-verification.md deleted file mode 100644 index 27d5cbc2f7..0000000000 --- a/docs/examples/1.2.x/console-web/examples/account/update-verification.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client(); - -const account = new Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = account.updateVerification('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-browser.md b/docs/examples/1.2.x/console-web/examples/avatars/get-browser.md deleted file mode 100644 index 20480ce124..0000000000 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-browser.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Avatars } from "appwrite"; - -const client = new Client(); - -const avatars = new Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = avatars.getBrowser('aa'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/console-web/examples/avatars/get-credit-card.md deleted file mode 100644 index cdbc4a0067..0000000000 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Avatars } from "appwrite"; - -const client = new Client(); - -const avatars = new Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = avatars.getCreditCard('amex'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-favicon.md b/docs/examples/1.2.x/console-web/examples/avatars/get-favicon.md deleted file mode 100644 index f8db5c378c..0000000000 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-favicon.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Avatars } from "appwrite"; - -const client = new Client(); - -const avatars = new Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = avatars.getFavicon('https://example.com'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-flag.md b/docs/examples/1.2.x/console-web/examples/avatars/get-flag.md deleted file mode 100644 index e609fb299d..0000000000 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-flag.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Avatars } from "appwrite"; - -const client = new Client(); - -const avatars = new Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = avatars.getFlag('af'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-image.md b/docs/examples/1.2.x/console-web/examples/avatars/get-image.md deleted file mode 100644 index 468f6a3c54..0000000000 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-image.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Avatars } from "appwrite"; - -const client = new Client(); - -const avatars = new Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = avatars.getImage('https://example.com'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-initials.md b/docs/examples/1.2.x/console-web/examples/avatars/get-initials.md deleted file mode 100644 index d061813297..0000000000 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-initials.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Avatars } from "appwrite"; - -const client = new Client(); - -const avatars = new Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = avatars.getInitials(); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-q-r.md b/docs/examples/1.2.x/console-web/examples/avatars/get-q-r.md deleted file mode 100644 index 86fed127e9..0000000000 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-q-r.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Avatars } from "appwrite"; - -const client = new Client(); - -const avatars = new Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = avatars.getQR('[TEXT]'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-boolean-attribute.md deleted file mode 100644 index b8a2143814..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/create-boolean-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.createBooleanAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-collection.md b/docs/examples/1.2.x/console-web/examples/databases/create-collection.md deleted file mode 100644 index d5367d03bc..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/create-collection.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.createCollection('[DATABASE_ID]', '[COLLECTION_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-datetime-attribute.md deleted file mode 100644 index a3921bbf2b..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/create-datetime-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.createDatetimeAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-document.md b/docs/examples/1.2.x/console-web/examples/databases/create-document.md deleted file mode 100644 index 5b8d89ad47..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/create-document.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.createDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]', {}); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-email-attribute.md deleted file mode 100644 index 50557c0742..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/create-email-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.createEmailAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-enum-attribute.md deleted file mode 100644 index 92e8fae071..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/create-enum-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.createEnumAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', [], false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-float-attribute.md deleted file mode 100644 index 4c4159f625..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/create-float-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.createFloatAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-index.md b/docs/examples/1.2.x/console-web/examples/databases/create-index.md deleted file mode 100644 index b706ae69e5..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/create-index.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.createIndex('[DATABASE_ID]', '[COLLECTION_ID]', '', 'key', []); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-integer-attribute.md deleted file mode 100644 index 534a61d29b..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/create-integer-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.createIntegerAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-ip-attribute.md deleted file mode 100644 index 9ef9ad780c..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/create-ip-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.createIpAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-string-attribute.md deleted file mode 100644 index 1553ea92f1..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/create-string-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.createStringAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', 1, false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-url-attribute.md deleted file mode 100644 index 8e75affb69..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/create-url-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.createUrlAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/create.md b/docs/examples/1.2.x/console-web/examples/databases/create.md deleted file mode 100644 index 7936a85aa5..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/create.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.create('[DATABASE_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/delete-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/delete-attribute.md deleted file mode 100644 index 8a2ec9b4e5..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/delete-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.deleteAttribute('[DATABASE_ID]', '[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/delete-collection.md b/docs/examples/1.2.x/console-web/examples/databases/delete-collection.md deleted file mode 100644 index 724ae217cf..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/delete-collection.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.deleteCollection('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/delete-document.md b/docs/examples/1.2.x/console-web/examples/databases/delete-document.md deleted file mode 100644 index e201280445..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/delete-document.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.deleteDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/delete-index.md b/docs/examples/1.2.x/console-web/examples/databases/delete-index.md deleted file mode 100644 index ecd0b48009..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/delete-index.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.deleteIndex('[DATABASE_ID]', '[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/delete.md b/docs/examples/1.2.x/console-web/examples/databases/delete.md deleted file mode 100644 index a625395209..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/delete.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.delete('[DATABASE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/get-attribute.md deleted file mode 100644 index de4352449d..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/get-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.getAttribute('[DATABASE_ID]', '[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-collection-usage.md b/docs/examples/1.2.x/console-web/examples/databases/get-collection-usage.md deleted file mode 100644 index 67fc1702de..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/get-collection-usage.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.getCollectionUsage('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-collection.md b/docs/examples/1.2.x/console-web/examples/databases/get-collection.md deleted file mode 100644 index ec069bc3bb..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/get-collection.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.getCollection('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-database-usage.md b/docs/examples/1.2.x/console-web/examples/databases/get-database-usage.md deleted file mode 100644 index d9cbedcdbb..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/get-database-usage.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.getDatabaseUsage('[DATABASE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-document.md b/docs/examples/1.2.x/console-web/examples/databases/get-document.md deleted file mode 100644 index 89314e880a..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/get-document.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.getDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-index.md b/docs/examples/1.2.x/console-web/examples/databases/get-index.md deleted file mode 100644 index ccb19134ef..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/get-index.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.getIndex('[DATABASE_ID]', '[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-usage.md b/docs/examples/1.2.x/console-web/examples/databases/get-usage.md deleted file mode 100644 index 9408c58613..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/get-usage.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.getUsage(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/get.md b/docs/examples/1.2.x/console-web/examples/databases/get.md deleted file mode 100644 index 0f376138c5..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/get.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.get('[DATABASE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-attributes.md b/docs/examples/1.2.x/console-web/examples/databases/list-attributes.md deleted file mode 100644 index 22f0df4830..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/list-attributes.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.listAttributes('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-collection-logs.md b/docs/examples/1.2.x/console-web/examples/databases/list-collection-logs.md deleted file mode 100644 index d8cf623af1..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/list-collection-logs.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.listCollectionLogs('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-collections.md b/docs/examples/1.2.x/console-web/examples/databases/list-collections.md deleted file mode 100644 index 5f757022de..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/list-collections.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.listCollections('[DATABASE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-document-logs.md b/docs/examples/1.2.x/console-web/examples/databases/list-document-logs.md deleted file mode 100644 index 220fb282d5..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/list-document-logs.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.listDocumentLogs('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-documents.md b/docs/examples/1.2.x/console-web/examples/databases/list-documents.md deleted file mode 100644 index a4afd21031..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/list-documents.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.listDocuments('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-indexes.md b/docs/examples/1.2.x/console-web/examples/databases/list-indexes.md deleted file mode 100644 index 33dfdd3f7d..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/list-indexes.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.listIndexes('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-logs.md b/docs/examples/1.2.x/console-web/examples/databases/list-logs.md deleted file mode 100644 index e9af3195af..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/list-logs.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.listLogs('[DATABASE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/list.md b/docs/examples/1.2.x/console-web/examples/databases/list.md deleted file mode 100644 index 44a0fd9436..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/list.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.list(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/update-collection.md b/docs/examples/1.2.x/console-web/examples/databases/update-collection.md deleted file mode 100644 index a46583f436..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/update-collection.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.updateCollection('[DATABASE_ID]', '[COLLECTION_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/update-document.md b/docs/examples/1.2.x/console-web/examples/databases/update-document.md deleted file mode 100644 index 2d59a8ad85..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/update-document.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/databases/update.md b/docs/examples/1.2.x/console-web/examples/databases/update.md deleted file mode 100644 index 3bb577d50b..0000000000 --- a/docs/examples/1.2.x/console-web/examples/databases/update.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client(); - -const databases = new Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = databases.update('[DATABASE_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/create-build.md b/docs/examples/1.2.x/console-web/examples/functions/create-build.md deleted file mode 100644 index 6e99308986..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/create-build.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.createBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.2.x/console-web/examples/functions/create-deployment.md deleted file mode 100644 index 57687bc535..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/create-deployment.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', document.getElementById('uploader').files[0], false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/create-execution.md b/docs/examples/1.2.x/console-web/examples/functions/create-execution.md deleted file mode 100644 index 2b64bc9f7b..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/create-execution.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.createExecution('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/create-variable.md b/docs/examples/1.2.x/console-web/examples/functions/create-variable.md deleted file mode 100644 index 972830719e..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/create-variable.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.createVariable('[FUNCTION_ID]', '[KEY]', '[VALUE]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/create.md b/docs/examples/1.2.x/console-web/examples/functions/create.md deleted file mode 100644 index 4fe6fec973..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/create.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.create('[FUNCTION_ID]', '[NAME]', ["any"], 'node-14.5'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/delete-deployment.md b/docs/examples/1.2.x/console-web/examples/functions/delete-deployment.md deleted file mode 100644 index 8f2c646401..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/delete-deployment.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.deleteDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/delete-variable.md b/docs/examples/1.2.x/console-web/examples/functions/delete-variable.md deleted file mode 100644 index 5cb80d2106..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/delete-variable.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.deleteVariable('[FUNCTION_ID]', '[VARIABLE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/delete.md b/docs/examples/1.2.x/console-web/examples/functions/delete.md deleted file mode 100644 index 4ac987df81..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/delete.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.delete('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/get-deployment.md b/docs/examples/1.2.x/console-web/examples/functions/get-deployment.md deleted file mode 100644 index a07fb7e844..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/get-deployment.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.getDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/get-execution.md b/docs/examples/1.2.x/console-web/examples/functions/get-execution.md deleted file mode 100644 index f5046a08c4..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/get-execution.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.getExecution('[FUNCTION_ID]', '[EXECUTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/get-function-usage.md b/docs/examples/1.2.x/console-web/examples/functions/get-function-usage.md deleted file mode 100644 index f9d416319f..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/get-function-usage.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.getFunctionUsage('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/get-usage.md b/docs/examples/1.2.x/console-web/examples/functions/get-usage.md deleted file mode 100644 index d183a45f19..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/get-usage.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.getUsage(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/get-variable.md b/docs/examples/1.2.x/console-web/examples/functions/get-variable.md deleted file mode 100644 index cca9639434..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/get-variable.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.getVariable('[FUNCTION_ID]', '[VARIABLE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/get.md b/docs/examples/1.2.x/console-web/examples/functions/get.md deleted file mode 100644 index b6e32b5171..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/get.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.get('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/list-deployments.md b/docs/examples/1.2.x/console-web/examples/functions/list-deployments.md deleted file mode 100644 index 843dd07a61..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/list-deployments.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.listDeployments('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/list-executions.md b/docs/examples/1.2.x/console-web/examples/functions/list-executions.md deleted file mode 100644 index 99186a95de..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/list-executions.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.listExecutions('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/list-runtimes.md b/docs/examples/1.2.x/console-web/examples/functions/list-runtimes.md deleted file mode 100644 index d5e1f6630e..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/list-runtimes.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.listRuntimes(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/list-variables.md b/docs/examples/1.2.x/console-web/examples/functions/list-variables.md deleted file mode 100644 index 9461ce60f0..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/list-variables.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.listVariables('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/list.md b/docs/examples/1.2.x/console-web/examples/functions/list.md deleted file mode 100644 index 730a90fff6..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/list.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.list(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/update-deployment.md b/docs/examples/1.2.x/console-web/examples/functions/update-deployment.md deleted file mode 100644 index b231ae593e..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/update-deployment.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.updateDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/update-variable.md b/docs/examples/1.2.x/console-web/examples/functions/update-variable.md deleted file mode 100644 index b3f0439644..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/update-variable.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.updateVariable('[FUNCTION_ID]', '[VARIABLE_ID]', '[KEY]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/functions/update.md b/docs/examples/1.2.x/console-web/examples/functions/update.md deleted file mode 100644 index c025fc73a7..0000000000 --- a/docs/examples/1.2.x/console-web/examples/functions/update.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client(); - -const functions = new Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = functions.update('[FUNCTION_ID]', '[NAME]', ["any"]); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/graphql/get.md b/docs/examples/1.2.x/console-web/examples/graphql/get.md deleted file mode 100644 index 3528cf73af..0000000000 --- a/docs/examples/1.2.x/console-web/examples/graphql/get.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Graphql } from "appwrite"; - -const client = new Client(); - -const graphql = new Graphql(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = graphql.get('[QUERY]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/graphql/post.md b/docs/examples/1.2.x/console-web/examples/graphql/post.md deleted file mode 100644 index 2f99a264a2..0000000000 --- a/docs/examples/1.2.x/console-web/examples/graphql/post.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Graphql } from "appwrite"; - -const client = new Client(); - -const graphql = new Graphql(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = graphql.post({}); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/health/get-antivirus.md b/docs/examples/1.2.x/console-web/examples/health/get-antivirus.md deleted file mode 100644 index 0b14fa8acf..0000000000 --- a/docs/examples/1.2.x/console-web/examples/health/get-antivirus.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Health } from "appwrite"; - -const client = new Client(); - -const health = new Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = health.getAntivirus(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/health/get-cache.md b/docs/examples/1.2.x/console-web/examples/health/get-cache.md deleted file mode 100644 index a754f9be93..0000000000 --- a/docs/examples/1.2.x/console-web/examples/health/get-cache.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Health } from "appwrite"; - -const client = new Client(); - -const health = new Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = health.getCache(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/health/get-d-b.md b/docs/examples/1.2.x/console-web/examples/health/get-d-b.md deleted file mode 100644 index 86ff4a7d84..0000000000 --- a/docs/examples/1.2.x/console-web/examples/health/get-d-b.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Health } from "appwrite"; - -const client = new Client(); - -const health = new Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = health.getDB(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/console-web/examples/health/get-queue-certificates.md deleted file mode 100644 index 2b4dc05c37..0000000000 --- a/docs/examples/1.2.x/console-web/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Health } from "appwrite"; - -const client = new Client(); - -const health = new Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = health.getQueueCertificates(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/health/get-queue-functions.md b/docs/examples/1.2.x/console-web/examples/health/get-queue-functions.md deleted file mode 100644 index 9d6f3b7f7d..0000000000 --- a/docs/examples/1.2.x/console-web/examples/health/get-queue-functions.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Health } from "appwrite"; - -const client = new Client(); - -const health = new Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = health.getQueueFunctions(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/health/get-queue-logs.md b/docs/examples/1.2.x/console-web/examples/health/get-queue-logs.md deleted file mode 100644 index 010e603f92..0000000000 --- a/docs/examples/1.2.x/console-web/examples/health/get-queue-logs.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Health } from "appwrite"; - -const client = new Client(); - -const health = new Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = health.getQueueLogs(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/console-web/examples/health/get-queue-webhooks.md deleted file mode 100644 index 2687863f12..0000000000 --- a/docs/examples/1.2.x/console-web/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Health } from "appwrite"; - -const client = new Client(); - -const health = new Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = health.getQueueWebhooks(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/health/get-storage-local.md b/docs/examples/1.2.x/console-web/examples/health/get-storage-local.md deleted file mode 100644 index b11daa2fec..0000000000 --- a/docs/examples/1.2.x/console-web/examples/health/get-storage-local.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Health } from "appwrite"; - -const client = new Client(); - -const health = new Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = health.getStorageLocal(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/health/get-time.md b/docs/examples/1.2.x/console-web/examples/health/get-time.md deleted file mode 100644 index 1f617e13a2..0000000000 --- a/docs/examples/1.2.x/console-web/examples/health/get-time.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Health } from "appwrite"; - -const client = new Client(); - -const health = new Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = health.getTime(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/health/get.md b/docs/examples/1.2.x/console-web/examples/health/get.md deleted file mode 100644 index b1d6be4509..0000000000 --- a/docs/examples/1.2.x/console-web/examples/health/get.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Health } from "appwrite"; - -const client = new Client(); - -const health = new Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = health.get(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/locale/get.md b/docs/examples/1.2.x/console-web/examples/locale/get.md deleted file mode 100644 index 634256c83e..0000000000 --- a/docs/examples/1.2.x/console-web/examples/locale/get.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Locale } from "appwrite"; - -const client = new Client(); - -const locale = new Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = locale.get(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-continents.md b/docs/examples/1.2.x/console-web/examples/locale/list-continents.md deleted file mode 100644 index e79a8eab5c..0000000000 --- a/docs/examples/1.2.x/console-web/examples/locale/list-continents.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Locale } from "appwrite"; - -const client = new Client(); - -const locale = new Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = locale.listContinents(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/console-web/examples/locale/list-countries-e-u.md deleted file mode 100644 index 964bed390b..0000000000 --- a/docs/examples/1.2.x/console-web/examples/locale/list-countries-e-u.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Locale } from "appwrite"; - -const client = new Client(); - -const locale = new Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = locale.listCountriesEU(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/console-web/examples/locale/list-countries-phones.md deleted file mode 100644 index 65ec4f4dbd..0000000000 --- a/docs/examples/1.2.x/console-web/examples/locale/list-countries-phones.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Locale } from "appwrite"; - -const client = new Client(); - -const locale = new Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = locale.listCountriesPhones(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-countries.md b/docs/examples/1.2.x/console-web/examples/locale/list-countries.md deleted file mode 100644 index 6b7e8e665f..0000000000 --- a/docs/examples/1.2.x/console-web/examples/locale/list-countries.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Locale } from "appwrite"; - -const client = new Client(); - -const locale = new Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = locale.listCountries(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-currencies.md b/docs/examples/1.2.x/console-web/examples/locale/list-currencies.md deleted file mode 100644 index 3638c2e1bb..0000000000 --- a/docs/examples/1.2.x/console-web/examples/locale/list-currencies.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Locale } from "appwrite"; - -const client = new Client(); - -const locale = new Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = locale.listCurrencies(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-languages.md b/docs/examples/1.2.x/console-web/examples/locale/list-languages.md deleted file mode 100644 index bffa5eb0c6..0000000000 --- a/docs/examples/1.2.x/console-web/examples/locale/list-languages.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Locale } from "appwrite"; - -const client = new Client(); - -const locale = new Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = locale.listLanguages(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/create-domain.md b/docs/examples/1.2.x/console-web/examples/projects/create-domain.md deleted file mode 100644 index 452a594c48..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/create-domain.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.createDomain('[PROJECT_ID]', ''); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/create-key.md b/docs/examples/1.2.x/console-web/examples/projects/create-key.md deleted file mode 100644 index 8bd57d54c6..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/create-key.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.createKey('[PROJECT_ID]', '[NAME]', []); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/create-platform.md b/docs/examples/1.2.x/console-web/examples/projects/create-platform.md deleted file mode 100644 index c2c6a030b4..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/create-platform.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.createPlatform('[PROJECT_ID]', 'web', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/create-webhook.md b/docs/examples/1.2.x/console-web/examples/projects/create-webhook.md deleted file mode 100644 index 1469e6b30f..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/create-webhook.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.createWebhook('[PROJECT_ID]', '[NAME]', [], 'https://example.com', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/create.md b/docs/examples/1.2.x/console-web/examples/projects/create.md deleted file mode 100644 index 940b998324..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/create.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.create('[PROJECT_ID]', '[NAME]', '[TEAM_ID]', 'default'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/delete-domain.md b/docs/examples/1.2.x/console-web/examples/projects/delete-domain.md deleted file mode 100644 index 266d343ae1..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/delete-domain.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.deleteDomain('[PROJECT_ID]', '[DOMAIN_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/delete-key.md b/docs/examples/1.2.x/console-web/examples/projects/delete-key.md deleted file mode 100644 index 0b227e7f1a..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/delete-key.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.deleteKey('[PROJECT_ID]', '[KEY_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/delete-platform.md b/docs/examples/1.2.x/console-web/examples/projects/delete-platform.md deleted file mode 100644 index 681362017c..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/delete-platform.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.deletePlatform('[PROJECT_ID]', '[PLATFORM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/delete-webhook.md b/docs/examples/1.2.x/console-web/examples/projects/delete-webhook.md deleted file mode 100644 index 3edbdadb07..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/delete-webhook.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.deleteWebhook('[PROJECT_ID]', '[WEBHOOK_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/delete.md b/docs/examples/1.2.x/console-web/examples/projects/delete.md deleted file mode 100644 index 1e479709e9..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/delete.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.delete('[PROJECT_ID]', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/get-domain.md b/docs/examples/1.2.x/console-web/examples/projects/get-domain.md deleted file mode 100644 index a90d5eec33..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/get-domain.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.getDomain('[PROJECT_ID]', '[DOMAIN_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/get-key.md b/docs/examples/1.2.x/console-web/examples/projects/get-key.md deleted file mode 100644 index 59a4224f78..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/get-key.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.getKey('[PROJECT_ID]', '[KEY_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/get-platform.md b/docs/examples/1.2.x/console-web/examples/projects/get-platform.md deleted file mode 100644 index 8eaea3371b..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/get-platform.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.getPlatform('[PROJECT_ID]', '[PLATFORM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/get-usage.md b/docs/examples/1.2.x/console-web/examples/projects/get-usage.md deleted file mode 100644 index be7ee4379e..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/get-usage.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.getUsage('[PROJECT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/get-webhook.md b/docs/examples/1.2.x/console-web/examples/projects/get-webhook.md deleted file mode 100644 index b636a797ee..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/get-webhook.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.getWebhook('[PROJECT_ID]', '[WEBHOOK_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/get.md b/docs/examples/1.2.x/console-web/examples/projects/get.md deleted file mode 100644 index ac20f56023..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/get.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.get('[PROJECT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/list-domains.md b/docs/examples/1.2.x/console-web/examples/projects/list-domains.md deleted file mode 100644 index 2c4a7415d2..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/list-domains.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.listDomains('[PROJECT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/list-keys.md b/docs/examples/1.2.x/console-web/examples/projects/list-keys.md deleted file mode 100644 index 957531a892..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/list-keys.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.listKeys('[PROJECT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/list-platforms.md b/docs/examples/1.2.x/console-web/examples/projects/list-platforms.md deleted file mode 100644 index 100be04115..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/list-platforms.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.listPlatforms('[PROJECT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/list-webhooks.md b/docs/examples/1.2.x/console-web/examples/projects/list-webhooks.md deleted file mode 100644 index 093b9e91f7..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/list-webhooks.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.listWebhooks('[PROJECT_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/list.md b/docs/examples/1.2.x/console-web/examples/projects/list.md deleted file mode 100644 index a576843401..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/list.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.list(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/1.2.x/console-web/examples/projects/update-auth-limit.md deleted file mode 100644 index 7cc850ad2e..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/update-auth-limit.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.updateAuthLimit('[PROJECT_ID]', 0); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-auth-status.md b/docs/examples/1.2.x/console-web/examples/projects/update-auth-status.md deleted file mode 100644 index 400d5a4f7b..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/update-auth-status.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.updateAuthStatus('[PROJECT_ID]', 'email-password', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-domain-verification.md b/docs/examples/1.2.x/console-web/examples/projects/update-domain-verification.md deleted file mode 100644 index c632ad10fb..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/update-domain-verification.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.updateDomainVerification('[PROJECT_ID]', '[DOMAIN_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-key.md b/docs/examples/1.2.x/console-web/examples/projects/update-key.md deleted file mode 100644 index 627bf6c38b..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/update-key.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.updateKey('[PROJECT_ID]', '[KEY_ID]', '[NAME]', []); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/1.2.x/console-web/examples/projects/update-o-auth2.md deleted file mode 100644 index df22de53d3..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/update-o-auth2.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.updateOAuth2('[PROJECT_ID]', 'amazon'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-platform.md b/docs/examples/1.2.x/console-web/examples/projects/update-platform.md deleted file mode 100644 index 0d6b91999e..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/update-platform.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.updatePlatform('[PROJECT_ID]', '[PLATFORM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-service-status.md b/docs/examples/1.2.x/console-web/examples/projects/update-service-status.md deleted file mode 100644 index ae95091908..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/update-service-status.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.updateServiceStatus('[PROJECT_ID]', 'account', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-webhook-signature.md b/docs/examples/1.2.x/console-web/examples/projects/update-webhook-signature.md deleted file mode 100644 index 3545f9a50a..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/update-webhook-signature.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.updateWebhookSignature('[PROJECT_ID]', '[WEBHOOK_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-webhook.md b/docs/examples/1.2.x/console-web/examples/projects/update-webhook.md deleted file mode 100644 index 45ecb8b02d..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/update-webhook.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], 'https://example.com', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/projects/update.md b/docs/examples/1.2.x/console-web/examples/projects/update.md deleted file mode 100644 index 661eb11920..0000000000 --- a/docs/examples/1.2.x/console-web/examples/projects/update.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Projects } from "appwrite"; - -const client = new Client(); - -const projects = new Projects(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = projects.update('[PROJECT_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/storage/create-bucket.md b/docs/examples/1.2.x/console-web/examples/storage/create-bucket.md deleted file mode 100644 index e2c8bb3c5d..0000000000 --- a/docs/examples/1.2.x/console-web/examples/storage/create-bucket.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.createBucket('[BUCKET_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/storage/create-file.md b/docs/examples/1.2.x/console-web/examples/storage/create-file.md deleted file mode 100644 index 10992d2b89..0000000000 --- a/docs/examples/1.2.x/console-web/examples/storage/create-file.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', document.getElementById('uploader').files[0]); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/storage/delete-bucket.md b/docs/examples/1.2.x/console-web/examples/storage/delete-bucket.md deleted file mode 100644 index a8580f9a08..0000000000 --- a/docs/examples/1.2.x/console-web/examples/storage/delete-bucket.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.deleteBucket('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/storage/delete-file.md b/docs/examples/1.2.x/console-web/examples/storage/delete-file.md deleted file mode 100644 index 4512a8c1ce..0000000000 --- a/docs/examples/1.2.x/console-web/examples/storage/delete-file.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.deleteFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-bucket-usage.md b/docs/examples/1.2.x/console-web/examples/storage/get-bucket-usage.md deleted file mode 100644 index 61ef7fa956..0000000000 --- a/docs/examples/1.2.x/console-web/examples/storage/get-bucket-usage.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.getBucketUsage('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-bucket.md b/docs/examples/1.2.x/console-web/examples/storage/get-bucket.md deleted file mode 100644 index 3ffd9f3b42..0000000000 --- a/docs/examples/1.2.x/console-web/examples/storage/get-bucket.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.getBucket('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-file-download.md b/docs/examples/1.2.x/console-web/examples/storage/get-file-download.md deleted file mode 100644 index 17c06600b3..0000000000 --- a/docs/examples/1.2.x/console-web/examples/storage/get-file-download.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = storage.getFileDownload('[BUCKET_ID]', '[FILE_ID]'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-file-preview.md b/docs/examples/1.2.x/console-web/examples/storage/get-file-preview.md deleted file mode 100644 index 52866d108a..0000000000 --- a/docs/examples/1.2.x/console-web/examples/storage/get-file-preview.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = storage.getFilePreview('[BUCKET_ID]', '[FILE_ID]'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-file-view.md b/docs/examples/1.2.x/console-web/examples/storage/get-file-view.md deleted file mode 100644 index 7bb6c67d51..0000000000 --- a/docs/examples/1.2.x/console-web/examples/storage/get-file-view.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const result = storage.getFileView('[BUCKET_ID]', '[FILE_ID]'); - -console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-file.md b/docs/examples/1.2.x/console-web/examples/storage/get-file.md deleted file mode 100644 index 3263865c73..0000000000 --- a/docs/examples/1.2.x/console-web/examples/storage/get-file.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.getFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-usage.md b/docs/examples/1.2.x/console-web/examples/storage/get-usage.md deleted file mode 100644 index a5ce5853e9..0000000000 --- a/docs/examples/1.2.x/console-web/examples/storage/get-usage.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.getUsage(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/storage/list-buckets.md b/docs/examples/1.2.x/console-web/examples/storage/list-buckets.md deleted file mode 100644 index 4f916c1536..0000000000 --- a/docs/examples/1.2.x/console-web/examples/storage/list-buckets.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.listBuckets(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/storage/list-files.md b/docs/examples/1.2.x/console-web/examples/storage/list-files.md deleted file mode 100644 index 92d75742a5..0000000000 --- a/docs/examples/1.2.x/console-web/examples/storage/list-files.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.listFiles('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/storage/update-bucket.md b/docs/examples/1.2.x/console-web/examples/storage/update-bucket.md deleted file mode 100644 index c0b6b41fab..0000000000 --- a/docs/examples/1.2.x/console-web/examples/storage/update-bucket.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.updateBucket('[BUCKET_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/storage/update-file.md b/docs/examples/1.2.x/console-web/examples/storage/update-file.md deleted file mode 100644 index 1313e30cff..0000000000 --- a/docs/examples/1.2.x/console-web/examples/storage/update-file.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Storage } from "appwrite"; - -const client = new Client(); - -const storage = new Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = storage.updateFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/teams/create-membership.md b/docs/examples/1.2.x/console-web/examples/teams/create-membership.md deleted file mode 100644 index 6cb7d87b7f..0000000000 --- a/docs/examples/1.2.x/console-web/examples/teams/create-membership.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/teams/create.md b/docs/examples/1.2.x/console-web/examples/teams/create.md deleted file mode 100644 index 2c40c9017d..0000000000 --- a/docs/examples/1.2.x/console-web/examples/teams/create.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.create('[TEAM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/teams/delete-membership.md b/docs/examples/1.2.x/console-web/examples/teams/delete-membership.md deleted file mode 100644 index 828674a86f..0000000000 --- a/docs/examples/1.2.x/console-web/examples/teams/delete-membership.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/teams/delete.md b/docs/examples/1.2.x/console-web/examples/teams/delete.md deleted file mode 100644 index b9b79ed1b7..0000000000 --- a/docs/examples/1.2.x/console-web/examples/teams/delete.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.delete('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/teams/get-membership.md b/docs/examples/1.2.x/console-web/examples/teams/get-membership.md deleted file mode 100644 index cce63e7fba..0000000000 --- a/docs/examples/1.2.x/console-web/examples/teams/get-membership.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.getMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/teams/get.md b/docs/examples/1.2.x/console-web/examples/teams/get.md deleted file mode 100644 index 3a7185319a..0000000000 --- a/docs/examples/1.2.x/console-web/examples/teams/get.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.get('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/teams/list-logs.md b/docs/examples/1.2.x/console-web/examples/teams/list-logs.md deleted file mode 100644 index f5120d5b21..0000000000 --- a/docs/examples/1.2.x/console-web/examples/teams/list-logs.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.listLogs('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/teams/list-memberships.md b/docs/examples/1.2.x/console-web/examples/teams/list-memberships.md deleted file mode 100644 index 12bef1a6f8..0000000000 --- a/docs/examples/1.2.x/console-web/examples/teams/list-memberships.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.listMemberships('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/teams/list.md b/docs/examples/1.2.x/console-web/examples/teams/list.md deleted file mode 100644 index 1aea267038..0000000000 --- a/docs/examples/1.2.x/console-web/examples/teams/list.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.list(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/console-web/examples/teams/update-membership-roles.md deleted file mode 100644 index ca76ead1d6..0000000000 --- a/docs/examples/1.2.x/console-web/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/teams/update-membership-status.md b/docs/examples/1.2.x/console-web/examples/teams/update-membership-status.md deleted file mode 100644 index 4a29cdc116..0000000000 --- a/docs/examples/1.2.x/console-web/examples/teams/update-membership-status.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/teams/update.md b/docs/examples/1.2.x/console-web/examples/teams/update.md deleted file mode 100644 index a59cc80000..0000000000 --- a/docs/examples/1.2.x/console-web/examples/teams/update.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Teams } from "appwrite"; - -const client = new Client(); - -const teams = new Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = teams.update('[TEAM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/create-argon2user.md b/docs/examples/1.2.x/console-web/examples/users/create-argon2user.md deleted file mode 100644 index e63f9cc083..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/create-argon2user.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.createArgon2User('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/console-web/examples/users/create-bcrypt-user.md deleted file mode 100644 index 615ebcd8db..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.createBcryptUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/create-m-d5user.md b/docs/examples/1.2.x/console-web/examples/users/create-m-d5user.md deleted file mode 100644 index 75778f0c66..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/create-m-d5user.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.createMD5User('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/console-web/examples/users/create-p-h-pass-user.md deleted file mode 100644 index 054ae92691..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.createPHPassUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/console-web/examples/users/create-s-h-a-user.md deleted file mode 100644 index 1213596592..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.createSHAUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/console-web/examples/users/create-scrypt-modified-user.md deleted file mode 100644 index de022f1aa1..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/create-scrypt-modified-user.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.createScryptModifiedUser('[USER_ID]', 'email@example.com', 'password', '[PASSWORD_SALT]', '[PASSWORD_SALT_SEPARATOR]', '[PASSWORD_SIGNER_KEY]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/console-web/examples/users/create-scrypt-user.md deleted file mode 100644 index a6050acfcb..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/create-scrypt-user.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.createScryptUser('[USER_ID]', 'email@example.com', 'password', '[PASSWORD_SALT]', null, null, null, null); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/create.md b/docs/examples/1.2.x/console-web/examples/users/create.md deleted file mode 100644 index 7c9644702c..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/create.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.create('[USER_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/delete-session.md b/docs/examples/1.2.x/console-web/examples/users/delete-session.md deleted file mode 100644 index 90f0f301ff..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/delete-session.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.deleteSession('[USER_ID]', '[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/delete-sessions.md b/docs/examples/1.2.x/console-web/examples/users/delete-sessions.md deleted file mode 100644 index 3df8c7bdb6..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/delete-sessions.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.deleteSessions('[USER_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/delete.md b/docs/examples/1.2.x/console-web/examples/users/delete.md deleted file mode 100644 index f7c21f3d55..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/delete.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.delete('[USER_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/get-prefs.md b/docs/examples/1.2.x/console-web/examples/users/get-prefs.md deleted file mode 100644 index 959c68c7c0..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/get-prefs.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.getPrefs('[USER_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/get-usage.md b/docs/examples/1.2.x/console-web/examples/users/get-usage.md deleted file mode 100644 index cca80da32d..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/get-usage.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.getUsage(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/get.md b/docs/examples/1.2.x/console-web/examples/users/get.md deleted file mode 100644 index 500263dad6..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/get.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.get('[USER_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/list-logs.md b/docs/examples/1.2.x/console-web/examples/users/list-logs.md deleted file mode 100644 index 9b2d31d95b..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/list-logs.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.listLogs('[USER_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/list-memberships.md b/docs/examples/1.2.x/console-web/examples/users/list-memberships.md deleted file mode 100644 index ebd6a38e42..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/list-memberships.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.listMemberships('[USER_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/list-sessions.md b/docs/examples/1.2.x/console-web/examples/users/list-sessions.md deleted file mode 100644 index c932d6fee7..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/list-sessions.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.listSessions('[USER_ID]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/list.md b/docs/examples/1.2.x/console-web/examples/users/list.md deleted file mode 100644 index 49838da24d..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/list.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.list(); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/update-email-verification.md b/docs/examples/1.2.x/console-web/examples/users/update-email-verification.md deleted file mode 100644 index 2abfff8244..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/update-email-verification.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.updateEmailVerification('[USER_ID]', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/update-email.md b/docs/examples/1.2.x/console-web/examples/users/update-email.md deleted file mode 100644 index c0427ac6af..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/update-email.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.updateEmail('[USER_ID]', 'email@example.com'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/update-name.md b/docs/examples/1.2.x/console-web/examples/users/update-name.md deleted file mode 100644 index ed13672a5c..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/update-name.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.updateName('[USER_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/update-password.md b/docs/examples/1.2.x/console-web/examples/users/update-password.md deleted file mode 100644 index e13d9bcafa..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/update-password.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.updatePassword('[USER_ID]', 'password'); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/update-phone-verification.md b/docs/examples/1.2.x/console-web/examples/users/update-phone-verification.md deleted file mode 100644 index 63edc56cab..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/update-phone-verification.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.updatePhoneVerification('[USER_ID]', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/update-phone.md b/docs/examples/1.2.x/console-web/examples/users/update-phone.md deleted file mode 100644 index 593570d73b..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/update-phone.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.updatePhone('[USER_ID]', ''); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/update-prefs.md b/docs/examples/1.2.x/console-web/examples/users/update-prefs.md deleted file mode 100644 index d1d0a8b1ec..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/update-prefs.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.updatePrefs('[USER_ID]', {}); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/console-web/examples/users/update-status.md b/docs/examples/1.2.x/console-web/examples/users/update-status.md deleted file mode 100644 index 189cbca6d4..0000000000 --- a/docs/examples/1.2.x/console-web/examples/users/update-status.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Users } from "appwrite"; - -const client = new Client(); - -const users = new Users(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID -; - -const promise = users.updateStatus('[USER_ID]', false); - -promise.then(function (response) { - console.log(response); // Success -}, function (error) { - console.log(error); // Failure -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-dart/examples/account/create-phone-verification.md deleted file mode 100644 index de0389f798..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/create-phone-verification.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.createPhoneVerification(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/create-recovery.md b/docs/examples/1.2.x/server-dart/examples/account/create-recovery.md deleted file mode 100644 index 1d6c7fca9e..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/create-recovery.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.createRecovery( - email: 'email@example.com', - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/create-verification.md b/docs/examples/1.2.x/server-dart/examples/account/create-verification.md deleted file mode 100644 index a46c1cf519..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/create-verification.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.createVerification( - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/delete-session.md b/docs/examples/1.2.x/server-dart/examples/account/delete-session.md deleted file mode 100644 index 7e2c59b629..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/delete-session.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.deleteSession( - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-dart/examples/account/delete-sessions.md deleted file mode 100644 index 8647d09fa7..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/delete-sessions.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.deleteSessions(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/get-prefs.md b/docs/examples/1.2.x/server-dart/examples/account/get-prefs.md deleted file mode 100644 index 911e868115..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/get-prefs.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.getPrefs(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/get-session.md b/docs/examples/1.2.x/server-dart/examples/account/get-session.md deleted file mode 100644 index ef78a5291d..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/get-session.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.getSession( - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/get.md b/docs/examples/1.2.x/server-dart/examples/account/get.md deleted file mode 100644 index 040dad642f..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.get(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/list-logs.md b/docs/examples/1.2.x/server-dart/examples/account/list-logs.md deleted file mode 100644 index 83735ecc4e..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/list-logs.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.listLogs( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/list-sessions.md b/docs/examples/1.2.x/server-dart/examples/account/list-sessions.md deleted file mode 100644 index 914c3dd718..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/list-sessions.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.listSessions(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-email.md b/docs/examples/1.2.x/server-dart/examples/account/update-email.md deleted file mode 100644 index 85b5950bc5..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/update-email.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updateEmail( - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-name.md b/docs/examples/1.2.x/server-dart/examples/account/update-name.md deleted file mode 100644 index 026206d169..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/update-name.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updateName( - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-password.md b/docs/examples/1.2.x/server-dart/examples/account/update-password.md deleted file mode 100644 index dec459c686..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/update-password.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updatePassword( - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-dart/examples/account/update-phone-verification.md deleted file mode 100644 index 257cc9b4fc..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/update-phone-verification.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updatePhoneVerification( - userId: '[USER_ID]', - secret: '[SECRET]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-phone.md b/docs/examples/1.2.x/server-dart/examples/account/update-phone.md deleted file mode 100644 index b3ed2306f0..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/update-phone.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updatePhone( - phone: '', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.2.x/server-dart/examples/account/update-prefs.md deleted file mode 100644 index 8bcb83e7db..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/update-prefs.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updatePrefs( - prefs: {}, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-recovery.md b/docs/examples/1.2.x/server-dart/examples/account/update-recovery.md deleted file mode 100644 index 5840fbec70..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/update-recovery.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updateRecovery( - userId: '[USER_ID]', - secret: '[SECRET]', - password: 'password', - passwordAgain: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-session.md b/docs/examples/1.2.x/server-dart/examples/account/update-session.md deleted file mode 100644 index c689dda9f0..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/update-session.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updateSession( - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-status.md b/docs/examples/1.2.x/server-dart/examples/account/update-status.md deleted file mode 100644 index 025ef77771..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/update-status.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updateStatus(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-verification.md b/docs/examples/1.2.x/server-dart/examples/account/update-verification.md deleted file mode 100644 index c970793640..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/account/update-verification.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Account account = Account(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = account.updateVerification( - userId: '[USER_ID]', - secret: '[SECRET]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-browser.md deleted file mode 100644 index c924ae43c8..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-browser.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = avatars.getBrowser( - code: 'aa', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-credit-card.md deleted file mode 100644 index 5d01d690dd..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = avatars.getCreditCard( - code: 'amex', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-favicon.md deleted file mode 100644 index 3308f5c59a..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-favicon.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = avatars.getFavicon( - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-flag.md deleted file mode 100644 index 5da4aaf219..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-flag.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = avatars.getFlag( - code: 'af', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-image.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-image.md deleted file mode 100644 index 196c6dedb5..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-image.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = avatars.getImage( - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-initials.md deleted file mode 100644 index c40a54b712..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-initials.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = avatars.getInitials( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-q-r.md deleted file mode 100644 index bef31b345f..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-q-r.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Avatars avatars = Avatars(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = avatars.getQR( - text: '[TEXT]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-boolean-attribute.md deleted file mode 100644 index fd1223d3a9..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-boolean-attribute.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.createBooleanAttribute( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - key: '', - xrequired: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-collection.md b/docs/examples/1.2.x/server-dart/examples/databases/create-collection.md deleted file mode 100644 index 5783e595b1..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-collection.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.createCollection( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-datetime-attribute.md deleted file mode 100644 index da3cf104ce..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-datetime-attribute.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.createDatetimeAttribute( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - key: '', - xrequired: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-document.md b/docs/examples/1.2.x/server-dart/examples/databases/create-document.md deleted file mode 100644 index 6d88d9c7e0..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-document.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.createDocument( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - data: {}, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-email-attribute.md deleted file mode 100644 index d3443b57bb..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-email-attribute.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.createEmailAttribute( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - key: '', - xrequired: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-enum-attribute.md deleted file mode 100644 index da413a1d92..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-enum-attribute.md +++ /dev/null @@ -1,27 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.createEnumAttribute( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - key: '', - elements: [], - xrequired: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-float-attribute.md deleted file mode 100644 index c2d6ad4a15..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-float-attribute.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.createFloatAttribute( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - key: '', - xrequired: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-index.md b/docs/examples/1.2.x/server-dart/examples/databases/create-index.md deleted file mode 100644 index e0d04e776f..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-index.md +++ /dev/null @@ -1,27 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.createIndex( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - key: '', - type: 'key', - attributes: [], - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-integer-attribute.md deleted file mode 100644 index 701ed4eee3..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-integer-attribute.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.createIntegerAttribute( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - key: '', - xrequired: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-ip-attribute.md deleted file mode 100644 index 925a5d5d1b..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-ip-attribute.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.createIpAttribute( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - key: '', - xrequired: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-string-attribute.md deleted file mode 100644 index 8178ece328..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-string-attribute.md +++ /dev/null @@ -1,27 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.createStringAttribute( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - key: '', - size: 1, - xrequired: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-url-attribute.md deleted file mode 100644 index 8c117cbf17..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-url-attribute.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.createUrlAttribute( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - key: '', - xrequired: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create.md b/docs/examples/1.2.x/server-dart/examples/databases/create.md deleted file mode 100644 index 7c9cc537e7..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/create.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.create( - databaseId: '[DATABASE_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/delete-attribute.md deleted file mode 100644 index 113f80da73..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/delete-attribute.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.deleteAttribute( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - key: '', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-dart/examples/databases/delete-collection.md deleted file mode 100644 index 05425529c9..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/delete-collection.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.deleteCollection( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/delete-document.md b/docs/examples/1.2.x/server-dart/examples/databases/delete-document.md deleted file mode 100644 index 5985c9333b..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/delete-document.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.deleteDocument( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/delete-index.md b/docs/examples/1.2.x/server-dart/examples/databases/delete-index.md deleted file mode 100644 index 8efc981d38..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/delete-index.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.deleteIndex( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - key: '', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/delete.md b/docs/examples/1.2.x/server-dart/examples/databases/delete.md deleted file mode 100644 index 78f70bbc5e..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/delete.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.delete( - databaseId: '[DATABASE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/get-attribute.md deleted file mode 100644 index 32bb095536..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/get-attribute.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.getAttribute( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - key: '', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/get-collection.md b/docs/examples/1.2.x/server-dart/examples/databases/get-collection.md deleted file mode 100644 index 33b7913e8c..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/get-collection.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.getCollection( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/get-document.md b/docs/examples/1.2.x/server-dart/examples/databases/get-document.md deleted file mode 100644 index 58fde41713..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/get-document.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.getDocument( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/get-index.md b/docs/examples/1.2.x/server-dart/examples/databases/get-index.md deleted file mode 100644 index 64b03c4898..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/get-index.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.getIndex( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - key: '', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/get.md b/docs/examples/1.2.x/server-dart/examples/databases/get.md deleted file mode 100644 index c85a5c7000..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/get.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.get( - databaseId: '[DATABASE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-dart/examples/databases/list-attributes.md deleted file mode 100644 index c13a9d70eb..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/list-attributes.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.listAttributes( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/list-collections.md b/docs/examples/1.2.x/server-dart/examples/databases/list-collections.md deleted file mode 100644 index 098a327228..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/list-collections.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.listCollections( - databaseId: '[DATABASE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/list-documents.md b/docs/examples/1.2.x/server-dart/examples/databases/list-documents.md deleted file mode 100644 index ba10a9847b..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/list-documents.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.listDocuments( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-dart/examples/databases/list-indexes.md deleted file mode 100644 index bc957cad7e..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/list-indexes.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.listIndexes( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/list.md b/docs/examples/1.2.x/server-dart/examples/databases/list.md deleted file mode 100644 index 6b10334957..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/list.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.list( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/update-collection.md b/docs/examples/1.2.x/server-dart/examples/databases/update-collection.md deleted file mode 100644 index 515c4fe776..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/update-collection.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.updateCollection( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/update-document.md b/docs/examples/1.2.x/server-dart/examples/databases/update-document.md deleted file mode 100644 index 41e1bff16b..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/update-document.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.updateDocument( - databaseId: '[DATABASE_ID]', - collectionId: '[COLLECTION_ID]', - documentId: '[DOCUMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/databases/update.md b/docs/examples/1.2.x/server-dart/examples/databases/update.md deleted file mode 100644 index 080d88a1a0..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/databases/update.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Databases databases = Databases(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = databases.update( - databaseId: '[DATABASE_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/create-build.md b/docs/examples/1.2.x/server-dart/examples/functions/create-build.md deleted file mode 100644 index 82f71e2d76..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/create-build.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.createBuild( - functionId: '[FUNCTION_ID]', - deploymentId: '[DEPLOYMENT_ID]', - buildId: '[BUILD_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-dart/examples/functions/create-deployment.md deleted file mode 100644 index a407622ffc..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/create-deployment.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.createDeployment( - functionId: '[FUNCTION_ID]', - entrypoint: '[ENTRYPOINT]', - code: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'), - activate: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.2.x/server-dart/examples/functions/create-execution.md deleted file mode 100644 index 572b54ffd5..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/create-execution.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.createExecution( - functionId: '[FUNCTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/create-variable.md b/docs/examples/1.2.x/server-dart/examples/functions/create-variable.md deleted file mode 100644 index c4d300f4c8..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/create-variable.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.createVariable( - functionId: '[FUNCTION_ID]', - key: '[KEY]', - value: '[VALUE]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/create.md b/docs/examples/1.2.x/server-dart/examples/functions/create.md deleted file mode 100644 index b550e00cd9..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/create.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.create( - functionId: '[FUNCTION_ID]', - name: '[NAME]', - execute: ["any"], - runtime: 'node-14.5', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-dart/examples/functions/delete-deployment.md deleted file mode 100644 index 495b5b6c25..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/delete-deployment.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.deleteDeployment( - functionId: '[FUNCTION_ID]', - deploymentId: '[DEPLOYMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-dart/examples/functions/delete-variable.md deleted file mode 100644 index 235468740e..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/delete-variable.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.deleteVariable( - functionId: '[FUNCTION_ID]', - variableId: '[VARIABLE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/delete.md b/docs/examples/1.2.x/server-dart/examples/functions/delete.md deleted file mode 100644 index 36694658cd..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/delete.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.delete( - functionId: '[FUNCTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-dart/examples/functions/get-deployment.md deleted file mode 100644 index 7e529df767..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/get-deployment.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.getDeployment( - functionId: '[FUNCTION_ID]', - deploymentId: '[DEPLOYMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/get-execution.md b/docs/examples/1.2.x/server-dart/examples/functions/get-execution.md deleted file mode 100644 index 7854e7f7c4..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/get-execution.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.getExecution( - functionId: '[FUNCTION_ID]', - executionId: '[EXECUTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/get-variable.md b/docs/examples/1.2.x/server-dart/examples/functions/get-variable.md deleted file mode 100644 index 29c9074561..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/get-variable.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.getVariable( - functionId: '[FUNCTION_ID]', - variableId: '[VARIABLE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/get.md b/docs/examples/1.2.x/server-dart/examples/functions/get.md deleted file mode 100644 index 261ffef362..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/get.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.get( - functionId: '[FUNCTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-dart/examples/functions/list-deployments.md deleted file mode 100644 index 071c1a7f5a..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/list-deployments.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.listDeployments( - functionId: '[FUNCTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/list-executions.md b/docs/examples/1.2.x/server-dart/examples/functions/list-executions.md deleted file mode 100644 index a0af0d161e..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/list-executions.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.listExecutions( - functionId: '[FUNCTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-dart/examples/functions/list-runtimes.md deleted file mode 100644 index da474ff727..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/list-runtimes.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.listRuntimes(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/list-variables.md b/docs/examples/1.2.x/server-dart/examples/functions/list-variables.md deleted file mode 100644 index dc14c9328b..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/list-variables.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.listVariables( - functionId: '[FUNCTION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/list.md b/docs/examples/1.2.x/server-dart/examples/functions/list.md deleted file mode 100644 index a530d00fbb..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/list.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.list( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-dart/examples/functions/update-deployment.md deleted file mode 100644 index 633b626560..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/update-deployment.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.updateDeployment( - functionId: '[FUNCTION_ID]', - deploymentId: '[DEPLOYMENT_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/update-variable.md b/docs/examples/1.2.x/server-dart/examples/functions/update-variable.md deleted file mode 100644 index eeeeaf12e8..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/update-variable.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.updateVariable( - functionId: '[FUNCTION_ID]', - variableId: '[VARIABLE_ID]', - key: '[KEY]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/functions/update.md b/docs/examples/1.2.x/server-dart/examples/functions/update.md deleted file mode 100644 index 6d89935ba2..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/functions/update.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Functions functions = Functions(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = functions.update( - functionId: '[FUNCTION_ID]', - name: '[NAME]', - execute: ["any"], - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/graphql/get.md b/docs/examples/1.2.x/server-dart/examples/graphql/get.md deleted file mode 100644 index ac0ea778a7..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/graphql/get.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Graphql graphql = Graphql(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = graphql.get( - query: '[QUERY]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/graphql/post.md b/docs/examples/1.2.x/server-dart/examples/graphql/post.md deleted file mode 100644 index 9320db508c..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/graphql/post.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Graphql graphql = Graphql(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = graphql.post( - query: {}, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-dart/examples/health/get-antivirus.md deleted file mode 100644 index 974a29bd1f..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/health/get-antivirus.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getAntivirus(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-cache.md b/docs/examples/1.2.x/server-dart/examples/health/get-cache.md deleted file mode 100644 index 322939d74e..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/health/get-cache.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getCache(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-d-b.md b/docs/examples/1.2.x/server-dart/examples/health/get-d-b.md deleted file mode 100644 index e3447550eb..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/health/get-d-b.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getDB(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-dart/examples/health/get-queue-certificates.md deleted file mode 100644 index 7c605154a6..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getQueueCertificates(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-dart/examples/health/get-queue-functions.md deleted file mode 100644 index c06cda9185..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/health/get-queue-functions.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getQueueFunctions(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-dart/examples/health/get-queue-logs.md deleted file mode 100644 index 807a04fb11..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/health/get-queue-logs.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getQueueLogs(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-dart/examples/health/get-queue-webhooks.md deleted file mode 100644 index 7c159ac8cd..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getQueueWebhooks(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-dart/examples/health/get-storage-local.md deleted file mode 100644 index 7f172bf86c..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/health/get-storage-local.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getStorageLocal(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-time.md b/docs/examples/1.2.x/server-dart/examples/health/get-time.md deleted file mode 100644 index 65861d3cc3..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/health/get-time.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.getTime(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/health/get.md b/docs/examples/1.2.x/server-dart/examples/health/get.md deleted file mode 100644 index 0c9d39218e..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/health/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Health health = Health(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = health.get(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/locale/get.md b/docs/examples/1.2.x/server-dart/examples/locale/get.md deleted file mode 100644 index d290063060..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/locale/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = locale.get(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-continents.md b/docs/examples/1.2.x/server-dart/examples/locale/list-continents.md deleted file mode 100644 index 4b17da4c6e..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-continents.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = locale.listContinents(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-dart/examples/locale/list-countries-e-u.md deleted file mode 100644 index 41f8e83ed7..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-countries-e-u.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = locale.listCountriesEU(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-dart/examples/locale/list-countries-phones.md deleted file mode 100644 index 5cf2db932e..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-countries-phones.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = locale.listCountriesPhones(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-countries.md b/docs/examples/1.2.x/server-dart/examples/locale/list-countries.md deleted file mode 100644 index d55d0fe119..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-countries.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = locale.listCountries(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-dart/examples/locale/list-currencies.md deleted file mode 100644 index e36775de27..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-currencies.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = locale.listCurrencies(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-languages.md b/docs/examples/1.2.x/server-dart/examples/locale/list-languages.md deleted file mode 100644 index b019ae4aea..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-languages.md +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Locale locale = Locale(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = locale.listLanguages(); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-dart/examples/storage/create-bucket.md deleted file mode 100644 index 90882fe408..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/storage/create-bucket.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.createBucket( - bucketId: '[BUCKET_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/storage/create-file.md b/docs/examples/1.2.x/server-dart/examples/storage/create-file.md deleted file mode 100644 index ef596fcc49..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/storage/create-file.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'dart:io'; -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.createFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - file: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'), - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-dart/examples/storage/delete-bucket.md deleted file mode 100644 index 786084a158..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/storage/delete-bucket.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.deleteBucket( - bucketId: '[BUCKET_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/storage/delete-file.md b/docs/examples/1.2.x/server-dart/examples/storage/delete-file.md deleted file mode 100644 index 574532c12b..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/storage/delete-file.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.deleteFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-dart/examples/storage/get-bucket.md deleted file mode 100644 index 22360826ef..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/storage/get-bucket.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.getBucket( - bucketId: '[BUCKET_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-dart/examples/storage/get-file-download.md deleted file mode 100644 index 6a87cafe83..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/storage/get-file-download.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.getFileDownload( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-dart/examples/storage/get-file-preview.md deleted file mode 100644 index f678eacb2a..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/storage/get-file-preview.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.getFilePreview( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-dart/examples/storage/get-file-view.md deleted file mode 100644 index 2be352fef0..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/storage/get-file-view.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.getFileView( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/storage/get-file.md b/docs/examples/1.2.x/server-dart/examples/storage/get-file.md deleted file mode 100644 index 7ecdcf9e53..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/storage/get-file.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.getFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-dart/examples/storage/list-buckets.md deleted file mode 100644 index fa5607a825..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/storage/list-buckets.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.listBuckets( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/storage/list-files.md b/docs/examples/1.2.x/server-dart/examples/storage/list-files.md deleted file mode 100644 index 519a002ced..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/storage/list-files.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.listFiles( - bucketId: '[BUCKET_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-dart/examples/storage/update-bucket.md deleted file mode 100644 index 6352ff7c8c..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/storage/update-bucket.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.updateBucket( - bucketId: '[BUCKET_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/storage/update-file.md b/docs/examples/1.2.x/server-dart/examples/storage/update-file.md deleted file mode 100644 index 77d43afba3..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/storage/update-file.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Storage storage = Storage(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = storage.updateFile( - bucketId: '[BUCKET_ID]', - fileId: '[FILE_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/teams/create-membership.md b/docs/examples/1.2.x/server-dart/examples/teams/create-membership.md deleted file mode 100644 index e3923bd207..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/teams/create-membership.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.createMembership( - teamId: '[TEAM_ID]', - email: 'email@example.com', - roles: [], - url: 'https://example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/teams/create.md b/docs/examples/1.2.x/server-dart/examples/teams/create.md deleted file mode 100644 index fd89a4814a..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/teams/create.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.create( - teamId: '[TEAM_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-dart/examples/teams/delete-membership.md deleted file mode 100644 index 28069ad04a..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/teams/delete-membership.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.deleteMembership( - teamId: '[TEAM_ID]', - membershipId: '[MEMBERSHIP_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/teams/delete.md b/docs/examples/1.2.x/server-dart/examples/teams/delete.md deleted file mode 100644 index a006e8f347..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/teams/delete.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.delete( - teamId: '[TEAM_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/teams/get-membership.md b/docs/examples/1.2.x/server-dart/examples/teams/get-membership.md deleted file mode 100644 index 1beceeb3d7..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/teams/get-membership.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.getMembership( - teamId: '[TEAM_ID]', - membershipId: '[MEMBERSHIP_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/teams/get.md b/docs/examples/1.2.x/server-dart/examples/teams/get.md deleted file mode 100644 index a1bfe8e72c..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/teams/get.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.get( - teamId: '[TEAM_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-dart/examples/teams/list-memberships.md deleted file mode 100644 index 6f99391078..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/teams/list-memberships.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.listMemberships( - teamId: '[TEAM_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/teams/list.md b/docs/examples/1.2.x/server-dart/examples/teams/list.md deleted file mode 100644 index d55e58e36e..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/teams/list.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.list( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-dart/examples/teams/update-membership-roles.md deleted file mode 100644 index e3488768b6..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.updateMembershipRoles( - teamId: '[TEAM_ID]', - membershipId: '[MEMBERSHIP_ID]', - roles: [], - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-dart/examples/teams/update-membership-status.md deleted file mode 100644 index 2a3f1e101e..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/teams/update-membership-status.md +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token - ; - - Future result = teams.updateMembershipStatus( - teamId: '[TEAM_ID]', - membershipId: '[MEMBERSHIP_ID]', - userId: '[USER_ID]', - secret: '[SECRET]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/teams/update.md b/docs/examples/1.2.x/server-dart/examples/teams/update.md deleted file mode 100644 index 22af165502..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/teams/update.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Teams teams = Teams(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = teams.update( - teamId: '[TEAM_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-dart/examples/users/create-argon2user.md deleted file mode 100644 index f2ece2b269..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/create-argon2user.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.createArgon2User( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-dart/examples/users/create-bcrypt-user.md deleted file mode 100644 index b4951a94c4..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.createBcryptUser( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-dart/examples/users/create-m-d5user.md deleted file mode 100644 index 95f6e539f4..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/create-m-d5user.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.createMD5User( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-dart/examples/users/create-p-h-pass-user.md deleted file mode 100644 index 9013ccc992..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.createPHPassUser( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-dart/examples/users/create-s-h-a-user.md deleted file mode 100644 index 4488765055..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.createSHAUser( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-modified-user.md deleted file mode 100644 index e1187488dc..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-modified-user.md +++ /dev/null @@ -1,28 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.createScryptModifiedUser( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - passwordSalt: '[PASSWORD_SALT]', - passwordSaltSeparator: '[PASSWORD_SALT_SEPARATOR]', - passwordSignerKey: '[PASSWORD_SIGNER_KEY]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-user.md deleted file mode 100644 index 01a11bbec5..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-user.md +++ /dev/null @@ -1,30 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.createScryptUser( - userId: '[USER_ID]', - email: 'email@example.com', - password: 'password', - passwordSalt: '[PASSWORD_SALT]', - passwordCpu: 0, - passwordMemory: 0, - passwordParallel: 0, - passwordLength: 0, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/create.md b/docs/examples/1.2.x/server-dart/examples/users/create.md deleted file mode 100644 index 6effead34e..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/create.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.create( - userId: '[USER_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/delete-session.md b/docs/examples/1.2.x/server-dart/examples/users/delete-session.md deleted file mode 100644 index eaa98c17b7..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/delete-session.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.deleteSession( - userId: '[USER_ID]', - sessionId: '[SESSION_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-dart/examples/users/delete-sessions.md deleted file mode 100644 index 8c889aad2b..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/delete-sessions.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.deleteSessions( - userId: '[USER_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/delete.md b/docs/examples/1.2.x/server-dart/examples/users/delete.md deleted file mode 100644 index b45f398b4a..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/delete.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.delete( - userId: '[USER_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/get-prefs.md b/docs/examples/1.2.x/server-dart/examples/users/get-prefs.md deleted file mode 100644 index e5909422a3..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/get-prefs.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.getPrefs( - userId: '[USER_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/get.md b/docs/examples/1.2.x/server-dart/examples/users/get.md deleted file mode 100644 index be582d52c5..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/get.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.get( - userId: '[USER_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/list-logs.md b/docs/examples/1.2.x/server-dart/examples/users/list-logs.md deleted file mode 100644 index 35f78fb775..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/list-logs.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.listLogs( - userId: '[USER_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/list-memberships.md b/docs/examples/1.2.x/server-dart/examples/users/list-memberships.md deleted file mode 100644 index 774f1b8844..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/list-memberships.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.listMemberships( - userId: '[USER_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/list-sessions.md b/docs/examples/1.2.x/server-dart/examples/users/list-sessions.md deleted file mode 100644 index e69f59a7ce..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/list-sessions.md +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.listSessions( - userId: '[USER_ID]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/list.md b/docs/examples/1.2.x/server-dart/examples/users/list.md deleted file mode 100644 index e0ecf7adf3..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/list.md +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.list( - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-dart/examples/users/update-email-verification.md deleted file mode 100644 index fbbe285910..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/update-email-verification.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.updateEmailVerification( - userId: '[USER_ID]', - emailVerification: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-email.md b/docs/examples/1.2.x/server-dart/examples/users/update-email.md deleted file mode 100644 index dc3e063ab8..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/update-email.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.updateEmail( - userId: '[USER_ID]', - email: 'email@example.com', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-name.md b/docs/examples/1.2.x/server-dart/examples/users/update-name.md deleted file mode 100644 index 192add919a..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/update-name.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.updateName( - userId: '[USER_ID]', - name: '[NAME]', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-password.md b/docs/examples/1.2.x/server-dart/examples/users/update-password.md deleted file mode 100644 index 44ead5980b..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/update-password.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.updatePassword( - userId: '[USER_ID]', - password: 'password', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-dart/examples/users/update-phone-verification.md deleted file mode 100644 index 6993c0f3d9..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/update-phone-verification.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.updatePhoneVerification( - userId: '[USER_ID]', - phoneVerification: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-phone.md b/docs/examples/1.2.x/server-dart/examples/users/update-phone.md deleted file mode 100644 index 0bf9ceb108..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/update-phone.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.updatePhone( - userId: '[USER_ID]', - number: '', - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-prefs.md b/docs/examples/1.2.x/server-dart/examples/users/update-prefs.md deleted file mode 100644 index d148e52f0b..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/update-prefs.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.updatePrefs( - userId: '[USER_ID]', - prefs: {}, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-status.md b/docs/examples/1.2.x/server-dart/examples/users/update-status.md deleted file mode 100644 index 4392188985..0000000000 --- a/docs/examples/1.2.x/server-dart/examples/users/update-status.md +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -void main() { // Init SDK - Client client = Client(); - Users users = Users(client); - - client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key - ; - - Future result = users.updateStatus( - userId: '[USER_ID]', - status: false, - ); - - result - .then((response) { - print(response); - }).catchError((error) { - print(error.response); - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-deno/examples/account/create-phone-verification.md deleted file mode 100644 index a095d63900..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/create-phone-verification.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.createPhoneVerification(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/create-recovery.md b/docs/examples/1.2.x/server-deno/examples/account/create-recovery.md deleted file mode 100644 index 003dbdfec7..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/create-recovery.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.createRecovery('email@example.com', 'https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/create-verification.md b/docs/examples/1.2.x/server-deno/examples/account/create-verification.md deleted file mode 100644 index 18dec9a9f0..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/create-verification.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.createVerification('https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/delete-session.md b/docs/examples/1.2.x/server-deno/examples/account/delete-session.md deleted file mode 100644 index 6ff639935b..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/delete-session.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.deleteSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-deno/examples/account/delete-sessions.md deleted file mode 100644 index 453c7e418d..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/delete-sessions.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.deleteSessions(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/get-prefs.md b/docs/examples/1.2.x/server-deno/examples/account/get-prefs.md deleted file mode 100644 index 537760c32e..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/get-prefs.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.getPrefs(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/get-session.md b/docs/examples/1.2.x/server-deno/examples/account/get-session.md deleted file mode 100644 index 46c7a5981d..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/get-session.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.getSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/get.md b/docs/examples/1.2.x/server-deno/examples/account/get.md deleted file mode 100644 index 35453cd3b2..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.get(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/list-logs.md b/docs/examples/1.2.x/server-deno/examples/account/list-logs.md deleted file mode 100644 index ad8656d088..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/list-logs.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.listLogs(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/list-sessions.md b/docs/examples/1.2.x/server-deno/examples/account/list-sessions.md deleted file mode 100644 index 8ec1909460..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/list-sessions.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.listSessions(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-email.md b/docs/examples/1.2.x/server-deno/examples/account/update-email.md deleted file mode 100644 index 12706c4313..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/update-email.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updateEmail('email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-name.md b/docs/examples/1.2.x/server-deno/examples/account/update-name.md deleted file mode 100644 index 2ee6aa4f87..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/update-name.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updateName('[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-password.md b/docs/examples/1.2.x/server-deno/examples/account/update-password.md deleted file mode 100644 index bf27df4dde..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/update-password.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updatePassword('password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-deno/examples/account/update-phone-verification.md deleted file mode 100644 index 8f6a2648b3..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/update-phone-verification.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updatePhoneVerification('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-phone.md b/docs/examples/1.2.x/server-deno/examples/account/update-phone.md deleted file mode 100644 index 1742000c2c..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/update-phone.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updatePhone('', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.2.x/server-deno/examples/account/update-prefs.md deleted file mode 100644 index f553593ae0..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/update-prefs.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updatePrefs({}); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-recovery.md b/docs/examples/1.2.x/server-deno/examples/account/update-recovery.md deleted file mode 100644 index 6d91d570c2..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/update-recovery.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-session.md b/docs/examples/1.2.x/server-deno/examples/account/update-session.md deleted file mode 100644 index 36c3d1e250..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/update-session.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updateSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-status.md b/docs/examples/1.2.x/server-deno/examples/account/update-status.md deleted file mode 100644 index 26585b6f7b..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/update-status.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updateStatus(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-verification.md b/docs/examples/1.2.x/server-deno/examples/account/update-verification.md deleted file mode 100644 index 40ebcdd7c6..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/account/update-verification.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = account.updateVerification('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-browser.md deleted file mode 100644 index 3eb6ff845d..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-browser.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(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 = avatars.getBrowser('aa'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-credit-card.md deleted file mode 100644 index 0a75b1665d..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(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 = avatars.getCreditCard('amex'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-favicon.md deleted file mode 100644 index e132db2f5f..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-favicon.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(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 = avatars.getFavicon('https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-flag.md deleted file mode 100644 index 7455538cec..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-flag.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(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 = avatars.getFlag('af'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-image.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-image.md deleted file mode 100644 index e1d6f7d5f5..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-image.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(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 = avatars.getImage('https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-initials.md deleted file mode 100644 index 36e9b8fa94..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-initials.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(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 = avatars.getInitials(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-q-r.md deleted file mode 100644 index 23d6a60d90..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-q-r.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let avatars = new sdk.Avatars(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 = avatars.getQR('[TEXT]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-boolean-attribute.md deleted file mode 100644 index 4c4862ecd8..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-boolean-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.createBooleanAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-collection.md b/docs/examples/1.2.x/server-deno/examples/databases/create-collection.md deleted file mode 100644 index d8d189b02f..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-collection.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.createCollection('[DATABASE_ID]', '[COLLECTION_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-datetime-attribute.md deleted file mode 100644 index 19f4c58b7d..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-datetime-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.createDatetimeAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-document.md b/docs/examples/1.2.x/server-deno/examples/databases/create-document.md deleted file mode 100644 index a0ca832861..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-document.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.createDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]', {}); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-email-attribute.md deleted file mode 100644 index b31244c5f1..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-email-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.createEmailAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-enum-attribute.md deleted file mode 100644 index 6fdcdfa6e1..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-enum-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.createEnumAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', [], false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-float-attribute.md deleted file mode 100644 index 78d4308bb5..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-float-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.createFloatAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-index.md b/docs/examples/1.2.x/server-deno/examples/databases/create-index.md deleted file mode 100644 index c87ad70178..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-index.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.createIndex('[DATABASE_ID]', '[COLLECTION_ID]', '', 'key', []); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-integer-attribute.md deleted file mode 100644 index f962a4d140..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-integer-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.createIntegerAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-ip-attribute.md deleted file mode 100644 index 72a1852da4..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-ip-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.createIpAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-string-attribute.md deleted file mode 100644 index f3803103b1..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-string-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.createStringAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', 1, false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-url-attribute.md deleted file mode 100644 index f48040fc6a..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-url-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.createUrlAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create.md b/docs/examples/1.2.x/server-deno/examples/databases/create.md deleted file mode 100644 index 62135543fc..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/create.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.create('[DATABASE_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/delete-attribute.md deleted file mode 100644 index f88336a94f..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/delete-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.deleteAttribute('[DATABASE_ID]', '[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-deno/examples/databases/delete-collection.md deleted file mode 100644 index d83cd3d7a3..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/delete-collection.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.deleteCollection('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/delete-document.md b/docs/examples/1.2.x/server-deno/examples/databases/delete-document.md deleted file mode 100644 index f366f4c8cf..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/delete-document.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.deleteDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/delete-index.md b/docs/examples/1.2.x/server-deno/examples/databases/delete-index.md deleted file mode 100644 index 669531fd35..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/delete-index.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.deleteIndex('[DATABASE_ID]', '[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/delete.md b/docs/examples/1.2.x/server-deno/examples/databases/delete.md deleted file mode 100644 index d9f2c07ddd..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/delete.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.delete('[DATABASE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/get-attribute.md deleted file mode 100644 index 4b532e6330..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/get-attribute.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.getAttribute('[DATABASE_ID]', '[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/get-collection.md b/docs/examples/1.2.x/server-deno/examples/databases/get-collection.md deleted file mode 100644 index 4da660f49d..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/get-collection.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.getCollection('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/get-document.md b/docs/examples/1.2.x/server-deno/examples/databases/get-document.md deleted file mode 100644 index 58bc75d063..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/get-document.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.getDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/get-index.md b/docs/examples/1.2.x/server-deno/examples/databases/get-index.md deleted file mode 100644 index 19382eb015..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/get-index.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.getIndex('[DATABASE_ID]', '[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/get.md b/docs/examples/1.2.x/server-deno/examples/databases/get.md deleted file mode 100644 index c88a0bdc9b..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.get('[DATABASE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-deno/examples/databases/list-attributes.md deleted file mode 100644 index 88422a1002..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/list-attributes.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.listAttributes('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/list-collections.md b/docs/examples/1.2.x/server-deno/examples/databases/list-collections.md deleted file mode 100644 index 401f571788..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/list-collections.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.listCollections('[DATABASE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/list-documents.md b/docs/examples/1.2.x/server-deno/examples/databases/list-documents.md deleted file mode 100644 index f657cdba7d..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/list-documents.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.listDocuments('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-deno/examples/databases/list-indexes.md deleted file mode 100644 index ed7812c9ef..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/list-indexes.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.listIndexes('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/list.md b/docs/examples/1.2.x/server-deno/examples/databases/list.md deleted file mode 100644 index 7936c59a9f..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/list.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.list(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/update-collection.md b/docs/examples/1.2.x/server-deno/examples/databases/update-collection.md deleted file mode 100644 index 3eb86812a7..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/update-collection.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.updateCollection('[DATABASE_ID]', '[COLLECTION_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/update-document.md b/docs/examples/1.2.x/server-deno/examples/databases/update-document.md deleted file mode 100644 index a5ea5f67f8..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/update-document.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/databases/update.md b/docs/examples/1.2.x/server-deno/examples/databases/update.md deleted file mode 100644 index b6bac17597..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/databases/update.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let databases = new sdk.Databases(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 = databases.update('[DATABASE_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/create-build.md b/docs/examples/1.2.x/server-deno/examples/functions/create-build.md deleted file mode 100644 index 757e048e49..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/create-build.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.createBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-deno/examples/functions/create-deployment.md deleted file mode 100644 index 888c5312c5..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/create-deployment.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', InputFile.fromPath('/path/to/file.png', 'file.png'), false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.2.x/server-deno/examples/functions/create-execution.md deleted file mode 100644 index 0d52be69b6..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/create-execution.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.createExecution('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/create-variable.md b/docs/examples/1.2.x/server-deno/examples/functions/create-variable.md deleted file mode 100644 index 190919e563..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/create-variable.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.createVariable('[FUNCTION_ID]', '[KEY]', '[VALUE]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/create.md b/docs/examples/1.2.x/server-deno/examples/functions/create.md deleted file mode 100644 index 75327edb41..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/create.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.create('[FUNCTION_ID]', '[NAME]', ["any"], 'node-14.5'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-deno/examples/functions/delete-deployment.md deleted file mode 100644 index dbab698368..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/delete-deployment.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.deleteDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-deno/examples/functions/delete-variable.md deleted file mode 100644 index 123286ae7f..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/delete-variable.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.deleteVariable('[FUNCTION_ID]', '[VARIABLE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/delete.md b/docs/examples/1.2.x/server-deno/examples/functions/delete.md deleted file mode 100644 index f2e7947b63..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/delete.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.delete('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-deno/examples/functions/get-deployment.md deleted file mode 100644 index 146503bf55..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/get-deployment.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.getDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/get-execution.md b/docs/examples/1.2.x/server-deno/examples/functions/get-execution.md deleted file mode 100644 index 6fe7289eb9..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/get-execution.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.getExecution('[FUNCTION_ID]', '[EXECUTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/get-variable.md b/docs/examples/1.2.x/server-deno/examples/functions/get-variable.md deleted file mode 100644 index d437e303fb..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/get-variable.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.getVariable('[FUNCTION_ID]', '[VARIABLE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/get.md b/docs/examples/1.2.x/server-deno/examples/functions/get.md deleted file mode 100644 index b6972fc91d..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.get('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-deno/examples/functions/list-deployments.md deleted file mode 100644 index 82ea21c024..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/list-deployments.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.listDeployments('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/list-executions.md b/docs/examples/1.2.x/server-deno/examples/functions/list-executions.md deleted file mode 100644 index 347f4b7fb1..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/list-executions.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.listExecutions('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-deno/examples/functions/list-runtimes.md deleted file mode 100644 index 7ae999312a..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/list-runtimes.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.listRuntimes(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/list-variables.md b/docs/examples/1.2.x/server-deno/examples/functions/list-variables.md deleted file mode 100644 index 5c3c724066..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/list-variables.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.listVariables('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/list.md b/docs/examples/1.2.x/server-deno/examples/functions/list.md deleted file mode 100644 index 89d2a49a43..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/list.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.list(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-deno/examples/functions/update-deployment.md deleted file mode 100644 index f448107a36..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/update-deployment.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.updateDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/update-variable.md b/docs/examples/1.2.x/server-deno/examples/functions/update-variable.md deleted file mode 100644 index cd11c0a1e8..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/update-variable.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.updateVariable('[FUNCTION_ID]', '[VARIABLE_ID]', '[KEY]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/functions/update.md b/docs/examples/1.2.x/server-deno/examples/functions/update.md deleted file mode 100644 index fa2794448c..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/functions/update.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let functions = new sdk.Functions(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 = functions.update('[FUNCTION_ID]', '[NAME]', ["any"]); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/graphql/get.md b/docs/examples/1.2.x/server-deno/examples/graphql/get.md deleted file mode 100644 index 20d9673a81..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/graphql/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let graphql = new sdk.Graphql(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 = graphql.get('[QUERY]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/graphql/post.md b/docs/examples/1.2.x/server-deno/examples/graphql/post.md deleted file mode 100644 index 746af603dc..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/graphql/post.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let graphql = new sdk.Graphql(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 = graphql.post({}); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-deno/examples/health/get-antivirus.md deleted file mode 100644 index 027b145d8f..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/health/get-antivirus.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(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 = health.getAntivirus(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-cache.md b/docs/examples/1.2.x/server-deno/examples/health/get-cache.md deleted file mode 100644 index f3e17bda8e..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/health/get-cache.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(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 = health.getCache(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-d-b.md b/docs/examples/1.2.x/server-deno/examples/health/get-d-b.md deleted file mode 100644 index f6ba94a496..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/health/get-d-b.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(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 = health.getDB(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-deno/examples/health/get-queue-certificates.md deleted file mode 100644 index 9d2e325630..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(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 = health.getQueueCertificates(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-deno/examples/health/get-queue-functions.md deleted file mode 100644 index c31869c55f..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/health/get-queue-functions.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(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 = health.getQueueFunctions(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-deno/examples/health/get-queue-logs.md deleted file mode 100644 index bb40c7a559..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/health/get-queue-logs.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(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 = health.getQueueLogs(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-deno/examples/health/get-queue-webhooks.md deleted file mode 100644 index ddd2735f49..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(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 = health.getQueueWebhooks(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-deno/examples/health/get-storage-local.md deleted file mode 100644 index 76df5561d7..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/health/get-storage-local.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(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 = health.getStorageLocal(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-time.md b/docs/examples/1.2.x/server-deno/examples/health/get-time.md deleted file mode 100644 index 17de3193cf..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/health/get-time.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(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 = health.getTime(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/health/get.md b/docs/examples/1.2.x/server-deno/examples/health/get.md deleted file mode 100644 index ac94e75627..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/health/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let health = new sdk.Health(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 = health.get(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/locale/get.md b/docs/examples/1.2.x/server-deno/examples/locale/get.md deleted file mode 100644 index 30ca9a22c7..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/locale/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(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 = locale.get(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-continents.md b/docs/examples/1.2.x/server-deno/examples/locale/list-continents.md deleted file mode 100644 index 859cbbd506..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-continents.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(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 = locale.listContinents(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-deno/examples/locale/list-countries-e-u.md deleted file mode 100644 index 2f23f050b4..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-countries-e-u.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(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 = locale.listCountriesEU(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-deno/examples/locale/list-countries-phones.md deleted file mode 100644 index 6448ac438a..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-countries-phones.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(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 = locale.listCountriesPhones(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-countries.md b/docs/examples/1.2.x/server-deno/examples/locale/list-countries.md deleted file mode 100644 index 241c801cd3..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-countries.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(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 = locale.listCountries(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-deno/examples/locale/list-currencies.md deleted file mode 100644 index 1dd3812b13..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-currencies.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(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 = locale.listCurrencies(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-languages.md b/docs/examples/1.2.x/server-deno/examples/locale/list-languages.md deleted file mode 100644 index a016e278ea..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-languages.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let locale = new sdk.Locale(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 = locale.listLanguages(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-deno/examples/storage/create-bucket.md deleted file mode 100644 index e24aa87523..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/storage/create-bucket.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(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 = storage.createBucket('[BUCKET_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/storage/create-file.md b/docs/examples/1.2.x/server-deno/examples/storage/create-file.md deleted file mode 100644 index 9864ec1e65..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/storage/create-file.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(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 = storage.createFile('[BUCKET_ID]', '[FILE_ID]', InputFile.fromPath('/path/to/file.png', 'file.png')); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-deno/examples/storage/delete-bucket.md deleted file mode 100644 index 366c4e8973..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/storage/delete-bucket.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(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 = storage.deleteBucket('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/storage/delete-file.md b/docs/examples/1.2.x/server-deno/examples/storage/delete-file.md deleted file mode 100644 index 579920d9d0..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/storage/delete-file.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(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 = storage.deleteFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-deno/examples/storage/get-bucket.md deleted file mode 100644 index c45443866f..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/storage/get-bucket.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(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 = storage.getBucket('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-deno/examples/storage/get-file-download.md deleted file mode 100644 index 780dac4b49..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/storage/get-file-download.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(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 = storage.getFileDownload('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-deno/examples/storage/get-file-preview.md deleted file mode 100644 index cc81db1b0f..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/storage/get-file-preview.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(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 = storage.getFilePreview('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-deno/examples/storage/get-file-view.md deleted file mode 100644 index 9dba58ad4f..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/storage/get-file-view.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(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 = storage.getFileView('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/storage/get-file.md b/docs/examples/1.2.x/server-deno/examples/storage/get-file.md deleted file mode 100644 index 5494fca02c..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/storage/get-file.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(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 = storage.getFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-deno/examples/storage/list-buckets.md deleted file mode 100644 index 51d9a3b9e2..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/storage/list-buckets.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(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 = storage.listBuckets(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/storage/list-files.md b/docs/examples/1.2.x/server-deno/examples/storage/list-files.md deleted file mode 100644 index 110fba5a0c..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/storage/list-files.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(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 = storage.listFiles('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-deno/examples/storage/update-bucket.md deleted file mode 100644 index 5745fac53d..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/storage/update-bucket.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(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 = storage.updateBucket('[BUCKET_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/storage/update-file.md b/docs/examples/1.2.x/server-deno/examples/storage/update-file.md deleted file mode 100644 index e29feff777..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/storage/update-file.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let storage = new sdk.Storage(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 = storage.updateFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/teams/create-membership.md b/docs/examples/1.2.x/server-deno/examples/teams/create-membership.md deleted file mode 100644 index b85e811d65..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/teams/create-membership.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(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 = teams.createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/teams/create.md b/docs/examples/1.2.x/server-deno/examples/teams/create.md deleted file mode 100644 index 728e649886..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/teams/create.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(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 = teams.create('[TEAM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-deno/examples/teams/delete-membership.md deleted file mode 100644 index 94e60ae03a..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/teams/delete-membership.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(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 = teams.deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/teams/delete.md b/docs/examples/1.2.x/server-deno/examples/teams/delete.md deleted file mode 100644 index 4b1e0bddfc..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/teams/delete.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(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 = teams.delete('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/teams/get-membership.md b/docs/examples/1.2.x/server-deno/examples/teams/get-membership.md deleted file mode 100644 index db60e1976f..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/teams/get-membership.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(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 = teams.getMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/teams/get.md b/docs/examples/1.2.x/server-deno/examples/teams/get.md deleted file mode 100644 index 435391a63a..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/teams/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(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 = teams.get('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-deno/examples/teams/list-memberships.md deleted file mode 100644 index 030d89ae9e..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/teams/list-memberships.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(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 = teams.listMemberships('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/teams/list.md b/docs/examples/1.2.x/server-deno/examples/teams/list.md deleted file mode 100644 index 6d00f6df54..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/teams/list.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(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 = teams.list(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-deno/examples/teams/update-membership-roles.md deleted file mode 100644 index 3337aa0a3a..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(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 = teams.updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-deno/examples/teams/update-membership-status.md deleted file mode 100644 index 784f1a0349..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/teams/update-membership-status.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - - -let promise = teams.updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/teams/update.md b/docs/examples/1.2.x/server-deno/examples/teams/update.md deleted file mode 100644 index 9d73002f5c..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/teams/update.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -let client = new sdk.Client(); - -let teams = new sdk.Teams(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 = teams.update('[TEAM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-deno/examples/users/create-argon2user.md deleted file mode 100644 index e52737a013..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/create-argon2user.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.createArgon2User('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-deno/examples/users/create-bcrypt-user.md deleted file mode 100644 index 52a7f2c219..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.createBcryptUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-deno/examples/users/create-m-d5user.md deleted file mode 100644 index 8d553f788a..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/create-m-d5user.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.createMD5User('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-deno/examples/users/create-p-h-pass-user.md deleted file mode 100644 index daf38f70e4..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.createPHPassUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-deno/examples/users/create-s-h-a-user.md deleted file mode 100644 index 7489e45838..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.createSHAUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-modified-user.md deleted file mode 100644 index 1b8095ec35..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-modified-user.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.createScryptModifiedUser('[USER_ID]', 'email@example.com', 'password', '[PASSWORD_SALT]', '[PASSWORD_SALT_SEPARATOR]', '[PASSWORD_SIGNER_KEY]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-user.md deleted file mode 100644 index 71994f68d6..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-user.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.createScryptUser('[USER_ID]', 'email@example.com', 'password', '[PASSWORD_SALT]', null, null, null, null); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/create.md b/docs/examples/1.2.x/server-deno/examples/users/create.md deleted file mode 100644 index 144de69b6d..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/create.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/delete-session.md b/docs/examples/1.2.x/server-deno/examples/users/delete-session.md deleted file mode 100644 index e04024e5a2..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/delete-session.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.deleteSession('[USER_ID]', '[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-deno/examples/users/delete-sessions.md deleted file mode 100644 index 89dec44e39..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/delete-sessions.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.deleteSessions('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/delete.md b/docs/examples/1.2.x/server-deno/examples/users/delete.md deleted file mode 100644 index 9de2296c4c..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/delete.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.delete('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/get-prefs.md b/docs/examples/1.2.x/server-deno/examples/users/get-prefs.md deleted file mode 100644 index 033c56f3db..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/get-prefs.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.getPrefs('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/get.md b/docs/examples/1.2.x/server-deno/examples/users/get.md deleted file mode 100644 index acee263e2f..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/get.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.get('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/list-logs.md b/docs/examples/1.2.x/server-deno/examples/users/list-logs.md deleted file mode 100644 index 5ddd26fded..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/list-logs.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.listLogs('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/list-memberships.md b/docs/examples/1.2.x/server-deno/examples/users/list-memberships.md deleted file mode 100644 index eede567839..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/list-memberships.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.listMemberships('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/list-sessions.md b/docs/examples/1.2.x/server-deno/examples/users/list-sessions.md deleted file mode 100644 index c90f1b5bab..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/list-sessions.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.listSessions('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/list.md b/docs/examples/1.2.x/server-deno/examples/users/list.md deleted file mode 100644 index c986039946..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/list.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.list(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-deno/examples/users/update-email-verification.md deleted file mode 100644 index caf02ab3ac..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/update-email-verification.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.updateEmailVerification('[USER_ID]', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-email.md b/docs/examples/1.2.x/server-deno/examples/users/update-email.md deleted file mode 100644 index 1000604764..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/update-email.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.updateEmail('[USER_ID]', 'email@example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-name.md b/docs/examples/1.2.x/server-deno/examples/users/update-name.md deleted file mode 100644 index 5434047853..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/update-name.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.updateName('[USER_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-password.md b/docs/examples/1.2.x/server-deno/examples/users/update-password.md deleted file mode 100644 index ac11596a08..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/update-password.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.updatePassword('[USER_ID]', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-deno/examples/users/update-phone-verification.md deleted file mode 100644 index ecc8202bde..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/update-phone-verification.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.updatePhoneVerification('[USER_ID]', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-phone.md b/docs/examples/1.2.x/server-deno/examples/users/update-phone.md deleted file mode 100644 index ce5d356d9a..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/update-phone.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.updatePhone('[USER_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-prefs.md b/docs/examples/1.2.x/server-deno/examples/users/update-prefs.md deleted file mode 100644 index 4e88ed567a..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/update-prefs.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.updatePrefs('[USER_ID]', {}); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-status.md b/docs/examples/1.2.x/server-deno/examples/users/update-status.md deleted file mode 100644 index ec52d3715c..0000000000 --- a/docs/examples/1.2.x/server-deno/examples/users/update-status.md +++ /dev/null @@ -1,21 +0,0 @@ -import * as sdk from "https://deno.land/x/appwrite/mod.ts"; - -// Init SDK -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.updateStatus('[USER_ID]', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-graphql/examples/account/create-phone-verification.md deleted file mode 100644 index f2656f65c4..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/create-phone-verification.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - accountCreatePhoneVerification { - id - createdAt - userId - secret - expire - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/create-recovery.md b/docs/examples/1.2.x/server-graphql/examples/account/create-recovery.md deleted file mode 100644 index 449a66f9ec..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/create-recovery.md +++ /dev/null @@ -1,12 +0,0 @@ -mutation { - accountCreateRecovery( - email: "email@example.com", - url: "https://example.com" - ) { - id - createdAt - userId - secret - expire - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/create-verification.md b/docs/examples/1.2.x/server-graphql/examples/account/create-verification.md deleted file mode 100644 index caf964570d..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/create-verification.md +++ /dev/null @@ -1,11 +0,0 @@ -mutation { - accountCreateVerification( - url: "https://example.com" - ) { - id - createdAt - userId - secret - expire - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/delete-session.md b/docs/examples/1.2.x/server-graphql/examples/account/delete-session.md deleted file mode 100644 index 7cfd435011..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/delete-session.md +++ /dev/null @@ -1,7 +0,0 @@ -mutation { - accountDeleteSession( - sessionId: "[SESSION_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-graphql/examples/account/delete-sessions.md deleted file mode 100644 index 7b2bf7a976..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/delete-sessions.md +++ /dev/null @@ -1,5 +0,0 @@ -mutation { - accountDeleteSessions { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/get-prefs.md b/docs/examples/1.2.x/server-graphql/examples/account/get-prefs.md deleted file mode 100644 index f77ef6ff70..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/get-prefs.md +++ /dev/null @@ -1,5 +0,0 @@ -query { - accountGetPrefs { - data - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/get-session.md b/docs/examples/1.2.x/server-graphql/examples/account/get-session.md deleted file mode 100644 index 130a6af9af..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/get-session.md +++ /dev/null @@ -1,31 +0,0 @@ -query { - accountGetSession( - sessionId: "[SESSION_ID]" - ) { - id - createdAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/get.md b/docs/examples/1.2.x/server-graphql/examples/account/get.md deleted file mode 100644 index 54baf853c7..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/get.md +++ /dev/null @@ -1,16 +0,0 @@ -query { - accountGet { - id - createdAt - updatedAt - name - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/list-logs.md b/docs/examples/1.2.x/server-graphql/examples/account/list-logs.md deleted file mode 100644 index aae32886ec..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/list-logs.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - accountListLogs { - total - logs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/list-sessions.md b/docs/examples/1.2.x/server-graphql/examples/account/list-sessions.md deleted file mode 100644 index 397d615381..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/list-sessions.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - accountListSessions { - total - sessions - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/update-email.md b/docs/examples/1.2.x/server-graphql/examples/account/update-email.md deleted file mode 100644 index dad4bc6f09..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/update-email.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - accountUpdateEmail( - email: "email@example.com", - password: "password" - ) { - id - createdAt - updatedAt - name - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/update-name.md b/docs/examples/1.2.x/server-graphql/examples/account/update-name.md deleted file mode 100644 index 2a5cc67ee1..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/update-name.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - accountUpdateName( - name: "[NAME]" - ) { - id - createdAt - updatedAt - name - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/update-password.md b/docs/examples/1.2.x/server-graphql/examples/account/update-password.md deleted file mode 100644 index e88dbb0a5f..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/update-password.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - accountUpdatePassword( - password: "password" - ) { - id - createdAt - updatedAt - name - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-graphql/examples/account/update-phone-verification.md deleted file mode 100644 index b6c251a8a8..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/update-phone-verification.md +++ /dev/null @@ -1,12 +0,0 @@ -mutation { - accountUpdatePhoneVerification( - userId: "[USER_ID]", - secret: "[SECRET]" - ) { - id - createdAt - userId - secret - expire - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/update-phone.md b/docs/examples/1.2.x/server-graphql/examples/account/update-phone.md deleted file mode 100644 index f532585ba7..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/update-phone.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - accountUpdatePhone( - phone: "", - password: "password" - ) { - id - createdAt - updatedAt - name - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/update-prefs.md b/docs/examples/1.2.x/server-graphql/examples/account/update-prefs.md deleted file mode 100644 index 1c433b590f..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/update-prefs.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - accountUpdatePrefs( - prefs: "{}" - ) { - id - createdAt - updatedAt - name - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/update-recovery.md b/docs/examples/1.2.x/server-graphql/examples/account/update-recovery.md deleted file mode 100644 index abbb8c6123..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/update-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ -mutation { - accountUpdateRecovery( - userId: "[USER_ID]", - secret: "[SECRET]", - password: "password", - passwordAgain: "password" - ) { - id - createdAt - userId - secret - expire - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/update-session.md b/docs/examples/1.2.x/server-graphql/examples/account/update-session.md deleted file mode 100644 index acb4f614c7..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/update-session.md +++ /dev/null @@ -1,31 +0,0 @@ -mutation { - accountUpdateSession( - sessionId: "[SESSION_ID]" - ) { - id - createdAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/update-status.md b/docs/examples/1.2.x/server-graphql/examples/account/update-status.md deleted file mode 100644 index f7b6c4fbff..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/update-status.md +++ /dev/null @@ -1,16 +0,0 @@ -mutation { - accountUpdateStatus { - id - createdAt - updatedAt - name - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/account/update-verification.md b/docs/examples/1.2.x/server-graphql/examples/account/update-verification.md deleted file mode 100644 index 4e738e06b1..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/account/update-verification.md +++ /dev/null @@ -1,12 +0,0 @@ -mutation { - accountUpdateVerification( - userId: "[USER_ID]", - secret: "[SECRET]" - ) { - id - createdAt - userId - secret - expire - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-graphql/examples/avatars/get-browser.md deleted file mode 100644 index 0cd2af38ad..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/avatars/get-browser.md +++ /dev/null @@ -1,7 +0,0 @@ -query { - avatarsGetBrowser( - code: "aa" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-graphql/examples/avatars/get-credit-card.md deleted file mode 100644 index 0dbfd8a261..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,7 +0,0 @@ -query { - avatarsGetCreditCard( - code: "amex" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-graphql/examples/avatars/get-favicon.md deleted file mode 100644 index 3e4ac1e617..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/avatars/get-favicon.md +++ /dev/null @@ -1,7 +0,0 @@ -query { - avatarsGetFavicon( - url: "https://example.com" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-graphql/examples/avatars/get-flag.md deleted file mode 100644 index 648cbf577b..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/avatars/get-flag.md +++ /dev/null @@ -1,7 +0,0 @@ -query { - avatarsGetFlag( - code: "af" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/avatars/get-image.md b/docs/examples/1.2.x/server-graphql/examples/avatars/get-image.md deleted file mode 100644 index 3921e06205..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/avatars/get-image.md +++ /dev/null @@ -1,7 +0,0 @@ -query { - avatarsGetImage( - url: "https://example.com" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-graphql/examples/avatars/get-initials.md deleted file mode 100644 index b072255fcf..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/avatars/get-initials.md +++ /dev/null @@ -1,5 +0,0 @@ -query { - avatarsGetInitials { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-graphql/examples/avatars/get-q-r.md deleted file mode 100644 index c3e1ee6d55..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/avatars/get-q-r.md +++ /dev/null @@ -1,7 +0,0 @@ -query { - avatarsGetQR( - text: "[TEXT]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-graphql/examples/databases/create-boolean-attribute.md deleted file mode 100644 index 206c0132ba..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/create-boolean-attribute.md +++ /dev/null @@ -1,13 +0,0 @@ -mutation { - databasesCreateBooleanAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - required: false - ) { - key - type - status - required - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/create-collection.md b/docs/examples/1.2.x/server-graphql/examples/databases/create-collection.md deleted file mode 100644 index 744623899b..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/create-collection.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - databasesCreateCollection( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - name: "[NAME]" - ) { - id - createdAt - updatedAt - permissions - databaseId - name - enabled - documentSecurity - attributes - indexes - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-graphql/examples/databases/create-datetime-attribute.md deleted file mode 100644 index a096761584..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/create-datetime-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -mutation { - databasesCreateDatetimeAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - required: false - ) { - key - type - status - required - format - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/create-document.md b/docs/examples/1.2.x/server-graphql/examples/databases/create-document.md deleted file mode 100644 index 5073fe709a..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/create-document.md +++ /dev/null @@ -1,16 +0,0 @@ -mutation { - databasesCreateDocument( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]", - data: "{}" - ) { - id - collectionId - databaseId - createdAt - updatedAt - permissions - data - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-graphql/examples/databases/create-email-attribute.md deleted file mode 100644 index b6d75eb742..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/create-email-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -mutation { - databasesCreateEmailAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - required: false - ) { - key - type - status - required - format - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-graphql/examples/databases/create-enum-attribute.md deleted file mode 100644 index c0e9d876e8..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/create-enum-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -mutation { - databasesCreateEnumAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - elements: [], - required: false - ) { - key - type - status - required - elements - format - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-graphql/examples/databases/create-float-attribute.md deleted file mode 100644 index 2c599393f5..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/create-float-attribute.md +++ /dev/null @@ -1,13 +0,0 @@ -mutation { - databasesCreateFloatAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - required: false - ) { - key - type - status - required - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/create-index.md b/docs/examples/1.2.x/server-graphql/examples/databases/create-index.md deleted file mode 100644 index dccc5894d0..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/create-index.md +++ /dev/null @@ -1,14 +0,0 @@ -mutation { - databasesCreateIndex( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - type: "key", - attributes: [] - ) { - key - type - status - attributes - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-graphql/examples/databases/create-integer-attribute.md deleted file mode 100644 index 7a099df286..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/create-integer-attribute.md +++ /dev/null @@ -1,13 +0,0 @@ -mutation { - databasesCreateIntegerAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - required: false - ) { - key - type - status - required - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-graphql/examples/databases/create-ip-attribute.md deleted file mode 100644 index ce86427d67..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/create-ip-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -mutation { - databasesCreateIpAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - required: false - ) { - key - type - status - required - format - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-graphql/examples/databases/create-string-attribute.md deleted file mode 100644 index 2f593c0d74..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/create-string-attribute.md +++ /dev/null @@ -1,15 +0,0 @@ -mutation { - databasesCreateStringAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - size: 1, - required: false - ) { - key - type - status - required - size - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-graphql/examples/databases/create-url-attribute.md deleted file mode 100644 index a2723fd4d5..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/create-url-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -mutation { - databasesCreateUrlAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - required: false - ) { - key - type - status - required - format - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/create.md b/docs/examples/1.2.x/server-graphql/examples/databases/create.md deleted file mode 100644 index f04e86e128..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/create.md +++ /dev/null @@ -1,11 +0,0 @@ -mutation { - databasesCreate( - databaseId: "[DATABASE_ID]", - name: "[NAME]" - ) { - id - name - createdAt - updatedAt - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-graphql/examples/databases/delete-attribute.md deleted file mode 100644 index dc9ceb3086..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/delete-attribute.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - databasesDeleteAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-graphql/examples/databases/delete-collection.md deleted file mode 100644 index 274a8acae6..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/delete-collection.md +++ /dev/null @@ -1,8 +0,0 @@ -mutation { - databasesDeleteCollection( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/delete-document.md b/docs/examples/1.2.x/server-graphql/examples/databases/delete-document.md deleted file mode 100644 index 9a6e013fb0..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/delete-document.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - databasesDeleteDocument( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/delete-index.md b/docs/examples/1.2.x/server-graphql/examples/databases/delete-index.md deleted file mode 100644 index 0ec0c2a9aa..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/delete-index.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - databasesDeleteIndex( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/delete.md b/docs/examples/1.2.x/server-graphql/examples/databases/delete.md deleted file mode 100644 index 4fab7e4f21..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/delete.md +++ /dev/null @@ -1,7 +0,0 @@ -mutation { - databasesDelete( - databaseId: "[DATABASE_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-graphql/examples/databases/get-attribute.md deleted file mode 100644 index d4591a7c01..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/get-attribute.md +++ /dev/null @@ -1,9 +0,0 @@ -query { - databasesGetAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/get-collection.md b/docs/examples/1.2.x/server-graphql/examples/databases/get-collection.md deleted file mode 100644 index 616931486a..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/get-collection.md +++ /dev/null @@ -1,17 +0,0 @@ -query { - databasesGetCollection( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]" - ) { - id - createdAt - updatedAt - permissions - databaseId - name - enabled - documentSecurity - attributes - indexes - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/get-document.md b/docs/examples/1.2.x/server-graphql/examples/databases/get-document.md deleted file mode 100644 index 1123167a94..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/get-document.md +++ /dev/null @@ -1,15 +0,0 @@ -query { - databasesGetDocument( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]" - ) { - id - collectionId - databaseId - createdAt - updatedAt - permissions - data - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/get-index.md b/docs/examples/1.2.x/server-graphql/examples/databases/get-index.md deleted file mode 100644 index 0ef928d328..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/get-index.md +++ /dev/null @@ -1,12 +0,0 @@ -query { - databasesGetIndex( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "" - ) { - key - type - status - attributes - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/get.md b/docs/examples/1.2.x/server-graphql/examples/databases/get.md deleted file mode 100644 index c6cc8b394a..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/get.md +++ /dev/null @@ -1,10 +0,0 @@ -query { - databasesGet( - databaseId: "[DATABASE_ID]" - ) { - id - name - createdAt - updatedAt - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-graphql/examples/databases/list-attributes.md deleted file mode 100644 index 4b883ad1f5..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/list-attributes.md +++ /dev/null @@ -1,9 +0,0 @@ -query { - databasesListAttributes( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]" - ) { - total - attributes - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/list-collections.md b/docs/examples/1.2.x/server-graphql/examples/databases/list-collections.md deleted file mode 100644 index 382a99398f..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/list-collections.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - databasesListCollections( - databaseId: "[DATABASE_ID]" - ) { - total - collections - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/list-documents.md b/docs/examples/1.2.x/server-graphql/examples/databases/list-documents.md deleted file mode 100644 index 9ff5fa589d..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/list-documents.md +++ /dev/null @@ -1,9 +0,0 @@ -query { - databasesListDocuments( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]" - ) { - total - documents - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-graphql/examples/databases/list-indexes.md deleted file mode 100644 index 360093c6d2..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/list-indexes.md +++ /dev/null @@ -1,9 +0,0 @@ -query { - databasesListIndexes( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]" - ) { - total - indexes - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/list.md b/docs/examples/1.2.x/server-graphql/examples/databases/list.md deleted file mode 100644 index 1e3497a0e8..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/list.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - databasesList { - total - databases - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/update-collection.md b/docs/examples/1.2.x/server-graphql/examples/databases/update-collection.md deleted file mode 100644 index 44be731eed..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/update-collection.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - databasesUpdateCollection( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - name: "[NAME]" - ) { - id - createdAt - updatedAt - permissions - databaseId - name - enabled - documentSecurity - attributes - indexes - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/update-document.md b/docs/examples/1.2.x/server-graphql/examples/databases/update-document.md deleted file mode 100644 index 32fb05b56f..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/update-document.md +++ /dev/null @@ -1,15 +0,0 @@ -mutation { - databasesUpdateDocument( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]" - ) { - id - collectionId - databaseId - createdAt - updatedAt - permissions - data - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/databases/update.md b/docs/examples/1.2.x/server-graphql/examples/databases/update.md deleted file mode 100644 index aa3be2ced8..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/databases/update.md +++ /dev/null @@ -1,11 +0,0 @@ -mutation { - databasesUpdate( - databaseId: "[DATABASE_ID]", - name: "[NAME]" - ) { - id - name - createdAt - updatedAt - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/create-build.md b/docs/examples/1.2.x/server-graphql/examples/functions/create-build.md deleted file mode 100644 index 2edb00d229..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/create-build.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - functionsCreateBuild( - functionId: "[FUNCTION_ID]", - deploymentId: "[DEPLOYMENT_ID]", - buildId: "[BUILD_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-graphql/examples/functions/create-deployment.md deleted file mode 100644 index 32fe4bf6ee..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/create-deployment.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - functionsCreateDeployment( - functionId: "[FUNCTION_ID]", - entrypoint: "[ENTRYPOINT]", - code: null, - activate: false - ) { - id - createdAt - updatedAt - resourceId - resourceType - entrypoint - size - buildId - activate - status - buildStdout - buildStderr - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/create-execution.md b/docs/examples/1.2.x/server-graphql/examples/functions/create-execution.md deleted file mode 100644 index a4e089d12f..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/create-execution.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - functionsCreateExecution( - functionId: "[FUNCTION_ID]" - ) { - id - createdAt - updatedAt - permissions - functionId - trigger - status - statusCode - response - stdout - stderr - duration - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/create-variable.md b/docs/examples/1.2.x/server-graphql/examples/functions/create-variable.md deleted file mode 100644 index f906d0cd93..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/create-variable.md +++ /dev/null @@ -1,14 +0,0 @@ -mutation { - functionsCreateVariable( - functionId: "[FUNCTION_ID]", - key: "[KEY]", - value: "[VALUE]" - ) { - id - createdAt - updatedAt - key - value - functionId - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/create.md b/docs/examples/1.2.x/server-graphql/examples/functions/create.md deleted file mode 100644 index 9532c1a21d..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/create.md +++ /dev/null @@ -1,23 +0,0 @@ -mutation { - functionsCreate( - functionId: "[FUNCTION_ID]", - name: "[NAME]", - execute: ["any"], - runtime: "node-14.5" - ) { - id - createdAt - updatedAt - execute - name - enabled - runtime - deployment - vars - events - schedule - scheduleNext - schedulePrevious - timeout - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-graphql/examples/functions/delete-deployment.md deleted file mode 100644 index 38f6100f38..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/delete-deployment.md +++ /dev/null @@ -1,8 +0,0 @@ -mutation { - functionsDeleteDeployment( - functionId: "[FUNCTION_ID]", - deploymentId: "[DEPLOYMENT_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-graphql/examples/functions/delete-variable.md deleted file mode 100644 index acc2dbca4b..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/delete-variable.md +++ /dev/null @@ -1,8 +0,0 @@ -mutation { - functionsDeleteVariable( - functionId: "[FUNCTION_ID]", - variableId: "[VARIABLE_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/delete.md b/docs/examples/1.2.x/server-graphql/examples/functions/delete.md deleted file mode 100644 index 03c3e5d867..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/delete.md +++ /dev/null @@ -1,7 +0,0 @@ -mutation { - functionsDelete( - functionId: "[FUNCTION_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-graphql/examples/functions/get-deployment.md deleted file mode 100644 index 88971b622f..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/get-deployment.md +++ /dev/null @@ -1,19 +0,0 @@ -query { - functionsGetDeployment( - functionId: "[FUNCTION_ID]", - deploymentId: "[DEPLOYMENT_ID]" - ) { - id - createdAt - updatedAt - resourceId - resourceType - entrypoint - size - buildId - activate - status - buildStdout - buildStderr - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/get-execution.md b/docs/examples/1.2.x/server-graphql/examples/functions/get-execution.md deleted file mode 100644 index 679e879020..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/get-execution.md +++ /dev/null @@ -1,19 +0,0 @@ -query { - functionsGetExecution( - functionId: "[FUNCTION_ID]", - executionId: "[EXECUTION_ID]" - ) { - id - createdAt - updatedAt - permissions - functionId - trigger - status - statusCode - response - stdout - stderr - duration - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/get-variable.md b/docs/examples/1.2.x/server-graphql/examples/functions/get-variable.md deleted file mode 100644 index 2d005a6165..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/get-variable.md +++ /dev/null @@ -1,13 +0,0 @@ -query { - functionsGetVariable( - functionId: "[FUNCTION_ID]", - variableId: "[VARIABLE_ID]" - ) { - id - createdAt - updatedAt - key - value - functionId - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/get.md b/docs/examples/1.2.x/server-graphql/examples/functions/get.md deleted file mode 100644 index 357c665cbd..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/get.md +++ /dev/null @@ -1,20 +0,0 @@ -query { - functionsGet( - functionId: "[FUNCTION_ID]" - ) { - id - createdAt - updatedAt - execute - name - enabled - runtime - deployment - vars - events - schedule - scheduleNext - schedulePrevious - timeout - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-graphql/examples/functions/list-deployments.md deleted file mode 100644 index 0ef3c44667..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/list-deployments.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - functionsListDeployments( - functionId: "[FUNCTION_ID]" - ) { - total - deployments - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/list-executions.md b/docs/examples/1.2.x/server-graphql/examples/functions/list-executions.md deleted file mode 100644 index 748ce18912..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/list-executions.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - functionsListExecutions( - functionId: "[FUNCTION_ID]" - ) { - total - executions - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-graphql/examples/functions/list-runtimes.md deleted file mode 100644 index 664c3beeba..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/list-runtimes.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - functionsListRuntimes { - total - runtimes - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/list-variables.md b/docs/examples/1.2.x/server-graphql/examples/functions/list-variables.md deleted file mode 100644 index e789299407..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/list-variables.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - functionsListVariables( - functionId: "[FUNCTION_ID]" - ) { - total - variables - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/list.md b/docs/examples/1.2.x/server-graphql/examples/functions/list.md deleted file mode 100644 index b4e31506a8..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/list.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - functionsList { - total - functions - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-graphql/examples/functions/update-deployment.md deleted file mode 100644 index 45b56fbc0c..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/update-deployment.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - functionsUpdateDeployment( - functionId: "[FUNCTION_ID]", - deploymentId: "[DEPLOYMENT_ID]" - ) { - id - createdAt - updatedAt - execute - name - enabled - runtime - deployment - vars - events - schedule - scheduleNext - schedulePrevious - timeout - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/update-variable.md b/docs/examples/1.2.x/server-graphql/examples/functions/update-variable.md deleted file mode 100644 index 70e75670e2..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/update-variable.md +++ /dev/null @@ -1,14 +0,0 @@ -mutation { - functionsUpdateVariable( - functionId: "[FUNCTION_ID]", - variableId: "[VARIABLE_ID]", - key: "[KEY]" - ) { - id - createdAt - updatedAt - key - value - functionId - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/functions/update.md b/docs/examples/1.2.x/server-graphql/examples/functions/update.md deleted file mode 100644 index 77ce3ac0d2..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/functions/update.md +++ /dev/null @@ -1,22 +0,0 @@ -mutation { - functionsUpdate( - functionId: "[FUNCTION_ID]", - name: "[NAME]", - execute: ["any"] - ) { - id - createdAt - updatedAt - execute - name - enabled - runtime - deployment - vars - events - schedule - scheduleNext - schedulePrevious - timeout - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-graphql/examples/health/get-antivirus.md deleted file mode 100644 index 8298aef991..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/health/get-antivirus.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - healthGetAntivirus { - version - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/health/get-cache.md b/docs/examples/1.2.x/server-graphql/examples/health/get-cache.md deleted file mode 100644 index ada4d8405e..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/health/get-cache.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - healthGetCache { - ping - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/health/get-d-b.md b/docs/examples/1.2.x/server-graphql/examples/health/get-d-b.md deleted file mode 100644 index 22da84102b..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/health/get-d-b.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - healthGetDB { - ping - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-graphql/examples/health/get-queue-certificates.md deleted file mode 100644 index 9b1eddc480..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,5 +0,0 @@ -query { - healthGetQueueCertificates { - size - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-graphql/examples/health/get-queue-functions.md deleted file mode 100644 index c4ca574302..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/health/get-queue-functions.md +++ /dev/null @@ -1,5 +0,0 @@ -query { - healthGetQueueFunctions { - size - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-graphql/examples/health/get-queue-logs.md deleted file mode 100644 index b1016f97e7..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/health/get-queue-logs.md +++ /dev/null @@ -1,5 +0,0 @@ -query { - healthGetQueueLogs { - size - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-graphql/examples/health/get-queue-webhooks.md deleted file mode 100644 index 23802dac2a..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,5 +0,0 @@ -query { - healthGetQueueWebhooks { - size - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-graphql/examples/health/get-storage-local.md deleted file mode 100644 index da87a5eb39..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/health/get-storage-local.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - healthGetStorageLocal { - ping - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/health/get-time.md b/docs/examples/1.2.x/server-graphql/examples/health/get-time.md deleted file mode 100644 index 83d70f8ce1..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/health/get-time.md +++ /dev/null @@ -1,7 +0,0 @@ -query { - healthGetTime { - remoteTime - localTime - diff - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/health/get.md b/docs/examples/1.2.x/server-graphql/examples/health/get.md deleted file mode 100644 index c1680aea73..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/health/get.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - healthGet { - ping - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/locale/get.md b/docs/examples/1.2.x/server-graphql/examples/locale/get.md deleted file mode 100644 index 6c0a19c545..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/locale/get.md +++ /dev/null @@ -1,11 +0,0 @@ -query { - localeGet { - ip - countryCode - country - continentCode - continent - eu - currency - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/locale/list-continents.md b/docs/examples/1.2.x/server-graphql/examples/locale/list-continents.md deleted file mode 100644 index 498d26d6a7..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/locale/list-continents.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - localeListContinents { - total - continents - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-graphql/examples/locale/list-countries-e-u.md deleted file mode 100644 index e3d549399b..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/locale/list-countries-e-u.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - localeListCountriesEU { - total - countries - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-graphql/examples/locale/list-countries-phones.md deleted file mode 100644 index a3285e4f04..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/locale/list-countries-phones.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - localeListCountriesPhones { - total - phones - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/locale/list-countries.md b/docs/examples/1.2.x/server-graphql/examples/locale/list-countries.md deleted file mode 100644 index 01be755392..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/locale/list-countries.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - localeListCountries { - total - countries - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-graphql/examples/locale/list-currencies.md deleted file mode 100644 index df0c60ee9d..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/locale/list-currencies.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - localeListCurrencies { - total - currencies - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/locale/list-languages.md b/docs/examples/1.2.x/server-graphql/examples/locale/list-languages.md deleted file mode 100644 index de4b911d60..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/locale/list-languages.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - localeListLanguages { - total - languages - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-graphql/examples/storage/create-bucket.md deleted file mode 100644 index 0bfff9a4a7..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/storage/create-bucket.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - storageCreateBucket( - bucketId: "[BUCKET_ID]", - name: "[NAME]" - ) { - id - createdAt - updatedAt - permissions - fileSecurity - name - enabled - maximumFileSize - allowedFileExtensions - compression - encryption - antivirus - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/storage/create-file.md b/docs/examples/1.2.x/server-graphql/examples/storage/create-file.md deleted file mode 100644 index 692d7ba966..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/storage/create-file.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - storageCreateFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]", - file: null - ) { - id - bucketId - createdAt - updatedAt - permissions - name - signature - mimeType - sizeOriginal - chunksTotal - chunksUploaded - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-graphql/examples/storage/delete-bucket.md deleted file mode 100644 index 48805df442..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/storage/delete-bucket.md +++ /dev/null @@ -1,7 +0,0 @@ -mutation { - storageDeleteBucket( - bucketId: "[BUCKET_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/storage/delete-file.md b/docs/examples/1.2.x/server-graphql/examples/storage/delete-file.md deleted file mode 100644 index 354f48836e..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/storage/delete-file.md +++ /dev/null @@ -1,8 +0,0 @@ -mutation { - storageDeleteFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-graphql/examples/storage/get-bucket.md deleted file mode 100644 index 8f05c5cb25..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/storage/get-bucket.md +++ /dev/null @@ -1,18 +0,0 @@ -query { - storageGetBucket( - bucketId: "[BUCKET_ID]" - ) { - id - createdAt - updatedAt - permissions - fileSecurity - name - enabled - maximumFileSize - allowedFileExtensions - compression - encryption - antivirus - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-graphql/examples/storage/get-file-download.md deleted file mode 100644 index 5e94b92a7d..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/storage/get-file-download.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - storageGetFileDownload( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-graphql/examples/storage/get-file-preview.md deleted file mode 100644 index 0071ea78bb..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/storage/get-file-preview.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - storageGetFilePreview( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-graphql/examples/storage/get-file-view.md deleted file mode 100644 index 7f442635ad..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/storage/get-file-view.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - storageGetFileView( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/storage/get-file.md b/docs/examples/1.2.x/server-graphql/examples/storage/get-file.md deleted file mode 100644 index bd6270b3fb..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/storage/get-file.md +++ /dev/null @@ -1,18 +0,0 @@ -query { - storageGetFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) { - id - bucketId - createdAt - updatedAt - permissions - name - signature - mimeType - sizeOriginal - chunksTotal - chunksUploaded - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-graphql/examples/storage/list-buckets.md deleted file mode 100644 index dba477bd38..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/storage/list-buckets.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - storageListBuckets { - total - buckets - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/storage/list-files.md b/docs/examples/1.2.x/server-graphql/examples/storage/list-files.md deleted file mode 100644 index 1e1d6821d1..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/storage/list-files.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - storageListFiles( - bucketId: "[BUCKET_ID]" - ) { - total - files - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-graphql/examples/storage/update-bucket.md deleted file mode 100644 index b73c3ed488..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/storage/update-bucket.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - storageUpdateBucket( - bucketId: "[BUCKET_ID]", - name: "[NAME]" - ) { - id - createdAt - updatedAt - permissions - fileSecurity - name - enabled - maximumFileSize - allowedFileExtensions - compression - encryption - antivirus - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/storage/update-file.md b/docs/examples/1.2.x/server-graphql/examples/storage/update-file.md deleted file mode 100644 index 193299c5a1..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/storage/update-file.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - storageUpdateFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) { - id - bucketId - createdAt - updatedAt - permissions - name - signature - mimeType - sizeOriginal - chunksTotal - chunksUploaded - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/teams/create-membership.md b/docs/examples/1.2.x/server-graphql/examples/teams/create-membership.md deleted file mode 100644 index b671c9dac7..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/teams/create-membership.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - teamsCreateMembership( - teamId: "[TEAM_ID]", - email: "email@example.com", - roles: [], - url: "https://example.com" - ) { - id - createdAt - updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - roles - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/teams/create.md b/docs/examples/1.2.x/server-graphql/examples/teams/create.md deleted file mode 100644 index 651a8ab0e3..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/teams/create.md +++ /dev/null @@ -1,12 +0,0 @@ -mutation { - teamsCreate( - teamId: "[TEAM_ID]", - name: "[NAME]" - ) { - id - createdAt - updatedAt - name - total - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-graphql/examples/teams/delete-membership.md deleted file mode 100644 index cb0d4fe9d9..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/teams/delete-membership.md +++ /dev/null @@ -1,8 +0,0 @@ -mutation { - teamsDeleteMembership( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/teams/delete.md b/docs/examples/1.2.x/server-graphql/examples/teams/delete.md deleted file mode 100644 index d8fe20c0fc..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/teams/delete.md +++ /dev/null @@ -1,7 +0,0 @@ -mutation { - teamsDelete( - teamId: "[TEAM_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/teams/get-membership.md b/docs/examples/1.2.x/server-graphql/examples/teams/get-membership.md deleted file mode 100644 index db95014a37..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/teams/get-membership.md +++ /dev/null @@ -1,19 +0,0 @@ -query { - teamsGetMembership( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]" - ) { - id - createdAt - updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - roles - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/teams/get.md b/docs/examples/1.2.x/server-graphql/examples/teams/get.md deleted file mode 100644 index 765d88f979..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/teams/get.md +++ /dev/null @@ -1,11 +0,0 @@ -query { - teamsGet( - teamId: "[TEAM_ID]" - ) { - id - createdAt - updatedAt - name - total - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-graphql/examples/teams/list-memberships.md deleted file mode 100644 index 5ac1d8eccf..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/teams/list-memberships.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - teamsListMemberships( - teamId: "[TEAM_ID]" - ) { - total - memberships - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/teams/list.md b/docs/examples/1.2.x/server-graphql/examples/teams/list.md deleted file mode 100644 index c4917cf966..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/teams/list.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - teamsList { - total - teams - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-graphql/examples/teams/update-membership-roles.md deleted file mode 100644 index c5653260f5..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,20 +0,0 @@ -mutation { - teamsUpdateMembershipRoles( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]", - roles: [] - ) { - id - createdAt - updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - roles - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-graphql/examples/teams/update-membership-status.md deleted file mode 100644 index c98b369370..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/teams/update-membership-status.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - teamsUpdateMembershipStatus( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]", - userId: "[USER_ID]", - secret: "[SECRET]" - ) { - id - createdAt - updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - roles - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/teams/update.md b/docs/examples/1.2.x/server-graphql/examples/teams/update.md deleted file mode 100644 index 45697ce588..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/teams/update.md +++ /dev/null @@ -1,12 +0,0 @@ -mutation { - teamsUpdate( - teamId: "[TEAM_ID]", - name: "[NAME]" - ) { - id - createdAt - updatedAt - name - total - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-graphql/examples/users/create-argon2user.md deleted file mode 100644 index e0e2408656..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/create-argon2user.md +++ /dev/null @@ -1,23 +0,0 @@ -mutation { - usersCreateArgon2User( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) { - id - createdAt - updatedAt - name - password - hash - hashOptions - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-graphql/examples/users/create-bcrypt-user.md deleted file mode 100644 index c2d5bedb33..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,23 +0,0 @@ -mutation { - usersCreateBcryptUser( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) { - id - createdAt - updatedAt - name - password - hash - hashOptions - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-graphql/examples/users/create-m-d5user.md deleted file mode 100644 index 1784e3233d..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/create-m-d5user.md +++ /dev/null @@ -1,23 +0,0 @@ -mutation { - usersCreateMD5User( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) { - id - createdAt - updatedAt - name - password - hash - hashOptions - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-graphql/examples/users/create-p-h-pass-user.md deleted file mode 100644 index 180c3bb02d..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,23 +0,0 @@ -mutation { - usersCreatePHPassUser( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) { - id - createdAt - updatedAt - name - password - hash - hashOptions - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-graphql/examples/users/create-s-h-a-user.md deleted file mode 100644 index 9e0642846c..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,23 +0,0 @@ -mutation { - usersCreateSHAUser( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) { - id - createdAt - updatedAt - name - password - hash - hashOptions - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-graphql/examples/users/create-scrypt-modified-user.md deleted file mode 100644 index a2867f4c86..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/create-scrypt-modified-user.md +++ /dev/null @@ -1,26 +0,0 @@ -mutation { - usersCreateScryptModifiedUser( - userId: "[USER_ID]", - email: "email@example.com", - password: "password", - passwordSalt: "[PASSWORD_SALT]", - passwordSaltSeparator: "[PASSWORD_SALT_SEPARATOR]", - passwordSignerKey: "[PASSWORD_SIGNER_KEY]" - ) { - id - createdAt - updatedAt - name - password - hash - hashOptions - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-graphql/examples/users/create-scrypt-user.md deleted file mode 100644 index c8e6f1d090..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/create-scrypt-user.md +++ /dev/null @@ -1,28 +0,0 @@ -mutation { - usersCreateScryptUser( - userId: "[USER_ID]", - email: "email@example.com", - password: "password", - passwordSalt: "[PASSWORD_SALT]", - passwordCpu: 0, - passwordMemory: 0, - passwordParallel: 0, - passwordLength: 0 - ) { - id - createdAt - updatedAt - name - password - hash - hashOptions - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/create.md b/docs/examples/1.2.x/server-graphql/examples/users/create.md deleted file mode 100644 index f0c6c4d346..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/create.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - usersCreate( - userId: "[USER_ID]" - ) { - id - createdAt - updatedAt - name - password - hash - hashOptions - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/delete-session.md b/docs/examples/1.2.x/server-graphql/examples/users/delete-session.md deleted file mode 100644 index fdd2f981af..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/delete-session.md +++ /dev/null @@ -1,8 +0,0 @@ -mutation { - usersDeleteSession( - userId: "[USER_ID]", - sessionId: "[SESSION_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-graphql/examples/users/delete-sessions.md deleted file mode 100644 index 3529224ab3..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/delete-sessions.md +++ /dev/null @@ -1,7 +0,0 @@ -mutation { - usersDeleteSessions( - userId: "[USER_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/delete.md b/docs/examples/1.2.x/server-graphql/examples/users/delete.md deleted file mode 100644 index ad8b723e20..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/delete.md +++ /dev/null @@ -1,7 +0,0 @@ -mutation { - usersDelete( - userId: "[USER_ID]" - ) { - status - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/get-prefs.md b/docs/examples/1.2.x/server-graphql/examples/users/get-prefs.md deleted file mode 100644 index fc98aa50c3..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/get-prefs.md +++ /dev/null @@ -1,7 +0,0 @@ -query { - usersGetPrefs( - userId: "[USER_ID]" - ) { - data - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/get.md b/docs/examples/1.2.x/server-graphql/examples/users/get.md deleted file mode 100644 index 850d89bd1c..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/get.md +++ /dev/null @@ -1,21 +0,0 @@ -query { - usersGet( - userId: "[USER_ID]" - ) { - id - createdAt - updatedAt - name - password - hash - hashOptions - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/list-logs.md b/docs/examples/1.2.x/server-graphql/examples/users/list-logs.md deleted file mode 100644 index 490f018dce..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/list-logs.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - usersListLogs( - userId: "[USER_ID]" - ) { - total - logs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/list-memberships.md b/docs/examples/1.2.x/server-graphql/examples/users/list-memberships.md deleted file mode 100644 index 58ce10c122..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/list-memberships.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - usersListMemberships( - userId: "[USER_ID]" - ) { - total - memberships - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/list-sessions.md b/docs/examples/1.2.x/server-graphql/examples/users/list-sessions.md deleted file mode 100644 index de8f8769f2..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/list-sessions.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - usersListSessions( - userId: "[USER_ID]" - ) { - total - sessions - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/list.md b/docs/examples/1.2.x/server-graphql/examples/users/list.md deleted file mode 100644 index 3c5c827831..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/list.md +++ /dev/null @@ -1,6 +0,0 @@ -query { - usersList { - total - users - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-graphql/examples/users/update-email-verification.md deleted file mode 100644 index 467d545bb2..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/update-email-verification.md +++ /dev/null @@ -1,22 +0,0 @@ -mutation { - usersUpdateEmailVerification( - userId: "[USER_ID]", - emailVerification: false - ) { - id - createdAt - updatedAt - name - password - hash - hashOptions - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/update-email.md b/docs/examples/1.2.x/server-graphql/examples/users/update-email.md deleted file mode 100644 index 0419c755ee..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/update-email.md +++ /dev/null @@ -1,22 +0,0 @@ -mutation { - usersUpdateEmail( - userId: "[USER_ID]", - email: "email@example.com" - ) { - id - createdAt - updatedAt - name - password - hash - hashOptions - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/update-name.md b/docs/examples/1.2.x/server-graphql/examples/users/update-name.md deleted file mode 100644 index b668900e70..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/update-name.md +++ /dev/null @@ -1,22 +0,0 @@ -mutation { - usersUpdateName( - userId: "[USER_ID]", - name: "[NAME]" - ) { - id - createdAt - updatedAt - name - password - hash - hashOptions - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/update-password.md b/docs/examples/1.2.x/server-graphql/examples/users/update-password.md deleted file mode 100644 index 141e8ebf14..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/update-password.md +++ /dev/null @@ -1,22 +0,0 @@ -mutation { - usersUpdatePassword( - userId: "[USER_ID]", - password: "password" - ) { - id - createdAt - updatedAt - name - password - hash - hashOptions - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-graphql/examples/users/update-phone-verification.md deleted file mode 100644 index 926ab568d8..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/update-phone-verification.md +++ /dev/null @@ -1,22 +0,0 @@ -mutation { - usersUpdatePhoneVerification( - userId: "[USER_ID]", - phoneVerification: false - ) { - id - createdAt - updatedAt - name - password - hash - hashOptions - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/update-phone.md b/docs/examples/1.2.x/server-graphql/examples/users/update-phone.md deleted file mode 100644 index 0651793d61..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/update-phone.md +++ /dev/null @@ -1,22 +0,0 @@ -mutation { - usersUpdatePhone( - userId: "[USER_ID]", - number: "" - ) { - id - createdAt - updatedAt - name - password - hash - hashOptions - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/update-prefs.md b/docs/examples/1.2.x/server-graphql/examples/users/update-prefs.md deleted file mode 100644 index 881226b6a1..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/update-prefs.md +++ /dev/null @@ -1,8 +0,0 @@ -mutation { - usersUpdatePrefs( - userId: "[USER_ID]", - prefs: "{}" - ) { - data - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-graphql/examples/users/update-status.md b/docs/examples/1.2.x/server-graphql/examples/users/update-status.md deleted file mode 100644 index abdd614c65..0000000000 --- a/docs/examples/1.2.x/server-graphql/examples/users/update-status.md +++ /dev/null @@ -1,22 +0,0 @@ -mutation { - usersUpdateStatus( - userId: "[USER_ID]", - status: false - ) { - id - createdAt - updatedAt - name - password - hash - hashOptions - registration - status - passwordUpdate - email - phone - emailVerification - phoneVerification - prefs - } -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/create-phone-verification.md b/docs/examples/1.2.x/server-kotlin/java/account/create-phone-verification.md deleted file mode 100644 index 08e28ee63e..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/create-phone-verification.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.createPhoneVerification(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/create-recovery.md b/docs/examples/1.2.x/server-kotlin/java/account/create-recovery.md deleted file mode 100644 index 83fbe91a95..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/create-recovery.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.createRecovery( - email = "email@example.com", - url = "https://example.com" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/create-verification.md b/docs/examples/1.2.x/server-kotlin/java/account/create-verification.md deleted file mode 100644 index 2ca770e2e1..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/create-verification.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.createVerification( - url = "https://example.com" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/delete-session.md b/docs/examples/1.2.x/server-kotlin/java/account/delete-session.md deleted file mode 100644 index bb925a77e3..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/delete-session.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.deleteSession( - sessionId = "[SESSION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/delete-sessions.md b/docs/examples/1.2.x/server-kotlin/java/account/delete-sessions.md deleted file mode 100644 index 4cda782b99..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/delete-sessions.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.deleteSessions(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/get-prefs.md b/docs/examples/1.2.x/server-kotlin/java/account/get-prefs.md deleted file mode 100644 index 501e2d08c7..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/get-prefs.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.getPrefs(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/get-session.md b/docs/examples/1.2.x/server-kotlin/java/account/get-session.md deleted file mode 100644 index 6f3e9e1a82..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/get-session.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.getSession( - sessionId = "[SESSION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/get.md b/docs/examples/1.2.x/server-kotlin/java/account/get.md deleted file mode 100644 index 2429a5d5d9..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/get.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.get(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/list-logs.md b/docs/examples/1.2.x/server-kotlin/java/account/list-logs.md deleted file mode 100644 index a44e64a3c3..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/list-logs.md +++ /dev/null @@ -1,35 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.listLogs( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/list-sessions.md b/docs/examples/1.2.x/server-kotlin/java/account/list-sessions.md deleted file mode 100644 index 41b66ce275..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/list-sessions.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.listSessions(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-email.md b/docs/examples/1.2.x/server-kotlin/java/account/update-email.md deleted file mode 100644 index 187fa22e2d..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-email.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updateEmail( - email = "email@example.com", - password = "password" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-name.md b/docs/examples/1.2.x/server-kotlin/java/account/update-name.md deleted file mode 100644 index 6f15d10e41..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-name.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updateName( - name = "[NAME]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-password.md b/docs/examples/1.2.x/server-kotlin/java/account/update-password.md deleted file mode 100644 index 5058503b4c..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-password.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updatePassword( - password = "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-phone-verification.md b/docs/examples/1.2.x/server-kotlin/java/account/update-phone-verification.md deleted file mode 100644 index d4716c1173..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-phone-verification.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updatePhoneVerification( - userId = "[USER_ID]", - secret = "[SECRET]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-phone.md b/docs/examples/1.2.x/server-kotlin/java/account/update-phone.md deleted file mode 100644 index 441f60730c..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-phone.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updatePhone( - phone = "", - password = "password" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.2.x/server-kotlin/java/account/update-prefs.md deleted file mode 100644 index ca085e904c..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-prefs.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updatePrefs( - prefs = mapOf( "a" to "b" ) - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-recovery.md b/docs/examples/1.2.x/server-kotlin/java/account/update-recovery.md deleted file mode 100644 index d2b79d3dc5..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-recovery.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updateRecovery( - userId = "[USER_ID]", - secret = "[SECRET]", - password = "password", - passwordAgain = "password" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-session.md b/docs/examples/1.2.x/server-kotlin/java/account/update-session.md deleted file mode 100644 index 4e41fbb4e1..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-session.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updateSession( - sessionId = "[SESSION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-status.md b/docs/examples/1.2.x/server-kotlin/java/account/update-status.md deleted file mode 100644 index 6a8e86649f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-status.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updateStatus(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-verification.md b/docs/examples/1.2.x/server-kotlin/java/account/update-verification.md deleted file mode 100644 index 0c0eb6c962..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-verification.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Account account = new Account(client); - account.updateVerification( - userId = "[USER_ID]", - secret = "[SECRET]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-browser.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-browser.md deleted file mode 100644 index 3042e77002..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-browser.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Avatars avatars = new Avatars(client); - avatars.getBrowser( - code = "aa", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-credit-card.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-credit-card.md deleted file mode 100644 index 956f6b76f3..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-credit-card.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Avatars avatars = new Avatars(client); - avatars.getCreditCard( - code = "amex", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-favicon.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-favicon.md deleted file mode 100644 index 35b64fcc0b..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-favicon.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Avatars avatars = new Avatars(client); - avatars.getFavicon( - url = "https://example.com" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-flag.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-flag.md deleted file mode 100644 index ccc90df1e6..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-flag.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Avatars avatars = new Avatars(client); - avatars.getFlag( - code = "af", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-image.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-image.md deleted file mode 100644 index 357f6bf29c..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-image.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Avatars avatars = new Avatars(client); - avatars.getImage( - url = "https://example.com", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-initials.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-initials.md deleted file mode 100644 index c6ef8ce8e7..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-initials.md +++ /dev/null @@ -1,35 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Avatars avatars = new Avatars(client); - avatars.getInitials( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-q-r.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-q-r.md deleted file mode 100644 index 07031b38ce..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-q-r.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Avatars avatars = new Avatars(client); - avatars.getQR( - text = "[TEXT]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-boolean-attribute.md deleted file mode 100644 index 008e47a493..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-boolean-attribute.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.createBooleanAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-collection.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-collection.md deleted file mode 100644 index 64b2eca6d0..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-collection.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.createCollection( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - name = "[NAME]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-datetime-attribute.md deleted file mode 100644 index 29d4f1d2ab..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-datetime-attribute.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.createDatetimeAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-document.md deleted file mode 100644 index 58819ea4a8..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-document.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.createDocument( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]", - data = mapOf( "a" to "b" ), - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-email-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-email-attribute.md deleted file mode 100644 index 3c79d0bb84..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-email-attribute.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.createEmailAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-enum-attribute.md deleted file mode 100644 index 4c58948fbb..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-enum-attribute.md +++ /dev/null @@ -1,40 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.createEnumAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - elements = listOf(), - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-float-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-float-attribute.md deleted file mode 100644 index 0af11fc86b..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-float-attribute.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.createFloatAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-index.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-index.md deleted file mode 100644 index 4b78ce1ed2..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-index.md +++ /dev/null @@ -1,40 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.createIndex( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - type = "key", - attributes = listOf(), - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-integer-attribute.md deleted file mode 100644 index f6cb49c8dc..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-integer-attribute.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.createIntegerAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-ip-attribute.md deleted file mode 100644 index a2c0cd403b..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-ip-attribute.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.createIpAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-string-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-string-attribute.md deleted file mode 100644 index 8f782ad615..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-string-attribute.md +++ /dev/null @@ -1,40 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.createStringAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - size = 1, - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-url-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-url-attribute.md deleted file mode 100644 index 09366afc78..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-url-attribute.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.createUrlAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create.md b/docs/examples/1.2.x/server-kotlin/java/databases/create.md deleted file mode 100644 index e968a53517..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.create( - databaseId = "[DATABASE_ID]", - name = "[NAME]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/delete-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/delete-attribute.md deleted file mode 100644 index b8843ac7ce..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/delete-attribute.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.deleteAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/delete-collection.md b/docs/examples/1.2.x/server-kotlin/java/databases/delete-collection.md deleted file mode 100644 index e4c999a2af..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/delete-collection.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.deleteCollection( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/delete-document.md b/docs/examples/1.2.x/server-kotlin/java/databases/delete-document.md deleted file mode 100644 index 71ba4ca7ba..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/delete-document.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.deleteDocument( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/delete-index.md b/docs/examples/1.2.x/server-kotlin/java/databases/delete-index.md deleted file mode 100644 index 446db766a2..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/delete-index.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.deleteIndex( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/delete.md b/docs/examples/1.2.x/server-kotlin/java/databases/delete.md deleted file mode 100644 index 94c4c30b78..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/delete.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.delete( - databaseId = "[DATABASE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/get-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/get-attribute.md deleted file mode 100644 index 9be9a32889..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/get-attribute.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.getAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/get-collection.md b/docs/examples/1.2.x/server-kotlin/java/databases/get-collection.md deleted file mode 100644 index 76e0f796a3..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/get-collection.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.getCollection( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/get-document.md b/docs/examples/1.2.x/server-kotlin/java/databases/get-document.md deleted file mode 100644 index e5bab16f18..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/get-document.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.getDocument( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/get-index.md b/docs/examples/1.2.x/server-kotlin/java/databases/get-index.md deleted file mode 100644 index baea8e4011..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/get-index.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.getIndex( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/get.md b/docs/examples/1.2.x/server-kotlin/java/databases/get.md deleted file mode 100644 index 37a3d6d51f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/get.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.get( - databaseId = "[DATABASE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/list-attributes.md b/docs/examples/1.2.x/server-kotlin/java/databases/list-attributes.md deleted file mode 100644 index fbe5fde77a..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/list-attributes.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.listAttributes( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/list-collections.md b/docs/examples/1.2.x/server-kotlin/java/databases/list-collections.md deleted file mode 100644 index 63cfae49e2..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/list-collections.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.listCollections( - databaseId = "[DATABASE_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/list-documents.md b/docs/examples/1.2.x/server-kotlin/java/databases/list-documents.md deleted file mode 100644 index 03b237bba2..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/list-documents.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.listDocuments( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/list-indexes.md b/docs/examples/1.2.x/server-kotlin/java/databases/list-indexes.md deleted file mode 100644 index 419d118fd7..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/list-indexes.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.listIndexes( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/list.md b/docs/examples/1.2.x/server-kotlin/java/databases/list.md deleted file mode 100644 index cbd316eb0f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/list.md +++ /dev/null @@ -1,35 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.list( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/update-collection.md b/docs/examples/1.2.x/server-kotlin/java/databases/update-collection.md deleted file mode 100644 index d8d7e16dee..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/update-collection.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.updateCollection( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - name = "[NAME]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/update-document.md b/docs/examples/1.2.x/server-kotlin/java/databases/update-document.md deleted file mode 100644 index 93868d2896..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/update-document.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.updateDocument( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/update.md b/docs/examples/1.2.x/server-kotlin/java/databases/update.md deleted file mode 100644 index 43cfce388c..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/databases/update.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Databases databases = new Databases(client); - databases.update( - databaseId = "[DATABASE_ID]", - name = "[NAME]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/create-build.md b/docs/examples/1.2.x/server-kotlin/java/functions/create-build.md deleted file mode 100644 index 5b1853df0d..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/create-build.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.createBuild( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]", - buildId = "[BUILD_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/create-deployment.md b/docs/examples/1.2.x/server-kotlin/java/functions/create-deployment.md deleted file mode 100644 index bd8a4606cc..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/create-deployment.md +++ /dev/null @@ -1,40 +0,0 @@ -import io.appwrite.Client -import io.appwrite.models.InputFile -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.createDeployment( - functionId = "[FUNCTION_ID]", - entrypoint = "[ENTRYPOINT]", - code = InputFile.fromPath("file.png"), - activate = false - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.2.x/server-kotlin/java/functions/create-execution.md deleted file mode 100644 index eb13aed5c3..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/create-execution.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.createExecution( - functionId = "[FUNCTION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/create-variable.md b/docs/examples/1.2.x/server-kotlin/java/functions/create-variable.md deleted file mode 100644 index 08e572f2b1..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/create-variable.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.createVariable( - functionId = "[FUNCTION_ID]", - key = "[KEY]", - value = "[VALUE]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/create.md b/docs/examples/1.2.x/server-kotlin/java/functions/create.md deleted file mode 100644 index 9448fde2de..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/create.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.create( - functionId = "[FUNCTION_ID]", - name = "[NAME]", - execute = listOf("any"), - runtime = "node-14.5", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/delete-deployment.md b/docs/examples/1.2.x/server-kotlin/java/functions/delete-deployment.md deleted file mode 100644 index 58fbc7cfee..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/delete-deployment.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.deleteDeployment( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/delete-variable.md b/docs/examples/1.2.x/server-kotlin/java/functions/delete-variable.md deleted file mode 100644 index bcb93dd391..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/delete-variable.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.deleteVariable( - functionId = "[FUNCTION_ID]", - variableId = "[VARIABLE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/delete.md b/docs/examples/1.2.x/server-kotlin/java/functions/delete.md deleted file mode 100644 index a51709b874..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/delete.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.delete( - functionId = "[FUNCTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/get-deployment.md b/docs/examples/1.2.x/server-kotlin/java/functions/get-deployment.md deleted file mode 100644 index 276e711bba..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/get-deployment.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.getDeployment( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/get-execution.md b/docs/examples/1.2.x/server-kotlin/java/functions/get-execution.md deleted file mode 100644 index 4161b28eaf..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/get-execution.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.getExecution( - functionId = "[FUNCTION_ID]", - executionId = "[EXECUTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/get-variable.md b/docs/examples/1.2.x/server-kotlin/java/functions/get-variable.md deleted file mode 100644 index b6b77c23dc..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/get-variable.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.getVariable( - functionId = "[FUNCTION_ID]", - variableId = "[VARIABLE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/get.md b/docs/examples/1.2.x/server-kotlin/java/functions/get.md deleted file mode 100644 index 8e1cd5ef29..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/get.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.get( - functionId = "[FUNCTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/list-deployments.md b/docs/examples/1.2.x/server-kotlin/java/functions/list-deployments.md deleted file mode 100644 index 920684554c..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/list-deployments.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.listDeployments( - functionId = "[FUNCTION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/list-executions.md b/docs/examples/1.2.x/server-kotlin/java/functions/list-executions.md deleted file mode 100644 index 915bf64d4b..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/list-executions.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.listExecutions( - functionId = "[FUNCTION_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/list-runtimes.md b/docs/examples/1.2.x/server-kotlin/java/functions/list-runtimes.md deleted file mode 100644 index e70bd27f76..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/list-runtimes.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.listRuntimes(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/list-variables.md b/docs/examples/1.2.x/server-kotlin/java/functions/list-variables.md deleted file mode 100644 index abe6f93e3c..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/list-variables.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.listVariables( - functionId = "[FUNCTION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/list.md b/docs/examples/1.2.x/server-kotlin/java/functions/list.md deleted file mode 100644 index e365f30f1f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/list.md +++ /dev/null @@ -1,35 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.list( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/update-deployment.md b/docs/examples/1.2.x/server-kotlin/java/functions/update-deployment.md deleted file mode 100644 index e13f2e2471..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/update-deployment.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.updateDeployment( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/update-variable.md b/docs/examples/1.2.x/server-kotlin/java/functions/update-variable.md deleted file mode 100644 index adede4786f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/update-variable.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.updateVariable( - functionId = "[FUNCTION_ID]", - variableId = "[VARIABLE_ID]", - key = "[KEY]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/update.md b/docs/examples/1.2.x/server-kotlin/java/functions/update.md deleted file mode 100644 index a9b1f9f787..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/functions/update.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Functions functions = new Functions(client); - functions.update( - functionId = "[FUNCTION_ID]", - name = "[NAME]", - execute = listOf("any"), - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/graphql/get.md b/docs/examples/1.2.x/server-kotlin/java/graphql/get.md deleted file mode 100644 index c26d84aa53..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/graphql/get.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Graphql - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Graphql graphql = new Graphql(client); - graphql.get( - query = "[QUERY]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/graphql/post.md b/docs/examples/1.2.x/server-kotlin/java/graphql/post.md deleted file mode 100644 index 05dbee1e87..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/graphql/post.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Graphql - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Graphql graphql = new Graphql(client); - graphql.post( - query = mapOf( "a" to "b" ) - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-antivirus.md b/docs/examples/1.2.x/server-kotlin/java/health/get-antivirus.md deleted file mode 100644 index 3a40f730a2..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-antivirus.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getAntivirus(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-cache.md b/docs/examples/1.2.x/server-kotlin/java/health/get-cache.md deleted file mode 100644 index e7300a34f4..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-cache.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getCache(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-d-b.md b/docs/examples/1.2.x/server-kotlin/java/health/get-d-b.md deleted file mode 100644 index 9644806bd2..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-d-b.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getDB(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-certificates.md b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-certificates.md deleted file mode 100644 index 084576b65a..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-certificates.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getQueueCertificates(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-functions.md b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-functions.md deleted file mode 100644 index 9809a03d2f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-functions.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getQueueFunctions(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-logs.md b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-logs.md deleted file mode 100644 index 4a08fa9321..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-logs.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getQueueLogs(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-webhooks.md deleted file mode 100644 index d8bc27a2bf..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-webhooks.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getQueueWebhooks(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-storage-local.md b/docs/examples/1.2.x/server-kotlin/java/health/get-storage-local.md deleted file mode 100644 index 079eca49e1..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-storage-local.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getStorageLocal(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-time.md b/docs/examples/1.2.x/server-kotlin/java/health/get-time.md deleted file mode 100644 index a8ca3b91de..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-time.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.getTime(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get.md b/docs/examples/1.2.x/server-kotlin/java/health/get.md deleted file mode 100644 index 30adbbbf60..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/health/get.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Health health = new Health(client); - health.get(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/get.md b/docs/examples/1.2.x/server-kotlin/java/locale/get.md deleted file mode 100644 index bf2f34fb02..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/locale/get.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Locale locale = new Locale(client); - locale.get(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-continents.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-continents.md deleted file mode 100644 index 479d82fc5c..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-continents.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Locale locale = new Locale(client); - locale.listContinents(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-e-u.md deleted file mode 100644 index ac702cda1f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-e-u.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Locale locale = new Locale(client); - locale.listCountriesEU(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-phones.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-phones.md deleted file mode 100644 index a16ca213c7..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-phones.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Locale locale = new Locale(client); - locale.listCountriesPhones(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-countries.md deleted file mode 100644 index 85271a7a92..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Locale locale = new Locale(client); - locale.listCountries(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-currencies.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-currencies.md deleted file mode 100644 index 9afff9416a..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-currencies.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Locale locale = new Locale(client); - locale.listCurrencies(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-languages.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-languages.md deleted file mode 100644 index 71457d837a..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-languages.md +++ /dev/null @@ -1,33 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Locale locale = new Locale(client); - locale.listLanguages(new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - }); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/create-bucket.md b/docs/examples/1.2.x/server-kotlin/java/storage/create-bucket.md deleted file mode 100644 index 6d792e5f5b..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/storage/create-bucket.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.createBucket( - bucketId = "[BUCKET_ID]", - name = "[NAME]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/create-file.md b/docs/examples/1.2.x/server-kotlin/java/storage/create-file.md deleted file mode 100644 index 7924fb255f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/storage/create-file.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.models.InputFile -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.createFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - file = InputFile.fromPath("file.png"), - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/delete-bucket.md b/docs/examples/1.2.x/server-kotlin/java/storage/delete-bucket.md deleted file mode 100644 index 5d00b7bc6d..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/storage/delete-bucket.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.deleteBucket( - bucketId = "[BUCKET_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/delete-file.md b/docs/examples/1.2.x/server-kotlin/java/storage/delete-file.md deleted file mode 100644 index 3d41866c53..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/storage/delete-file.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.deleteFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/get-bucket.md b/docs/examples/1.2.x/server-kotlin/java/storage/get-bucket.md deleted file mode 100644 index c8b92bda98..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/storage/get-bucket.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.getBucket( - bucketId = "[BUCKET_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-download.md b/docs/examples/1.2.x/server-kotlin/java/storage/get-file-download.md deleted file mode 100644 index b116d5bb7b..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-download.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.getFileDownload( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-preview.md b/docs/examples/1.2.x/server-kotlin/java/storage/get-file-preview.md deleted file mode 100644 index 32284dc7e3..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-preview.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.getFilePreview( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-view.md b/docs/examples/1.2.x/server-kotlin/java/storage/get-file-view.md deleted file mode 100644 index 0332da5e89..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-view.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.getFileView( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/get-file.md b/docs/examples/1.2.x/server-kotlin/java/storage/get-file.md deleted file mode 100644 index 61e3d6c20c..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/storage/get-file.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.getFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/list-buckets.md b/docs/examples/1.2.x/server-kotlin/java/storage/list-buckets.md deleted file mode 100644 index ffce5eb986..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/storage/list-buckets.md +++ /dev/null @@ -1,35 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.listBuckets( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/list-files.md b/docs/examples/1.2.x/server-kotlin/java/storage/list-files.md deleted file mode 100644 index de33a00b46..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/storage/list-files.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.listFiles( - bucketId = "[BUCKET_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/update-bucket.md b/docs/examples/1.2.x/server-kotlin/java/storage/update-bucket.md deleted file mode 100644 index d2c6991287..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/storage/update-bucket.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.updateBucket( - bucketId = "[BUCKET_ID]", - name = "[NAME]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/update-file.md b/docs/examples/1.2.x/server-kotlin/java/storage/update-file.md deleted file mode 100644 index e1c2ed440c..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/storage/update-file.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Storage storage = new Storage(client); - storage.updateFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/create-membership.md b/docs/examples/1.2.x/server-kotlin/java/teams/create-membership.md deleted file mode 100644 index 077ce3f058..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/teams/create-membership.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.createMembership( - teamId = "[TEAM_ID]", - email = "email@example.com", - roles = listOf(), - url = "https://example.com", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/create.md b/docs/examples/1.2.x/server-kotlin/java/teams/create.md deleted file mode 100644 index 3cc1f9d19d..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/teams/create.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.create( - teamId = "[TEAM_ID]", - name = "[NAME]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/delete-membership.md b/docs/examples/1.2.x/server-kotlin/java/teams/delete-membership.md deleted file mode 100644 index 7a57a32d9a..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/teams/delete-membership.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.deleteMembership( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/delete.md b/docs/examples/1.2.x/server-kotlin/java/teams/delete.md deleted file mode 100644 index 7ace480161..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/teams/delete.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.delete( - teamId = "[TEAM_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/get-membership.md b/docs/examples/1.2.x/server-kotlin/java/teams/get-membership.md deleted file mode 100644 index 5d4890693d..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/teams/get-membership.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.getMembership( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/get.md b/docs/examples/1.2.x/server-kotlin/java/teams/get.md deleted file mode 100644 index 23f52dc5c5..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/teams/get.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.get( - teamId = "[TEAM_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/list-memberships.md b/docs/examples/1.2.x/server-kotlin/java/teams/list-memberships.md deleted file mode 100644 index 881b325d99..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/teams/list-memberships.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.listMemberships( - teamId = "[TEAM_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/list.md b/docs/examples/1.2.x/server-kotlin/java/teams/list.md deleted file mode 100644 index 2a7bf89f6e..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/teams/list.md +++ /dev/null @@ -1,35 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.list( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-roles.md b/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-roles.md deleted file mode 100644 index 7e8d68283d..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-roles.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.updateMembershipRoles( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]", - roles = listOf() - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-status.md b/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-status.md deleted file mode 100644 index 0a528d4d81..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-status.md +++ /dev/null @@ -1,39 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token - - Teams teams = new Teams(client); - teams.updateMembershipStatus( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]", - userId = "[USER_ID]", - secret = "[SECRET]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/update.md b/docs/examples/1.2.x/server-kotlin/java/teams/update.md deleted file mode 100644 index 5c05d6a65f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/teams/update.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Teams teams = new Teams(client); - teams.update( - teamId = "[TEAM_ID]", - name = "[NAME]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-argon2user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-argon2user.md deleted file mode 100644 index 04a93bb94b..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-argon2user.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.createArgon2User( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-bcrypt-user.md deleted file mode 100644 index 026b4593a2..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-bcrypt-user.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.createBcryptUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-m-d5user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-m-d5user.md deleted file mode 100644 index 06b0ee0a38..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-m-d5user.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.createMD5User( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-p-h-pass-user.md deleted file mode 100644 index 5dcc377297..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-p-h-pass-user.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.createPHPassUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-s-h-a-user.md deleted file mode 100644 index 2bb0c18c31..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-s-h-a-user.md +++ /dev/null @@ -1,38 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.createSHAUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-modified-user.md deleted file mode 100644 index 2c0c73f72f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-modified-user.md +++ /dev/null @@ -1,41 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.createScryptModifiedUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - passwordSalt = "[PASSWORD_SALT]", - passwordSaltSeparator = "[PASSWORD_SALT_SEPARATOR]", - passwordSignerKey = "[PASSWORD_SIGNER_KEY]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-user.md deleted file mode 100644 index 74143e9523..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-user.md +++ /dev/null @@ -1,43 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.createScryptUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - passwordSalt = "[PASSWORD_SALT]", - passwordCpu = 0, - passwordMemory = 0, - passwordParallel = 0, - passwordLength = 0, - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create.md b/docs/examples/1.2.x/server-kotlin/java/users/create.md deleted file mode 100644 index e52912555b..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/create.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.create( - userId = "[USER_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/delete-session.md b/docs/examples/1.2.x/server-kotlin/java/users/delete-session.md deleted file mode 100644 index 7295506bc2..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/delete-session.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.deleteSession( - userId = "[USER_ID]", - sessionId = "[SESSION_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/delete-sessions.md b/docs/examples/1.2.x/server-kotlin/java/users/delete-sessions.md deleted file mode 100644 index 6fb4028c37..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/delete-sessions.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.deleteSessions( - userId = "[USER_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/delete.md b/docs/examples/1.2.x/server-kotlin/java/users/delete.md deleted file mode 100644 index f004170a1e..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/delete.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.delete( - userId = "[USER_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/get-prefs.md b/docs/examples/1.2.x/server-kotlin/java/users/get-prefs.md deleted file mode 100644 index d45fbf4682..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/get-prefs.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.getPrefs( - userId = "[USER_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/get.md b/docs/examples/1.2.x/server-kotlin/java/users/get.md deleted file mode 100644 index 98b3df0680..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/get.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.get( - userId = "[USER_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/list-logs.md b/docs/examples/1.2.x/server-kotlin/java/users/list-logs.md deleted file mode 100644 index 38051cbacd..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/list-logs.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.listLogs( - userId = "[USER_ID]", - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/list-memberships.md b/docs/examples/1.2.x/server-kotlin/java/users/list-memberships.md deleted file mode 100644 index d2f21bc0bd..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/list-memberships.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.listMemberships( - userId = "[USER_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/list-sessions.md b/docs/examples/1.2.x/server-kotlin/java/users/list-sessions.md deleted file mode 100644 index 9adadf686f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/list-sessions.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.listSessions( - userId = "[USER_ID]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/list.md b/docs/examples/1.2.x/server-kotlin/java/users/list.md deleted file mode 100644 index f0c4710b65..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/list.md +++ /dev/null @@ -1,35 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.list( - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-email-verification.md b/docs/examples/1.2.x/server-kotlin/java/users/update-email-verification.md deleted file mode 100644 index b7278cad38..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-email-verification.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.updateEmailVerification( - userId = "[USER_ID]", - emailVerification = false - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-email.md b/docs/examples/1.2.x/server-kotlin/java/users/update-email.md deleted file mode 100644 index c023caa014..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-email.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.updateEmail( - userId = "[USER_ID]", - email = "email@example.com" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-name.md b/docs/examples/1.2.x/server-kotlin/java/users/update-name.md deleted file mode 100644 index cf760ae78a..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-name.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.updateName( - userId = "[USER_ID]", - name = "[NAME]" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-password.md b/docs/examples/1.2.x/server-kotlin/java/users/update-password.md deleted file mode 100644 index a8fc3f3c50..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-password.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.updatePassword( - userId = "[USER_ID]", - password = "password" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-phone-verification.md b/docs/examples/1.2.x/server-kotlin/java/users/update-phone-verification.md deleted file mode 100644 index 65b6341f1e..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-phone-verification.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.updatePhoneVerification( - userId = "[USER_ID]", - phoneVerification = false - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-phone.md b/docs/examples/1.2.x/server-kotlin/java/users/update-phone.md deleted file mode 100644 index cba848b6bb..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-phone.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.updatePhone( - userId = "[USER_ID]", - number = "" - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-prefs.md b/docs/examples/1.2.x/server-kotlin/java/users/update-prefs.md deleted file mode 100644 index 393366cf10..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-prefs.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.updatePrefs( - userId = "[USER_ID]", - prefs = mapOf( "a" to "b" ) - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-status.md b/docs/examples/1.2.x/server-kotlin/java/users/update-status.md deleted file mode 100644 index e847dcedc3..0000000000 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-status.md +++ /dev/null @@ -1,37 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -public void main() { - Client client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key - - Users users = new Users(client); - users.updateStatus( - userId = "[USER_ID]", - status = false - new Continuation() { - @NotNull - @Override - public CoroutineContext getContext() { - return EmptyCoroutineContext.INSTANCE; - } - - @Override - public void resumeWith(@NotNull Object o) { - String json = ""; - try { - if (o instanceof Result.Failure) { - Result.Failure failure = (Result.Failure) o; - throw failure.exception; - } else { - Response response = (Response) o; - } - } catch (Throwable th) { - Log.e("ERROR", th.toString()); - } - } - } - ); -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-phone-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/create-phone-verification.md deleted file mode 100644 index c097b00f88..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-phone-verification.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.createPhoneVerification() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-recovery.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/create-recovery.md deleted file mode 100644 index e43eaf8698..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-recovery.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.createRecovery( - email = "email@example.com", - url = "https://example.com" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/create-verification.md deleted file mode 100644 index 41f34631b6..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-verification.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.createVerification( - url = "https://example.com" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-session.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-session.md deleted file mode 100644 index 11b91b05eb..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-session.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.deleteSession( - sessionId = "[SESSION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-sessions.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-sessions.md deleted file mode 100644 index 5ff7c5ce75..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-sessions.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.deleteSessions() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/get-prefs.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/get-prefs.md deleted file mode 100644 index 8d836f1a83..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/get-prefs.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.getPrefs() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/get-session.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/get-session.md deleted file mode 100644 index 3a3ae1fbb3..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/get-session.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.getSession( - sessionId = "[SESSION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/get.md deleted file mode 100644 index 4195939136..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/get.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.get() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/list-logs.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/list-logs.md deleted file mode 100644 index 4fa66a9b72..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/list-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.listLogs( - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/list-sessions.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/list-sessions.md deleted file mode 100644 index ca8f4f67d4..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/list-sessions.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.listSessions() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-email.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-email.md deleted file mode 100644 index b58849393d..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-email.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updateEmail( - email = "email@example.com", - password = "password" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-name.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-name.md deleted file mode 100644 index c54140f26d..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-name.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updateName( - name = "[NAME]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-password.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-password.md deleted file mode 100644 index 3953718593..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-password.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updatePassword( - password = "password", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone-verification.md deleted file mode 100644 index 1d601ce54b..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone-verification.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updatePhoneVerification( - userId = "[USER_ID]", - secret = "[SECRET]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone.md deleted file mode 100644 index e208399c09..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updatePhone( - phone = "", - password = "password" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-prefs.md deleted file mode 100644 index 39696911d8..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-prefs.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updatePrefs( - prefs = mapOf( "a" to "b" ) - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-recovery.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-recovery.md deleted file mode 100644 index 8d2253a5fb..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-recovery.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updateRecovery( - userId = "[USER_ID]", - secret = "[SECRET]", - password = "password", - passwordAgain = "password" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-session.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-session.md deleted file mode 100644 index 003d80e688..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-session.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updateSession( - sessionId = "[SESSION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-status.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-status.md deleted file mode 100644 index c64ce0c26f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-status.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updateStatus() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-verification.md deleted file mode 100644 index f904f6d2ce..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-verification.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Account - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val account = Account(client) - val response = account.updateVerification( - userId = "[USER_ID]", - secret = "[SECRET]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-browser.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-browser.md deleted file mode 100644 index d021a952e4..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-browser.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val avatars = Avatars(client) - val result = avatars.getBrowser( - code = "aa", - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-credit-card.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-credit-card.md deleted file mode 100644 index 61592bc3d9..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-credit-card.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val avatars = Avatars(client) - val result = avatars.getCreditCard( - code = "amex", - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-favicon.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-favicon.md deleted file mode 100644 index 3714ac210a..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-favicon.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val avatars = Avatars(client) - val result = avatars.getFavicon( - url = "https://example.com" - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-flag.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-flag.md deleted file mode 100644 index 0efd3c9974..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-flag.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val avatars = Avatars(client) - val result = avatars.getFlag( - code = "af", - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-image.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-image.md deleted file mode 100644 index 0d3f855617..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-image.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val avatars = Avatars(client) - val result = avatars.getImage( - url = "https://example.com", - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-initials.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-initials.md deleted file mode 100644 index de5a30c5c1..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-initials.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val avatars = Avatars(client) - val result = avatars.getInitials( - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-q-r.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-q-r.md deleted file mode 100644 index 008922575d..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-q-r.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Avatars - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val avatars = Avatars(client) - val result = avatars.getQR( - text = "[TEXT]", - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-boolean-attribute.md deleted file mode 100644 index bfcd659979..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-boolean-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.createBooleanAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-collection.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-collection.md deleted file mode 100644 index 1e31833d1e..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-collection.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.createCollection( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - name = "[NAME]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-datetime-attribute.md deleted file mode 100644 index c9d45b461d..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-datetime-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.createDatetimeAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-document.md deleted file mode 100644 index 91519fd570..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-document.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.createDocument( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]", - data = mapOf( "a" to "b" ), - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-email-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-email-attribute.md deleted file mode 100644 index 5dbdd1c769..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-email-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.createEmailAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-enum-attribute.md deleted file mode 100644 index afb91ed73c..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-enum-attribute.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.createEnumAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - elements = listOf(), - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-float-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-float-attribute.md deleted file mode 100644 index e80aa4289a..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-float-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.createFloatAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-index.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-index.md deleted file mode 100644 index d3e99bfdcc..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-index.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.createIndex( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - type = "key", - attributes = listOf(), - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-integer-attribute.md deleted file mode 100644 index 81d6d108bf..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-integer-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.createIntegerAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-ip-attribute.md deleted file mode 100644 index fa5a3c5eaa..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-ip-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.createIpAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-string-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-string-attribute.md deleted file mode 100644 index 285afc1b31..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-string-attribute.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.createStringAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - size = 1, - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-url-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-url-attribute.md deleted file mode 100644 index 182f63d6ff..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-url-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.createUrlAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "", - required = false, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create.md deleted file mode 100644 index 7a93045eb6..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.create( - databaseId = "[DATABASE_ID]", - name = "[NAME]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-attribute.md deleted file mode 100644 index e83088bdef..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.deleteAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-collection.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-collection.md deleted file mode 100644 index 95e31e3256..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-collection.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.deleteCollection( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-document.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-document.md deleted file mode 100644 index d085c38dfc..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-document.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.deleteDocument( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-index.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-index.md deleted file mode 100644 index ccb718146f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-index.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.deleteIndex( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete.md deleted file mode 100644 index 96bb1acf68..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.delete( - databaseId = "[DATABASE_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-attribute.md deleted file mode 100644 index acedd9ef9a..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.getAttribute( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-collection.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-collection.md deleted file mode 100644 index 8165a3ae97..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-collection.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.getCollection( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-document.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-document.md deleted file mode 100644 index 671d7302cb..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-document.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.getDocument( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-index.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-index.md deleted file mode 100644 index 1f5079c800..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-index.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.getIndex( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - key = "" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get.md deleted file mode 100644 index f8ad2647ed..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.get( - databaseId = "[DATABASE_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-attributes.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-attributes.md deleted file mode 100644 index 65e43d8b76..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-attributes.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.listAttributes( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-collections.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-collections.md deleted file mode 100644 index c72512f97b..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-collections.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.listCollections( - databaseId = "[DATABASE_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-documents.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-documents.md deleted file mode 100644 index d28ee1bb0f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-documents.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.listDocuments( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-indexes.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-indexes.md deleted file mode 100644 index 0cd2fc8617..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-indexes.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.listIndexes( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list.md deleted file mode 100644 index b4ece0a1a3..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.list( - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-collection.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-collection.md deleted file mode 100644 index a28d88634b..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-collection.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.updateCollection( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - name = "[NAME]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-document.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-document.md deleted file mode 100644 index 8121fdd07c..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-document.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.updateDocument( - databaseId = "[DATABASE_ID]", - collectionId = "[COLLECTION_ID]", - documentId = "[DOCUMENT_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/update.md deleted file mode 100644 index 0e0adee643..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Databases - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val databases = Databases(client) - val response = databases.update( - databaseId = "[DATABASE_ID]", - name = "[NAME]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-build.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-build.md deleted file mode 100644 index b19c04528b..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-build.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.createBuild( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]", - buildId = "[BUILD_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-deployment.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-deployment.md deleted file mode 100644 index 9a2dc43359..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-deployment.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.models.InputFile -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.createDeployment( - functionId = "[FUNCTION_ID]", - entrypoint = "[ENTRYPOINT]", - code = InputFile.fromPath("file.png"), - activate = false - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-execution.md deleted file mode 100644 index eeda8daf3e..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-execution.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.createExecution( - functionId = "[FUNCTION_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-variable.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-variable.md deleted file mode 100644 index 416e1d09b7..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-variable.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.createVariable( - functionId = "[FUNCTION_ID]", - key = "[KEY]", - value = "[VALUE]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create.md deleted file mode 100644 index 280b3ec132..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.create( - functionId = "[FUNCTION_ID]", - name = "[NAME]", - execute = listOf("any"), - runtime = "node-14.5", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-deployment.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-deployment.md deleted file mode 100644 index cc90059f85..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-deployment.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.deleteDeployment( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-variable.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-variable.md deleted file mode 100644 index 8ca7af63e5..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-variable.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.deleteVariable( - functionId = "[FUNCTION_ID]", - variableId = "[VARIABLE_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete.md deleted file mode 100644 index 40a7e9682f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.delete( - functionId = "[FUNCTION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-deployment.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-deployment.md deleted file mode 100644 index fa6175271e..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-deployment.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.getDeployment( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-execution.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-execution.md deleted file mode 100644 index d23e20766e..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-execution.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.getExecution( - functionId = "[FUNCTION_ID]", - executionId = "[EXECUTION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-variable.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-variable.md deleted file mode 100644 index d277bbb735..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-variable.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.getVariable( - functionId = "[FUNCTION_ID]", - variableId = "[VARIABLE_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get.md deleted file mode 100644 index 76a45b6b26..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.get( - functionId = "[FUNCTION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-deployments.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-deployments.md deleted file mode 100644 index be30acacef..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-deployments.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.listDeployments( - functionId = "[FUNCTION_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-executions.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-executions.md deleted file mode 100644 index 2427a97644..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-executions.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.listExecutions( - functionId = "[FUNCTION_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-runtimes.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-runtimes.md deleted file mode 100644 index 7236d74475..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-runtimes.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.listRuntimes() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-variables.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-variables.md deleted file mode 100644 index a6adc00c6d..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-variables.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.listVariables( - functionId = "[FUNCTION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list.md deleted file mode 100644 index 1fb1f54a3c..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.list( - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-deployment.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-deployment.md deleted file mode 100644 index fd7a40b2ec..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-deployment.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.updateDeployment( - functionId = "[FUNCTION_ID]", - deploymentId = "[DEPLOYMENT_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-variable.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-variable.md deleted file mode 100644 index 1cc5563c87..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-variable.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.updateVariable( - functionId = "[FUNCTION_ID]", - variableId = "[VARIABLE_ID]", - key = "[KEY]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/update.md deleted file mode 100644 index ae5bee1236..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Functions - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val functions = Functions(client) - val response = functions.update( - functionId = "[FUNCTION_ID]", - name = "[NAME]", - execute = listOf("any"), - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/get.md deleted file mode 100644 index 9736a29952..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/get.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Graphql - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val graphql = Graphql(client) - val response = graphql.get( - query = "[QUERY]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/post.md b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/post.md deleted file mode 100644 index 33a603815e..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/post.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Graphql - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val graphql = Graphql(client) - val response = graphql.post( - query = mapOf( "a" to "b" ) - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-antivirus.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-antivirus.md deleted file mode 100644 index fe64ba8ee1..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-antivirus.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getAntivirus() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-cache.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-cache.md deleted file mode 100644 index 91dda5e06e..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-cache.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getCache() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-d-b.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-d-b.md deleted file mode 100644 index 0a15ff78b4..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-d-b.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getDB() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-certificates.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-certificates.md deleted file mode 100644 index 4e51cc625e..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-certificates.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getQueueCertificates() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-functions.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-functions.md deleted file mode 100644 index 2f49b8f013..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-functions.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getQueueFunctions() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-logs.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-logs.md deleted file mode 100644 index 0a15075dd7..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-logs.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getQueueLogs() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-webhooks.md deleted file mode 100644 index 368a4d3cc6..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-webhooks.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getQueueWebhooks() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-storage-local.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-storage-local.md deleted file mode 100644 index 809c4a92b9..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-storage-local.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getStorageLocal() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-time.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-time.md deleted file mode 100644 index 9e2b5a9f89..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-time.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.getTime() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get.md deleted file mode 100644 index 5904493e30..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Health - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val health = Health(client) - val response = health.get() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/get.md deleted file mode 100644 index d630031194..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/get.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val locale = Locale(client) - val response = locale.get() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-continents.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-continents.md deleted file mode 100644 index d3f748b1d5..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-continents.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val locale = Locale(client) - val response = locale.listContinents() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-e-u.md deleted file mode 100644 index 37b19bd551..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-e-u.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val locale = Locale(client) - val response = locale.listCountriesEU() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-phones.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-phones.md deleted file mode 100644 index a001f2a9b3..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-phones.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val locale = Locale(client) - val response = locale.listCountriesPhones() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries.md deleted file mode 100644 index 54efc257ab..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val locale = Locale(client) - val response = locale.listCountries() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-currencies.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-currencies.md deleted file mode 100644 index 0875fa8449..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-currencies.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val locale = Locale(client) - val response = locale.listCurrencies() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-languages.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-languages.md deleted file mode 100644 index a873770896..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-languages.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Locale - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val locale = Locale(client) - val response = locale.listLanguages() - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-bucket.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-bucket.md deleted file mode 100644 index 9082399007..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-bucket.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.createBucket( - bucketId = "[BUCKET_ID]", - name = "[NAME]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-file.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-file.md deleted file mode 100644 index 65046d0cc1..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-file.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.models.InputFile -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.createFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - file = InputFile.fromPath("file.png"), - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-bucket.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-bucket.md deleted file mode 100644 index 0700ffdb30..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-bucket.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.deleteBucket( - bucketId = "[BUCKET_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-file.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-file.md deleted file mode 100644 index 2749cc2135..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-file.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.deleteFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-bucket.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-bucket.md deleted file mode 100644 index 6e421e94af..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-bucket.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.getBucket( - bucketId = "[BUCKET_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-download.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-download.md deleted file mode 100644 index 5186982a7c..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-download.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val result = storage.getFileDownload( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-preview.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-preview.md deleted file mode 100644 index d99e28ca94..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-preview.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val result = storage.getFilePreview( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-view.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-view.md deleted file mode 100644 index 433364a9c2..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-view.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val result = storage.getFileView( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - ) - println(result); // Resource URL -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file.md deleted file mode 100644 index ea76d6f4ac..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.getFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-buckets.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-buckets.md deleted file mode 100644 index 36a0d83232..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-buckets.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.listBuckets( - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-files.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-files.md deleted file mode 100644 index d84bb4e8c6..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-files.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.listFiles( - bucketId = "[BUCKET_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-bucket.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-bucket.md deleted file mode 100644 index ac25ad0a7f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-bucket.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.updateBucket( - bucketId = "[BUCKET_ID]", - name = "[NAME]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-file.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-file.md deleted file mode 100644 index a628b54b25..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-file.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Storage - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val storage = Storage(client) - val response = storage.updateFile( - bucketId = "[BUCKET_ID]", - fileId = "[FILE_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/create-membership.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/create-membership.md deleted file mode 100644 index ebdd4f3034..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/create-membership.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.createMembership( - teamId = "[TEAM_ID]", - email = "email@example.com", - roles = listOf(), - url = "https://example.com", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/create.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/create.md deleted file mode 100644 index 4b5c5e00e8..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/create.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.create( - teamId = "[TEAM_ID]", - name = "[NAME]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete-membership.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete-membership.md deleted file mode 100644 index fd5cd7485e..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete-membership.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.deleteMembership( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete.md deleted file mode 100644 index 3806a5e7b8..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.delete( - teamId = "[TEAM_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/get-membership.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/get-membership.md deleted file mode 100644 index a0788b2489..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/get-membership.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.getMembership( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/get.md deleted file mode 100644 index c8802a7133..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/get.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.get( - teamId = "[TEAM_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/list-memberships.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/list-memberships.md deleted file mode 100644 index a31428d100..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/list-memberships.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.listMemberships( - teamId = "[TEAM_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/list.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/list.md deleted file mode 100644 index 7aff26e811..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/list.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.list( - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-roles.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-roles.md deleted file mode 100644 index f76601adc4..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-roles.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.updateMembershipRoles( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]", - roles = listOf() - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-status.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-status.md deleted file mode 100644 index 56b7dc71c3..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-status.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - - val teams = Teams(client) - val response = teams.updateMembershipStatus( - teamId = "[TEAM_ID]", - membershipId = "[MEMBERSHIP_ID]", - userId = "[USER_ID]", - secret = "[SECRET]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/update.md deleted file mode 100644 index a558a35216..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Teams - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val teams = Teams(client) - val response = teams.update( - teamId = "[TEAM_ID]", - name = "[NAME]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-argon2user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-argon2user.md deleted file mode 100644 index 13c9d289ce..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-argon2user.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.createArgon2User( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-bcrypt-user.md deleted file mode 100644 index 061a7a8bac..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-bcrypt-user.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.createBcryptUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-m-d5user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-m-d5user.md deleted file mode 100644 index e660302c03..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-m-d5user.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.createMD5User( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-p-h-pass-user.md deleted file mode 100644 index 3434533569..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-p-h-pass-user.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.createPHPassUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-s-h-a-user.md deleted file mode 100644 index f057c24860..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-s-h-a-user.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.createSHAUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md deleted file mode 100644 index 42bb6a6df4..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md +++ /dev/null @@ -1,20 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.createScryptModifiedUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - passwordSalt = "[PASSWORD_SALT]", - passwordSaltSeparator = "[PASSWORD_SALT_SEPARATOR]", - passwordSignerKey = "[PASSWORD_SIGNER_KEY]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-user.md deleted file mode 100644 index 28903db223..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-user.md +++ /dev/null @@ -1,22 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.createScryptUser( - userId = "[USER_ID]", - email = "email@example.com", - password = "password", - passwordSalt = "[PASSWORD_SALT]", - passwordCpu = 0, - passwordMemory = 0, - passwordParallel = 0, - passwordLength = 0, - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create.md deleted file mode 100644 index a799a14a87..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.create( - userId = "[USER_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-session.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-session.md deleted file mode 100644 index b02b7eda74..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-session.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.deleteSession( - userId = "[USER_ID]", - sessionId = "[SESSION_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-sessions.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-sessions.md deleted file mode 100644 index 969f5f34b2..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-sessions.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.deleteSessions( - userId = "[USER_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/delete.md deleted file mode 100644 index 7d545cd5fc..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.delete( - userId = "[USER_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/get-prefs.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/get-prefs.md deleted file mode 100644 index 681bc0053a..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/get-prefs.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.getPrefs( - userId = "[USER_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/get.md deleted file mode 100644 index 85cf8cd484..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/get.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.get( - userId = "[USER_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-logs.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/list-logs.md deleted file mode 100644 index d3b02a11f0..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-logs.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.listLogs( - userId = "[USER_ID]", - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-memberships.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/list-memberships.md deleted file mode 100644 index 04c9d2b307..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-memberships.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.listMemberships( - userId = "[USER_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-sessions.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/list-sessions.md deleted file mode 100644 index 604d18b11f..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-sessions.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.listSessions( - userId = "[USER_ID]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/list.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/list.md deleted file mode 100644 index 4c6f4a8f96..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/list.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.list( - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email-verification.md deleted file mode 100644 index f33c5a7a5e..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email-verification.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.updateEmailVerification( - userId = "[USER_ID]", - emailVerification = false - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email.md deleted file mode 100644 index eabab2f2af..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.updateEmail( - userId = "[USER_ID]", - email = "email@example.com" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-name.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-name.md deleted file mode 100644 index f4ce93b30b..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-name.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.updateName( - userId = "[USER_ID]", - name = "[NAME]" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-password.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-password.md deleted file mode 100644 index 6e6122e297..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-password.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.updatePassword( - userId = "[USER_ID]", - password = "password" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone-verification.md deleted file mode 100644 index b237adbcbd..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone-verification.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.updatePhoneVerification( - userId = "[USER_ID]", - phoneVerification = false - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone.md deleted file mode 100644 index 33f7972d95..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.updatePhone( - userId = "[USER_ID]", - number = "" - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-prefs.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-prefs.md deleted file mode 100644 index 27c669b141..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-prefs.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.updatePrefs( - userId = "[USER_ID]", - prefs = mapOf( "a" to "b" ) - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-status.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-status.md deleted file mode 100644 index 927e76bee3..0000000000 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-status.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.services.Users - -suspend fun main() { - val client = Client(context) - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - - val users = Users(client) - val response = users.updateStatus( - userId = "[USER_ID]", - status = false - ) - val json = response.body?.string() -} \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-nodejs/examples/account/create-phone-verification.md deleted file mode 100644 index 4ed86de6f4..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/create-phone-verification.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.createPhoneVerification(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/create-recovery.md b/docs/examples/1.2.x/server-nodejs/examples/account/create-recovery.md deleted file mode 100644 index 2c445584fb..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/create-recovery.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.createRecovery('email@example.com', 'https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/create-verification.md b/docs/examples/1.2.x/server-nodejs/examples/account/create-verification.md deleted file mode 100644 index 520af2ece8..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/create-verification.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.createVerification('https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/delete-session.md b/docs/examples/1.2.x/server-nodejs/examples/account/delete-session.md deleted file mode 100644 index fbfa985b5d..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/delete-session.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.deleteSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-nodejs/examples/account/delete-sessions.md deleted file mode 100644 index 2dce206215..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/delete-sessions.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.deleteSessions(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/get-prefs.md b/docs/examples/1.2.x/server-nodejs/examples/account/get-prefs.md deleted file mode 100644 index 2b11f4a399..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/get-prefs.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.getPrefs(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/get-session.md b/docs/examples/1.2.x/server-nodejs/examples/account/get-session.md deleted file mode 100644 index e83d97f198..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/get-session.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.getSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/get.md b/docs/examples/1.2.x/server-nodejs/examples/account/get.md deleted file mode 100644 index f1ebc9e921..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/get.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.get(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/list-logs.md b/docs/examples/1.2.x/server-nodejs/examples/account/list-logs.md deleted file mode 100644 index d60bfffb5e..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/list-logs.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.listLogs(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/list-sessions.md b/docs/examples/1.2.x/server-nodejs/examples/account/list-sessions.md deleted file mode 100644 index 3eea51ec99..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/list-sessions.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.listSessions(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-email.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-email.md deleted file mode 100644 index b550142d13..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-email.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.updateEmail('email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-name.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-name.md deleted file mode 100644 index 196a9b272e..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-name.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.updateName('[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-password.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-password.md deleted file mode 100644 index bc7fb758d1..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-password.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.updatePassword('password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-phone-verification.md deleted file mode 100644 index 4bedf42b8d..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-phone-verification.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.updatePhoneVerification('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-phone.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-phone.md deleted file mode 100644 index 81b64290cd..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-phone.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.updatePhone('', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-prefs.md deleted file mode 100644 index f8a2bcb797..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-prefs.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.updatePrefs({}); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-recovery.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-recovery.md deleted file mode 100644 index 1e1fb8d708..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-recovery.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-session.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-session.md deleted file mode 100644 index d9e1853884..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-session.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.updateSession('[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-status.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-status.md deleted file mode 100644 index adde842881..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-status.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.updateStatus(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-verification.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-verification.md deleted file mode 100644 index c5b7356414..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-verification.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const account = new sdk.Account(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = account.updateVerification('[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-browser.md deleted file mode 100644 index 350d154894..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-browser.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = avatars.getBrowser('aa'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-credit-card.md deleted file mode 100644 index 3f685ff39c..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = avatars.getCreditCard('amex'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-favicon.md deleted file mode 100644 index 89a496aaa4..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-favicon.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = avatars.getFavicon('https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-flag.md deleted file mode 100644 index 53fde28188..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-flag.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = avatars.getFlag('af'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-image.md deleted file mode 100644 index 2b07d62411..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-image.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = avatars.getImage('https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-initials.md deleted file mode 100644 index fc00f8fbbc..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-initials.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = avatars.getInitials(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-q-r.md deleted file mode 100644 index 63cac53562..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-q-r.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const avatars = new sdk.Avatars(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = avatars.getQR('[TEXT]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-boolean-attribute.md deleted file mode 100644 index 616b3fc51a..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-boolean-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.createBooleanAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-collection.md deleted file mode 100644 index 098f05026e..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-collection.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.createCollection('[DATABASE_ID]', '[COLLECTION_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-datetime-attribute.md deleted file mode 100644 index c16bf0a4f4..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-datetime-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.createDatetimeAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-document.md deleted file mode 100644 index cdc7442f14..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-document.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.createDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]', {}); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-email-attribute.md deleted file mode 100644 index 890b425b4e..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-email-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.createEmailAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-enum-attribute.md deleted file mode 100644 index 75e4954528..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-enum-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.createEnumAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', [], false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-float-attribute.md deleted file mode 100644 index 1a2602526b..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-float-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.createFloatAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-index.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-index.md deleted file mode 100644 index 07ff87f439..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-index.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.createIndex('[DATABASE_ID]', '[COLLECTION_ID]', '', 'key', []); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-integer-attribute.md deleted file mode 100644 index 52acd48750..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-integer-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.createIntegerAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-ip-attribute.md deleted file mode 100644 index 8cb193a1a7..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-ip-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.createIpAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-string-attribute.md deleted file mode 100644 index e12b71d755..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-string-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.createStringAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', 1, false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-url-attribute.md deleted file mode 100644 index 6738cd74b4..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-url-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.createUrlAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create.md deleted file mode 100644 index b6fb6c6762..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.create('[DATABASE_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-attribute.md deleted file mode 100644 index 312135edc2..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.deleteAttribute('[DATABASE_ID]', '[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-collection.md deleted file mode 100644 index 8b1ee5f78c..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-collection.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.deleteCollection('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-document.md b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-document.md deleted file mode 100644 index 92291669a7..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-document.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.deleteDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-index.md b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-index.md deleted file mode 100644 index ffa04b4212..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-index.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.deleteIndex('[DATABASE_ID]', '[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/delete.md b/docs/examples/1.2.x/server-nodejs/examples/databases/delete.md deleted file mode 100644 index f2534e5e77..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/delete.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.delete('[DATABASE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/get-attribute.md deleted file mode 100644 index d1675824bc..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/get-attribute.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.getAttribute('[DATABASE_ID]', '[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/get-collection.md b/docs/examples/1.2.x/server-nodejs/examples/databases/get-collection.md deleted file mode 100644 index fdaa714aaa..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/get-collection.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.getCollection('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/get-document.md b/docs/examples/1.2.x/server-nodejs/examples/databases/get-document.md deleted file mode 100644 index abb57a43e5..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/get-document.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.getDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/get-index.md b/docs/examples/1.2.x/server-nodejs/examples/databases/get-index.md deleted file mode 100644 index 469f75ea31..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/get-index.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.getIndex('[DATABASE_ID]', '[COLLECTION_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/get.md b/docs/examples/1.2.x/server-nodejs/examples/databases/get.md deleted file mode 100644 index dc11458040..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/get.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.get('[DATABASE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-nodejs/examples/databases/list-attributes.md deleted file mode 100644 index b3e09868b6..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/list-attributes.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.listAttributes('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/list-collections.md b/docs/examples/1.2.x/server-nodejs/examples/databases/list-collections.md deleted file mode 100644 index 37b594fcd1..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/list-collections.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.listCollections('[DATABASE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/list-documents.md b/docs/examples/1.2.x/server-nodejs/examples/databases/list-documents.md deleted file mode 100644 index 89aa4f73af..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/list-documents.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.listDocuments('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-nodejs/examples/databases/list-indexes.md deleted file mode 100644 index 36954b294e..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/list-indexes.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.listIndexes('[DATABASE_ID]', '[COLLECTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/list.md b/docs/examples/1.2.x/server-nodejs/examples/databases/list.md deleted file mode 100644 index 8e3857e7d5..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/list.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.list(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.2.x/server-nodejs/examples/databases/update-collection.md deleted file mode 100644 index 1205a26cb7..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/update-collection.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.updateCollection('[DATABASE_ID]', '[COLLECTION_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.2.x/server-nodejs/examples/databases/update-document.md deleted file mode 100644 index edd4ea691e..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/update-document.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/update.md b/docs/examples/1.2.x/server-nodejs/examples/databases/update.md deleted file mode 100644 index f829bc8aaa..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/update.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const databases = new sdk.Databases(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = databases.update('[DATABASE_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/create-build.md b/docs/examples/1.2.x/server-nodejs/examples/functions/create-build.md deleted file mode 100644 index 5b39dadc8c..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/create-build.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.createBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-nodejs/examples/functions/create-deployment.md deleted file mode 100644 index c48153b3af..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/create-deployment.md +++ /dev/null @@ -1,21 +0,0 @@ -const sdk = require('node-appwrite'); -const fs = require('fs'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', InputFile.fromPath('/path/to/file.png', 'file.png'), false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.2.x/server-nodejs/examples/functions/create-execution.md deleted file mode 100644 index 35114aa170..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/create-execution.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.createExecution('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/create-variable.md b/docs/examples/1.2.x/server-nodejs/examples/functions/create-variable.md deleted file mode 100644 index 3d233b8ca4..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/create-variable.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.createVariable('[FUNCTION_ID]', '[KEY]', '[VALUE]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/create.md b/docs/examples/1.2.x/server-nodejs/examples/functions/create.md deleted file mode 100644 index c4ab049792..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/create.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.create('[FUNCTION_ID]', '[NAME]', ["any"], 'node-14.5'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-nodejs/examples/functions/delete-deployment.md deleted file mode 100644 index 536e5c530b..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/delete-deployment.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.deleteDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-nodejs/examples/functions/delete-variable.md deleted file mode 100644 index 0190ee87a0..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/delete-variable.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.deleteVariable('[FUNCTION_ID]', '[VARIABLE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/delete.md b/docs/examples/1.2.x/server-nodejs/examples/functions/delete.md deleted file mode 100644 index 1362dd5ac7..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/delete.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.delete('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-nodejs/examples/functions/get-deployment.md deleted file mode 100644 index c4256a6b64..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/get-deployment.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.getDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/get-execution.md b/docs/examples/1.2.x/server-nodejs/examples/functions/get-execution.md deleted file mode 100644 index f3370ecc5d..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/get-execution.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.getExecution('[FUNCTION_ID]', '[EXECUTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/get-variable.md b/docs/examples/1.2.x/server-nodejs/examples/functions/get-variable.md deleted file mode 100644 index f3cfbff297..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/get-variable.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.getVariable('[FUNCTION_ID]', '[VARIABLE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/get.md b/docs/examples/1.2.x/server-nodejs/examples/functions/get.md deleted file mode 100644 index 5b35a3ddb1..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/get.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.get('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-nodejs/examples/functions/list-deployments.md deleted file mode 100644 index 354c157f13..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/list-deployments.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.listDeployments('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/1.2.x/server-nodejs/examples/functions/list-executions.md deleted file mode 100644 index 21ee1f65df..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/list-executions.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.listExecutions('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-nodejs/examples/functions/list-runtimes.md deleted file mode 100644 index bab36ebff3..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/list-runtimes.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.listRuntimes(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/list-variables.md b/docs/examples/1.2.x/server-nodejs/examples/functions/list-variables.md deleted file mode 100644 index 4120d9610e..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/list-variables.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.listVariables('[FUNCTION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/list.md b/docs/examples/1.2.x/server-nodejs/examples/functions/list.md deleted file mode 100644 index 98343cbf07..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/list.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.list(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-nodejs/examples/functions/update-deployment.md deleted file mode 100644 index f6f2dc293a..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/update-deployment.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.updateDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/update-variable.md b/docs/examples/1.2.x/server-nodejs/examples/functions/update-variable.md deleted file mode 100644 index e4262de541..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/update-variable.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.updateVariable('[FUNCTION_ID]', '[VARIABLE_ID]', '[KEY]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/update.md b/docs/examples/1.2.x/server-nodejs/examples/functions/update.md deleted file mode 100644 index c37837b2ab..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/update.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const functions = new sdk.Functions(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = functions.update('[FUNCTION_ID]', '[NAME]', ["any"]); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/graphql/get.md b/docs/examples/1.2.x/server-nodejs/examples/graphql/get.md deleted file mode 100644 index 4eb310cac1..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/graphql/get.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const graphql = new sdk.Graphql(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = graphql.get('[QUERY]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/graphql/post.md b/docs/examples/1.2.x/server-nodejs/examples/graphql/post.md deleted file mode 100644 index cc6ffc8f7f..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/graphql/post.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const graphql = new sdk.Graphql(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = graphql.post({}); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-antivirus.md deleted file mode 100644 index 66886e3454..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-antivirus.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = health.getAntivirus(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-cache.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-cache.md deleted file mode 100644 index af57c75309..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-cache.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = health.getCache(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-d-b.md deleted file mode 100644 index d871648ab5..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-d-b.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = health.getDB(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-certificates.md deleted file mode 100644 index ef0ecefe69..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = health.getQueueCertificates(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-functions.md deleted file mode 100644 index 6ba0265f26..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-functions.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = health.getQueueFunctions(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-logs.md deleted file mode 100644 index 82f48a7adb..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-logs.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = health.getQueueLogs(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-webhooks.md deleted file mode 100644 index e46403c751..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = health.getQueueWebhooks(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-storage-local.md deleted file mode 100644 index 9d65f712e1..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-storage-local.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = health.getStorageLocal(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-time.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-time.md deleted file mode 100644 index 143885f0fa..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-time.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = health.getTime(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get.md b/docs/examples/1.2.x/server-nodejs/examples/health/get.md deleted file mode 100644 index fc6d1b9f5d..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const health = new sdk.Health(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = health.get(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/get.md b/docs/examples/1.2.x/server-nodejs/examples/locale/get.md deleted file mode 100644 index 79ceda7e5b..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/get.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = locale.get(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-continents.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-continents.md deleted file mode 100644 index c08af39f65..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-continents.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = locale.listContinents(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-e-u.md deleted file mode 100644 index 8b42e2054e..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-e-u.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = locale.listCountriesEU(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-phones.md deleted file mode 100644 index a190457e54..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-phones.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = locale.listCountriesPhones(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries.md deleted file mode 100644 index 4a311817e8..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = locale.listCountries(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-currencies.md deleted file mode 100644 index 703068faae..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-currencies.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = locale.listCurrencies(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-languages.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-languages.md deleted file mode 100644 index ca12a6da81..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-languages.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const locale = new sdk.Locale(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = locale.listLanguages(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-nodejs/examples/storage/create-bucket.md deleted file mode 100644 index 4f355b3c51..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/create-bucket.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = storage.createBucket('[BUCKET_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/create-file.md b/docs/examples/1.2.x/server-nodejs/examples/storage/create-file.md deleted file mode 100644 index 4e3138eb65..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/create-file.md +++ /dev/null @@ -1,21 +0,0 @@ -const sdk = require('node-appwrite'); -const fs = require('fs'); - -// Init SDK -const client = new sdk.Client(); - -const storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', InputFile.fromPath('/path/to/file.png', 'file.png')); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-nodejs/examples/storage/delete-bucket.md deleted file mode 100644 index f755d7471a..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/delete-bucket.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = storage.deleteBucket('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/delete-file.md b/docs/examples/1.2.x/server-nodejs/examples/storage/delete-file.md deleted file mode 100644 index 4e39b047b7..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/delete-file.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = storage.deleteFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-nodejs/examples/storage/get-bucket.md deleted file mode 100644 index 4a00412e66..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/get-bucket.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = storage.getBucket('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-download.md deleted file mode 100644 index b14988c3a9..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-download.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = storage.getFileDownload('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-preview.md deleted file mode 100644 index f3c46dc7ab..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-preview.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = storage.getFilePreview('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-view.md deleted file mode 100644 index fdaa77eba0..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-view.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = storage.getFileView('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file.md b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file.md deleted file mode 100644 index 181bfcfcdf..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = storage.getFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-nodejs/examples/storage/list-buckets.md deleted file mode 100644 index f8aae65a87..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/list-buckets.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = storage.listBuckets(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/list-files.md b/docs/examples/1.2.x/server-nodejs/examples/storage/list-files.md deleted file mode 100644 index 2cab3df3ae..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/list-files.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = storage.listFiles('[BUCKET_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-nodejs/examples/storage/update-bucket.md deleted file mode 100644 index 35f1358982..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/update-bucket.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = storage.updateBucket('[BUCKET_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/update-file.md b/docs/examples/1.2.x/server-nodejs/examples/storage/update-file.md deleted file mode 100644 index 2bca7e90a0..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/update-file.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const storage = new sdk.Storage(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = storage.updateFile('[BUCKET_ID]', '[FILE_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/1.2.x/server-nodejs/examples/teams/create-membership.md deleted file mode 100644 index e36ff45235..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/create-membership.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = teams.createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/create.md b/docs/examples/1.2.x/server-nodejs/examples/teams/create.md deleted file mode 100644 index 9d53f883d4..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/create.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = teams.create('[TEAM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-nodejs/examples/teams/delete-membership.md deleted file mode 100644 index 4a5576dc60..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/delete-membership.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = teams.deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/delete.md b/docs/examples/1.2.x/server-nodejs/examples/teams/delete.md deleted file mode 100644 index 3af8ad3fdc..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/delete.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = teams.delete('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/get-membership.md b/docs/examples/1.2.x/server-nodejs/examples/teams/get-membership.md deleted file mode 100644 index 895bcdd3a0..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/get-membership.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = teams.getMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/get.md b/docs/examples/1.2.x/server-nodejs/examples/teams/get.md deleted file mode 100644 index ef25505520..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/get.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = teams.get('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-nodejs/examples/teams/list-memberships.md deleted file mode 100644 index f47865f4ed..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/list-memberships.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = teams.listMemberships('[TEAM_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/list.md b/docs/examples/1.2.x/server-nodejs/examples/teams/list.md deleted file mode 100644 index 209b6a1605..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/list.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = teams.list(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-roles.md deleted file mode 100644 index 44deb3bbe0..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = teams.updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-status.md deleted file mode 100644 index 0020e6f555..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-status.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -const promise = teams.updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/update.md b/docs/examples/1.2.x/server-nodejs/examples/teams/update.md deleted file mode 100644 index fea84c5c0b..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/update.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const teams = new sdk.Teams(client); - -client - .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -const promise = teams.update('[TEAM_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-argon2user.md deleted file mode 100644 index 00eb91d46e..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-argon2user.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.createArgon2User('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-bcrypt-user.md deleted file mode 100644 index 42b310840a..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.createBcryptUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-m-d5user.md deleted file mode 100644 index b7a7c0ccc8..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-m-d5user.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.createMD5User('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-p-h-pass-user.md deleted file mode 100644 index 477a88e43f..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.createPHPassUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-s-h-a-user.md deleted file mode 100644 index 482aa0bfdd..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.createSHAUser('[USER_ID]', 'email@example.com', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-modified-user.md deleted file mode 100644 index c267797652..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-modified-user.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.createScryptModifiedUser('[USER_ID]', 'email@example.com', 'password', '[PASSWORD_SALT]', '[PASSWORD_SALT_SEPARATOR]', '[PASSWORD_SIGNER_KEY]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-user.md deleted file mode 100644 index bd067e614c..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-user.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.createScryptUser('[USER_ID]', 'email@example.com', 'password', '[PASSWORD_SALT]', null, null, null, null); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create.md b/docs/examples/1.2.x/server-nodejs/examples/users/create.md deleted file mode 100644 index 6455ff45f5..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.create('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/delete-session.md b/docs/examples/1.2.x/server-nodejs/examples/users/delete-session.md deleted file mode 100644 index ed161dcc89..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/delete-session.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.deleteSession('[USER_ID]', '[SESSION_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-nodejs/examples/users/delete-sessions.md deleted file mode 100644 index 9b6abfcb02..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/delete-sessions.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.deleteSessions('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/delete.md b/docs/examples/1.2.x/server-nodejs/examples/users/delete.md deleted file mode 100644 index 65ed7187b6..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/delete.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.delete('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/get-prefs.md b/docs/examples/1.2.x/server-nodejs/examples/users/get-prefs.md deleted file mode 100644 index bac42c8da7..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/get-prefs.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.getPrefs('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/get.md b/docs/examples/1.2.x/server-nodejs/examples/users/get.md deleted file mode 100644 index fa1579ec44..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/get.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.get('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/list-logs.md b/docs/examples/1.2.x/server-nodejs/examples/users/list-logs.md deleted file mode 100644 index c05d2ae494..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/list-logs.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.listLogs('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/list-memberships.md b/docs/examples/1.2.x/server-nodejs/examples/users/list-memberships.md deleted file mode 100644 index 4136e17694..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/list-memberships.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.listMemberships('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/list-sessions.md b/docs/examples/1.2.x/server-nodejs/examples/users/list-sessions.md deleted file mode 100644 index f3d11fa079..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/list-sessions.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.listSessions('[USER_ID]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/list.md b/docs/examples/1.2.x/server-nodejs/examples/users/list.md deleted file mode 100644 index bddb2e7fa3..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/list.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.list(); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-email-verification.md deleted file mode 100644 index c80a7816b9..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-email-verification.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.updateEmailVerification('[USER_ID]', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-email.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-email.md deleted file mode 100644 index 627de271b6..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-email.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.updateEmail('[USER_ID]', 'email@example.com'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-name.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-name.md deleted file mode 100644 index cd515cb522..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-name.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.updateName('[USER_ID]', '[NAME]'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-password.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-password.md deleted file mode 100644 index 6348c7d8e7..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-password.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.updatePassword('[USER_ID]', 'password'); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-phone-verification.md deleted file mode 100644 index 7c88651ce6..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-phone-verification.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.updatePhoneVerification('[USER_ID]', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-phone.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-phone.md deleted file mode 100644 index acb7bbb2d6..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-phone.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.updatePhone('[USER_ID]', ''); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-prefs.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-prefs.md deleted file mode 100644 index f9e16da0b7..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-prefs.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.updatePrefs('[USER_ID]', {}); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-status.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-status.md deleted file mode 100644 index 08c79ef63f..0000000000 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-status.md +++ /dev/null @@ -1,20 +0,0 @@ -const sdk = require('node-appwrite'); - -// Init SDK -const client = new sdk.Client(); - -const 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 -; - -const promise = users.updateStatus('[USER_ID]', false); - -promise.then(function (response) { - console.log(response); -}, function (error) { - console.log(error); -}); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-php/examples/account/create-phone-verification.md deleted file mode 100644 index fa56233cb3..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/create-phone-verification.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->createPhoneVerification(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/create-recovery.md b/docs/examples/1.2.x/server-php/examples/account/create-recovery.md deleted file mode 100644 index 65823e5104..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/create-recovery.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->createRecovery('email@example.com', 'https://example.com'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/create-verification.md b/docs/examples/1.2.x/server-php/examples/account/create-verification.md deleted file mode 100644 index b22d6199a7..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/create-verification.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->createVerification('https://example.com'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/delete-session.md b/docs/examples/1.2.x/server-php/examples/account/delete-session.md deleted file mode 100644 index ac04559ca5..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/delete-session.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->deleteSession('[SESSION_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-php/examples/account/delete-sessions.md deleted file mode 100644 index 3aa67f79ce..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/delete-sessions.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->deleteSessions(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/get-prefs.md b/docs/examples/1.2.x/server-php/examples/account/get-prefs.md deleted file mode 100644 index efa296194f..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/get-prefs.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->getPrefs(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/get-session.md b/docs/examples/1.2.x/server-php/examples/account/get-session.md deleted file mode 100644 index 549f9bed7f..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/get-session.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->getSession('[SESSION_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/get.md b/docs/examples/1.2.x/server-php/examples/account/get.md deleted file mode 100644 index 3fa0ef275e..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/get.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->get(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/list-logs.md b/docs/examples/1.2.x/server-php/examples/account/list-logs.md deleted file mode 100644 index f0a7b49583..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/list-logs.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->listLogs(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/list-sessions.md b/docs/examples/1.2.x/server-php/examples/account/list-sessions.md deleted file mode 100644 index b0cc6841ac..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/list-sessions.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->listSessions(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/update-email.md b/docs/examples/1.2.x/server-php/examples/account/update-email.md deleted file mode 100644 index 72714991d7..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/update-email.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updateEmail('email@example.com', 'password'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/update-name.md b/docs/examples/1.2.x/server-php/examples/account/update-name.md deleted file mode 100644 index c7bb1b14ea..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/update-name.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updateName('[NAME]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/update-password.md b/docs/examples/1.2.x/server-php/examples/account/update-password.md deleted file mode 100644 index e82279859a..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/update-password.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updatePassword('password'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-php/examples/account/update-phone-verification.md deleted file mode 100644 index 9a9ab21d50..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/update-phone-verification.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updatePhoneVerification('[USER_ID]', '[SECRET]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/update-phone.md b/docs/examples/1.2.x/server-php/examples/account/update-phone.md deleted file mode 100644 index a1a2fabbe9..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/update-phone.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updatePhone('', 'password'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/update-prefs.md b/docs/examples/1.2.x/server-php/examples/account/update-prefs.md deleted file mode 100644 index e1395d9d67..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/update-prefs.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updatePrefs([]); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/update-recovery.md b/docs/examples/1.2.x/server-php/examples/account/update-recovery.md deleted file mode 100644 index 5379d76d6d..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/update-recovery.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/update-session.md b/docs/examples/1.2.x/server-php/examples/account/update-session.md deleted file mode 100644 index 222976c74f..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/update-session.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updateSession('[SESSION_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/update-status.md b/docs/examples/1.2.x/server-php/examples/account/update-status.md deleted file mode 100644 index f19d218ec8..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/update-status.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updateStatus(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/account/update-verification.md b/docs/examples/1.2.x/server-php/examples/account/update-verification.md deleted file mode 100644 index ef21c1ec4d..0000000000 --- a/docs/examples/1.2.x/server-php/examples/account/update-verification.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$account = new Account($client); - -$result = $account->updateVerification('[USER_ID]', '[SECRET]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-php/examples/avatars/get-browser.md deleted file mode 100644 index 795d79157e..0000000000 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-browser.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$avatars = new Avatars($client); - -$result = $avatars->getBrowser('aa'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-php/examples/avatars/get-credit-card.md deleted file mode 100644 index 33879d0179..0000000000 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$avatars = new Avatars($client); - -$result = $avatars->getCreditCard('amex'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-php/examples/avatars/get-favicon.md deleted file mode 100644 index dee19dbf04..0000000000 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-favicon.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$avatars = new Avatars($client); - -$result = $avatars->getFavicon('https://example.com'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-php/examples/avatars/get-flag.md deleted file mode 100644 index d70d7e43ec..0000000000 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-flag.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$avatars = new Avatars($client); - -$result = $avatars->getFlag('af'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-image.md b/docs/examples/1.2.x/server-php/examples/avatars/get-image.md deleted file mode 100644 index a46b9fbe37..0000000000 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-image.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$avatars = new Avatars($client); - -$result = $avatars->getImage('https://example.com'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-php/examples/avatars/get-initials.md deleted file mode 100644 index f5e549ace6..0000000000 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-initials.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$avatars = new Avatars($client); - -$result = $avatars->getInitials(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-php/examples/avatars/get-q-r.md deleted file mode 100644 index 95b5a6d7b3..0000000000 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-q-r.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$avatars = new Avatars($client); - -$result = $avatars->getQR('[TEXT]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-boolean-attribute.md deleted file mode 100644 index 274f66fe14..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/create-boolean-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->createBooleanAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-collection.md b/docs/examples/1.2.x/server-php/examples/databases/create-collection.md deleted file mode 100644 index a7d98c0220..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/create-collection.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->createCollection('[DATABASE_ID]', '[COLLECTION_ID]', '[NAME]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-datetime-attribute.md deleted file mode 100644 index 420675eaa2..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/create-datetime-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->createDatetimeAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-document.md b/docs/examples/1.2.x/server-php/examples/databases/create-document.md deleted file mode 100644 index 8fbf102e81..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/create-document.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->createDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]', []); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-email-attribute.md deleted file mode 100644 index ff7f1acbea..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/create-email-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->createEmailAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-enum-attribute.md deleted file mode 100644 index 44a0fae695..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/create-enum-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->createEnumAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', [], false); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-float-attribute.md deleted file mode 100644 index 5ee3647d61..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/create-float-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->createFloatAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-index.md b/docs/examples/1.2.x/server-php/examples/databases/create-index.md deleted file mode 100644 index 9a2c1b7d4f..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/create-index.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->createIndex('[DATABASE_ID]', '[COLLECTION_ID]', '', 'key', []); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-integer-attribute.md deleted file mode 100644 index 97469227bf..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/create-integer-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->createIntegerAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-ip-attribute.md deleted file mode 100644 index f2318a47b1..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/create-ip-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->createIpAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-string-attribute.md deleted file mode 100644 index 975e633eda..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/create-string-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->createStringAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', 1, false); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-url-attribute.md deleted file mode 100644 index 79bce0c8de..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/create-url-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->createUrlAttribute('[DATABASE_ID]', '[COLLECTION_ID]', '', false); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/create.md b/docs/examples/1.2.x/server-php/examples/databases/create.md deleted file mode 100644 index a4a5fb678d..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/create.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->create('[DATABASE_ID]', '[NAME]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/delete-attribute.md deleted file mode 100644 index 8643a94777..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/delete-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->deleteAttribute('[DATABASE_ID]', '[COLLECTION_ID]', ''); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-php/examples/databases/delete-collection.md deleted file mode 100644 index 6ebd2cada5..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/delete-collection.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->deleteCollection('[DATABASE_ID]', '[COLLECTION_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/delete-document.md b/docs/examples/1.2.x/server-php/examples/databases/delete-document.md deleted file mode 100644 index 3d9633e124..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/delete-document.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->deleteDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/delete-index.md b/docs/examples/1.2.x/server-php/examples/databases/delete-index.md deleted file mode 100644 index 7fb417dd92..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/delete-index.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->deleteIndex('[DATABASE_ID]', '[COLLECTION_ID]', ''); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/delete.md b/docs/examples/1.2.x/server-php/examples/databases/delete.md deleted file mode 100644 index dfb1fa1245..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/delete.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->delete('[DATABASE_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/get-attribute.md deleted file mode 100644 index e0f03cdb01..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/get-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->getAttribute('[DATABASE_ID]', '[COLLECTION_ID]', ''); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/get-collection.md b/docs/examples/1.2.x/server-php/examples/databases/get-collection.md deleted file mode 100644 index 9168c7abd6..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/get-collection.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->getCollection('[DATABASE_ID]', '[COLLECTION_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/get-document.md b/docs/examples/1.2.x/server-php/examples/databases/get-document.md deleted file mode 100644 index 06a41fed78..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/get-document.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->getDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/get-index.md b/docs/examples/1.2.x/server-php/examples/databases/get-index.md deleted file mode 100644 index d110544a7e..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/get-index.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->getIndex('[DATABASE_ID]', '[COLLECTION_ID]', ''); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/get.md b/docs/examples/1.2.x/server-php/examples/databases/get.md deleted file mode 100644 index 629718a017..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/get.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->get('[DATABASE_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-php/examples/databases/list-attributes.md deleted file mode 100644 index 05860325dd..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/list-attributes.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->listAttributes('[DATABASE_ID]', '[COLLECTION_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/list-collections.md b/docs/examples/1.2.x/server-php/examples/databases/list-collections.md deleted file mode 100644 index b26540e6f3..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/list-collections.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->listCollections('[DATABASE_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/list-documents.md b/docs/examples/1.2.x/server-php/examples/databases/list-documents.md deleted file mode 100644 index 3dacec059d..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/list-documents.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->listDocuments('[DATABASE_ID]', '[COLLECTION_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-php/examples/databases/list-indexes.md deleted file mode 100644 index 5b06141bbf..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/list-indexes.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->listIndexes('[DATABASE_ID]', '[COLLECTION_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/list.md b/docs/examples/1.2.x/server-php/examples/databases/list.md deleted file mode 100644 index 74daf1a53f..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/list.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->list(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/update-collection.md b/docs/examples/1.2.x/server-php/examples/databases/update-collection.md deleted file mode 100644 index df03c9b3cb..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/update-collection.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->updateCollection('[DATABASE_ID]', '[COLLECTION_ID]', '[NAME]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/update-document.md b/docs/examples/1.2.x/server-php/examples/databases/update-document.md deleted file mode 100644 index e8f6dd9eee..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/update-document.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/databases/update.md b/docs/examples/1.2.x/server-php/examples/databases/update.md deleted file mode 100644 index 32daa1655f..0000000000 --- a/docs/examples/1.2.x/server-php/examples/databases/update.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$databases = new Databases($client); - -$result = $databases->update('[DATABASE_ID]', '[NAME]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/create-build.md b/docs/examples/1.2.x/server-php/examples/functions/create-build.md deleted file mode 100644 index 27137395b0..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/create-build.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->createBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-php/examples/functions/create-deployment.md deleted file mode 100644 index 1286055be3..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/create-deployment.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', InputFile::withPath('file.png'), false); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/create-execution.md b/docs/examples/1.2.x/server-php/examples/functions/create-execution.md deleted file mode 100644 index 422331a0df..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/create-execution.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->createExecution('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/create-variable.md b/docs/examples/1.2.x/server-php/examples/functions/create-variable.md deleted file mode 100644 index 9a443b2993..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/create-variable.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->createVariable('[FUNCTION_ID]', '[KEY]', '[VALUE]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/create.md b/docs/examples/1.2.x/server-php/examples/functions/create.md deleted file mode 100644 index 276a5eec1a..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/create.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->create('[FUNCTION_ID]', '[NAME]', ["any"], 'node-14.5'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-php/examples/functions/delete-deployment.md deleted file mode 100644 index 002840bce3..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/delete-deployment.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->deleteDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-php/examples/functions/delete-variable.md deleted file mode 100644 index 98a1ea100e..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/delete-variable.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->deleteVariable('[FUNCTION_ID]', '[VARIABLE_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/delete.md b/docs/examples/1.2.x/server-php/examples/functions/delete.md deleted file mode 100644 index 319856522e..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/delete.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->delete('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-php/examples/functions/get-deployment.md deleted file mode 100644 index 9176e9ca3d..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/get-deployment.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->getDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/get-execution.md b/docs/examples/1.2.x/server-php/examples/functions/get-execution.md deleted file mode 100644 index b02cfa08f7..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/get-execution.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->getExecution('[FUNCTION_ID]', '[EXECUTION_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/get-variable.md b/docs/examples/1.2.x/server-php/examples/functions/get-variable.md deleted file mode 100644 index c30d9d298e..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/get-variable.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->getVariable('[FUNCTION_ID]', '[VARIABLE_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/get.md b/docs/examples/1.2.x/server-php/examples/functions/get.md deleted file mode 100644 index 06ddece1ca..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/get.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->get('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-php/examples/functions/list-deployments.md deleted file mode 100644 index ac854a61d0..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/list-deployments.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->listDeployments('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/list-executions.md b/docs/examples/1.2.x/server-php/examples/functions/list-executions.md deleted file mode 100644 index 4417fc8860..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/list-executions.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->listExecutions('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-php/examples/functions/list-runtimes.md deleted file mode 100644 index 78e560ee19..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/list-runtimes.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->listRuntimes(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/list-variables.md b/docs/examples/1.2.x/server-php/examples/functions/list-variables.md deleted file mode 100644 index 58d557062c..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/list-variables.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->listVariables('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/list.md b/docs/examples/1.2.x/server-php/examples/functions/list.md deleted file mode 100644 index 3eaa8c567e..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/list.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->list(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-php/examples/functions/update-deployment.md deleted file mode 100644 index dfcd7ae343..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/update-deployment.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->updateDeployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/update-variable.md b/docs/examples/1.2.x/server-php/examples/functions/update-variable.md deleted file mode 100644 index efbe12d557..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/update-variable.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->updateVariable('[FUNCTION_ID]', '[VARIABLE_ID]', '[KEY]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/functions/update.md b/docs/examples/1.2.x/server-php/examples/functions/update.md deleted file mode 100644 index 58294301ce..0000000000 --- a/docs/examples/1.2.x/server-php/examples/functions/update.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$functions = new Functions($client); - -$result = $functions->update('[FUNCTION_ID]', '[NAME]', ["any"]); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/graphql/get.md b/docs/examples/1.2.x/server-php/examples/graphql/get.md deleted file mode 100644 index 4560b66291..0000000000 --- a/docs/examples/1.2.x/server-php/examples/graphql/get.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$graphql = new Graphql($client); - -$result = $graphql->get('[QUERY]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/graphql/post.md b/docs/examples/1.2.x/server-php/examples/graphql/post.md deleted file mode 100644 index 5eacc20afa..0000000000 --- a/docs/examples/1.2.x/server-php/examples/graphql/post.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$graphql = new Graphql($client); - -$result = $graphql->post([]); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-php/examples/health/get-antivirus.md deleted file mode 100644 index 0f21d5da06..0000000000 --- a/docs/examples/1.2.x/server-php/examples/health/get-antivirus.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getAntivirus(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/health/get-cache.md b/docs/examples/1.2.x/server-php/examples/health/get-cache.md deleted file mode 100644 index e654c26f51..0000000000 --- a/docs/examples/1.2.x/server-php/examples/health/get-cache.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getCache(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/health/get-d-b.md b/docs/examples/1.2.x/server-php/examples/health/get-d-b.md deleted file mode 100644 index 2d37991a3d..0000000000 --- a/docs/examples/1.2.x/server-php/examples/health/get-d-b.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getDB(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-php/examples/health/get-queue-certificates.md deleted file mode 100644 index 57f2c5793e..0000000000 --- a/docs/examples/1.2.x/server-php/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getQueueCertificates(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-php/examples/health/get-queue-functions.md deleted file mode 100644 index 8ff6510e1c..0000000000 --- a/docs/examples/1.2.x/server-php/examples/health/get-queue-functions.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getQueueFunctions(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-php/examples/health/get-queue-logs.md deleted file mode 100644 index fa723d7391..0000000000 --- a/docs/examples/1.2.x/server-php/examples/health/get-queue-logs.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getQueueLogs(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-php/examples/health/get-queue-webhooks.md deleted file mode 100644 index af48a72d06..0000000000 --- a/docs/examples/1.2.x/server-php/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getQueueWebhooks(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-php/examples/health/get-storage-local.md deleted file mode 100644 index eba15a1652..0000000000 --- a/docs/examples/1.2.x/server-php/examples/health/get-storage-local.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getStorageLocal(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/health/get-time.md b/docs/examples/1.2.x/server-php/examples/health/get-time.md deleted file mode 100644 index 849f499460..0000000000 --- a/docs/examples/1.2.x/server-php/examples/health/get-time.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->getTime(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/health/get.md b/docs/examples/1.2.x/server-php/examples/health/get.md deleted file mode 100644 index 9f1ec8970c..0000000000 --- a/docs/examples/1.2.x/server-php/examples/health/get.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$health = new Health($client); - -$result = $health->get(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/locale/get.md b/docs/examples/1.2.x/server-php/examples/locale/get.md deleted file mode 100644 index 8e11f17689..0000000000 --- a/docs/examples/1.2.x/server-php/examples/locale/get.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$locale = new Locale($client); - -$result = $locale->get(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-continents.md b/docs/examples/1.2.x/server-php/examples/locale/list-continents.md deleted file mode 100644 index 345120b232..0000000000 --- a/docs/examples/1.2.x/server-php/examples/locale/list-continents.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$locale = new Locale($client); - -$result = $locale->listContinents(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-php/examples/locale/list-countries-e-u.md deleted file mode 100644 index 1219b8d236..0000000000 --- a/docs/examples/1.2.x/server-php/examples/locale/list-countries-e-u.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$locale = new Locale($client); - -$result = $locale->listCountriesEU(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-php/examples/locale/list-countries-phones.md deleted file mode 100644 index bb94b16eb7..0000000000 --- a/docs/examples/1.2.x/server-php/examples/locale/list-countries-phones.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$locale = new Locale($client); - -$result = $locale->listCountriesPhones(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-countries.md b/docs/examples/1.2.x/server-php/examples/locale/list-countries.md deleted file mode 100644 index b21ae44e65..0000000000 --- a/docs/examples/1.2.x/server-php/examples/locale/list-countries.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$locale = new Locale($client); - -$result = $locale->listCountries(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-php/examples/locale/list-currencies.md deleted file mode 100644 index c4145508ce..0000000000 --- a/docs/examples/1.2.x/server-php/examples/locale/list-currencies.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$locale = new Locale($client); - -$result = $locale->listCurrencies(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-languages.md b/docs/examples/1.2.x/server-php/examples/locale/list-languages.md deleted file mode 100644 index 3f3a370649..0000000000 --- a/docs/examples/1.2.x/server-php/examples/locale/list-languages.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$locale = new Locale($client); - -$result = $locale->listLanguages(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-php/examples/storage/create-bucket.md deleted file mode 100644 index b1aedf58db..0000000000 --- a/docs/examples/1.2.x/server-php/examples/storage/create-bucket.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->createBucket('[BUCKET_ID]', '[NAME]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/storage/create-file.md b/docs/examples/1.2.x/server-php/examples/storage/create-file.md deleted file mode 100644 index 0fc57b9ffc..0000000000 --- a/docs/examples/1.2.x/server-php/examples/storage/create-file.md +++ /dev/null @@ -1,17 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->createFile('[BUCKET_ID]', '[FILE_ID]', InputFile::withPath('file.png')); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-php/examples/storage/delete-bucket.md deleted file mode 100644 index 71583fc4df..0000000000 --- a/docs/examples/1.2.x/server-php/examples/storage/delete-bucket.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->deleteBucket('[BUCKET_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/storage/delete-file.md b/docs/examples/1.2.x/server-php/examples/storage/delete-file.md deleted file mode 100644 index 3803659548..0000000000 --- a/docs/examples/1.2.x/server-php/examples/storage/delete-file.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->deleteFile('[BUCKET_ID]', '[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-php/examples/storage/get-bucket.md deleted file mode 100644 index 2eee6f017d..0000000000 --- a/docs/examples/1.2.x/server-php/examples/storage/get-bucket.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->getBucket('[BUCKET_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-php/examples/storage/get-file-download.md deleted file mode 100644 index c9dfa317d6..0000000000 --- a/docs/examples/1.2.x/server-php/examples/storage/get-file-download.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->getFileDownload('[BUCKET_ID]', '[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-php/examples/storage/get-file-preview.md deleted file mode 100644 index df1edac6ff..0000000000 --- a/docs/examples/1.2.x/server-php/examples/storage/get-file-preview.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->getFilePreview('[BUCKET_ID]', '[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-php/examples/storage/get-file-view.md deleted file mode 100644 index a14685cc8b..0000000000 --- a/docs/examples/1.2.x/server-php/examples/storage/get-file-view.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->getFileView('[BUCKET_ID]', '[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/storage/get-file.md b/docs/examples/1.2.x/server-php/examples/storage/get-file.md deleted file mode 100644 index 96b2ab01be..0000000000 --- a/docs/examples/1.2.x/server-php/examples/storage/get-file.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->getFile('[BUCKET_ID]', '[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-php/examples/storage/list-buckets.md deleted file mode 100644 index d29b9373a5..0000000000 --- a/docs/examples/1.2.x/server-php/examples/storage/list-buckets.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->listBuckets(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/storage/list-files.md b/docs/examples/1.2.x/server-php/examples/storage/list-files.md deleted file mode 100644 index 22d3dd292f..0000000000 --- a/docs/examples/1.2.x/server-php/examples/storage/list-files.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->listFiles('[BUCKET_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-php/examples/storage/update-bucket.md deleted file mode 100644 index 667833b210..0000000000 --- a/docs/examples/1.2.x/server-php/examples/storage/update-bucket.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->updateBucket('[BUCKET_ID]', '[NAME]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/storage/update-file.md b/docs/examples/1.2.x/server-php/examples/storage/update-file.md deleted file mode 100644 index dbfadb3885..0000000000 --- a/docs/examples/1.2.x/server-php/examples/storage/update-file.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$storage = new Storage($client); - -$result = $storage->updateFile('[BUCKET_ID]', '[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/teams/create-membership.md b/docs/examples/1.2.x/server-php/examples/teams/create-membership.md deleted file mode 100644 index 9c88b1bba5..0000000000 --- a/docs/examples/1.2.x/server-php/examples/teams/create-membership.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/teams/create.md b/docs/examples/1.2.x/server-php/examples/teams/create.md deleted file mode 100644 index 67c7601841..0000000000 --- a/docs/examples/1.2.x/server-php/examples/teams/create.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->create('[TEAM_ID]', '[NAME]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-php/examples/teams/delete-membership.md deleted file mode 100644 index 32eb37a709..0000000000 --- a/docs/examples/1.2.x/server-php/examples/teams/delete-membership.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/teams/delete.md b/docs/examples/1.2.x/server-php/examples/teams/delete.md deleted file mode 100644 index 394a1940fc..0000000000 --- a/docs/examples/1.2.x/server-php/examples/teams/delete.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->delete('[TEAM_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/teams/get-membership.md b/docs/examples/1.2.x/server-php/examples/teams/get-membership.md deleted file mode 100644 index 95992825fc..0000000000 --- a/docs/examples/1.2.x/server-php/examples/teams/get-membership.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->getMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/teams/get.md b/docs/examples/1.2.x/server-php/examples/teams/get.md deleted file mode 100644 index 6f0b705707..0000000000 --- a/docs/examples/1.2.x/server-php/examples/teams/get.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->get('[TEAM_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-php/examples/teams/list-memberships.md deleted file mode 100644 index b4521d6ac0..0000000000 --- a/docs/examples/1.2.x/server-php/examples/teams/list-memberships.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->listMemberships('[TEAM_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/teams/list.md b/docs/examples/1.2.x/server-php/examples/teams/list.md deleted file mode 100644 index d17bb7689b..0000000000 --- a/docs/examples/1.2.x/server-php/examples/teams/list.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->list(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-php/examples/teams/update-membership-roles.md deleted file mode 100644 index 66dcad785b..0000000000 --- a/docs/examples/1.2.x/server-php/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-php/examples/teams/update-membership-status.md deleted file mode 100644 index c37e0d408c..0000000000 --- a/docs/examples/1.2.x/server-php/examples/teams/update-membership-status.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token -; - -$teams = new Teams($client); - -$result = $teams->updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/teams/update.md b/docs/examples/1.2.x/server-php/examples/teams/update.md deleted file mode 100644 index 945001dc36..0000000000 --- a/docs/examples/1.2.x/server-php/examples/teams/update.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$teams = new Teams($client); - -$result = $teams->update('[TEAM_ID]', '[NAME]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-php/examples/users/create-argon2user.md deleted file mode 100644 index acd40e281b..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/create-argon2user.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->createArgon2User('[USER_ID]', 'email@example.com', 'password'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-php/examples/users/create-bcrypt-user.md deleted file mode 100644 index a9d218e310..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->createBcryptUser('[USER_ID]', 'email@example.com', 'password'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-php/examples/users/create-m-d5user.md deleted file mode 100644 index 11f47ec07a..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/create-m-d5user.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->createMD5User('[USER_ID]', 'email@example.com', 'password'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-php/examples/users/create-p-h-pass-user.md deleted file mode 100644 index 57f8074e52..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->createPHPassUser('[USER_ID]', 'email@example.com', 'password'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-php/examples/users/create-s-h-a-user.md deleted file mode 100644 index 018bb2c990..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->createSHAUser('[USER_ID]', 'email@example.com', 'password'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-php/examples/users/create-scrypt-modified-user.md deleted file mode 100644 index 494def2ec9..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/create-scrypt-modified-user.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->createScryptModifiedUser('[USER_ID]', 'email@example.com', 'password', '[PASSWORD_SALT]', '[PASSWORD_SALT_SEPARATOR]', '[PASSWORD_SIGNER_KEY]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-php/examples/users/create-scrypt-user.md deleted file mode 100644 index 9774c9c965..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/create-scrypt-user.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->createScryptUser('[USER_ID]', 'email@example.com', 'password', '[PASSWORD_SALT]', null, null, null, null); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/create.md b/docs/examples/1.2.x/server-php/examples/users/create.md deleted file mode 100644 index 545952ecc4..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/create.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->create('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/delete-session.md b/docs/examples/1.2.x/server-php/examples/users/delete-session.md deleted file mode 100644 index ead6de7549..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/delete-session.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->deleteSession('[USER_ID]', '[SESSION_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-php/examples/users/delete-sessions.md deleted file mode 100644 index 968d788ea7..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/delete-sessions.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->deleteSessions('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/delete.md b/docs/examples/1.2.x/server-php/examples/users/delete.md deleted file mode 100644 index 8a24d63059..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/delete.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->delete('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/get-prefs.md b/docs/examples/1.2.x/server-php/examples/users/get-prefs.md deleted file mode 100644 index 1c9978a0fb..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/get-prefs.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->getPrefs('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/get.md b/docs/examples/1.2.x/server-php/examples/users/get.md deleted file mode 100644 index 16c29f9a5a..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/get.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->get('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/list-logs.md b/docs/examples/1.2.x/server-php/examples/users/list-logs.md deleted file mode 100644 index 4253fc0abb..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/list-logs.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->listLogs('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/list-memberships.md b/docs/examples/1.2.x/server-php/examples/users/list-memberships.md deleted file mode 100644 index bbea4a5d42..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/list-memberships.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->listMemberships('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/list-sessions.md b/docs/examples/1.2.x/server-php/examples/users/list-sessions.md deleted file mode 100644 index 5b548dfd14..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/list-sessions.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->listSessions('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/list.md b/docs/examples/1.2.x/server-php/examples/users/list.md deleted file mode 100644 index efce771ea1..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/list.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->list(); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-php/examples/users/update-email-verification.md deleted file mode 100644 index ff4bc23a60..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/update-email-verification.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->updateEmailVerification('[USER_ID]', false); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/update-email.md b/docs/examples/1.2.x/server-php/examples/users/update-email.md deleted file mode 100644 index 37efbe4244..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/update-email.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->updateEmail('[USER_ID]', 'email@example.com'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/update-name.md b/docs/examples/1.2.x/server-php/examples/users/update-name.md deleted file mode 100644 index 6c552e7a35..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/update-name.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->updateName('[USER_ID]', '[NAME]'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/update-password.md b/docs/examples/1.2.x/server-php/examples/users/update-password.md deleted file mode 100644 index 1959ff0694..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/update-password.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->updatePassword('[USER_ID]', 'password'); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-php/examples/users/update-phone-verification.md deleted file mode 100644 index f7bd2fc66a..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/update-phone-verification.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->updatePhoneVerification('[USER_ID]', false); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/update-phone.md b/docs/examples/1.2.x/server-php/examples/users/update-phone.md deleted file mode 100644 index 86ce7ea61e..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/update-phone.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->updatePhone('[USER_ID]', ''); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/update-prefs.md b/docs/examples/1.2.x/server-php/examples/users/update-prefs.md deleted file mode 100644 index 9e9141f8a7..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/update-prefs.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->updatePrefs('[USER_ID]', []); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-php/examples/users/update-status.md b/docs/examples/1.2.x/server-php/examples/users/update-status.md deleted file mode 100644 index 6d6c7b1d26..0000000000 --- a/docs/examples/1.2.x/server-php/examples/users/update-status.md +++ /dev/null @@ -1,16 +0,0 @@ -setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key -; - -$users = new Users($client); - -$result = $users->updateStatus('[USER_ID]', false); \ No newline at end of file diff --git a/docs/examples/1.2.x/server-python/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-python/examples/account/create-phone-verification.md deleted file mode 100644 index 42d0479d8f..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/create-phone-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.create_phone_verification() diff --git a/docs/examples/1.2.x/server-python/examples/account/create-recovery.md b/docs/examples/1.2.x/server-python/examples/account/create-recovery.md deleted file mode 100644 index 71026337a4..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/create-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.create_recovery('email@example.com', 'https://example.com') diff --git a/docs/examples/1.2.x/server-python/examples/account/create-verification.md b/docs/examples/1.2.x/server-python/examples/account/create-verification.md deleted file mode 100644 index 53939ca669..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/create-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.create_verification('https://example.com') diff --git a/docs/examples/1.2.x/server-python/examples/account/delete-session.md b/docs/examples/1.2.x/server-python/examples/account/delete-session.md deleted file mode 100644 index 940367dfcf..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/delete-session.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.delete_session('[SESSION_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-python/examples/account/delete-sessions.md deleted file mode 100644 index 317dd043d3..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/delete-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.delete_sessions() diff --git a/docs/examples/1.2.x/server-python/examples/account/get-prefs.md b/docs/examples/1.2.x/server-python/examples/account/get-prefs.md deleted file mode 100644 index 616b1774b9..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/get-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.get_prefs() diff --git a/docs/examples/1.2.x/server-python/examples/account/get-session.md b/docs/examples/1.2.x/server-python/examples/account/get-session.md deleted file mode 100644 index 96fef2e50e..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/get-session.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.get_session('[SESSION_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/account/get.md b/docs/examples/1.2.x/server-python/examples/account/get.md deleted file mode 100644 index f561eb9446..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/get.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.get() diff --git a/docs/examples/1.2.x/server-python/examples/account/list-logs.md b/docs/examples/1.2.x/server-python/examples/account/list-logs.md deleted file mode 100644 index 53747b0208..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/list-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.list_logs() diff --git a/docs/examples/1.2.x/server-python/examples/account/list-sessions.md b/docs/examples/1.2.x/server-python/examples/account/list-sessions.md deleted file mode 100644 index 1ac9d9931e..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/list-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.list_sessions() diff --git a/docs/examples/1.2.x/server-python/examples/account/update-email.md b/docs/examples/1.2.x/server-python/examples/account/update-email.md deleted file mode 100644 index d18eed406f..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/update-email.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_email('email@example.com', 'password') diff --git a/docs/examples/1.2.x/server-python/examples/account/update-name.md b/docs/examples/1.2.x/server-python/examples/account/update-name.md deleted file mode 100644 index eec145325a..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/update-name.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_name('[NAME]') diff --git a/docs/examples/1.2.x/server-python/examples/account/update-password.md b/docs/examples/1.2.x/server-python/examples/account/update-password.md deleted file mode 100644 index 2e89031dc8..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/update-password.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_password('password') diff --git a/docs/examples/1.2.x/server-python/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-python/examples/account/update-phone-verification.md deleted file mode 100644 index 7cf065463a..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/update-phone-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_phone_verification('[USER_ID]', '[SECRET]') diff --git a/docs/examples/1.2.x/server-python/examples/account/update-phone.md b/docs/examples/1.2.x/server-python/examples/account/update-phone.md deleted file mode 100644 index da54b50d90..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/update-phone.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_phone('', 'password') diff --git a/docs/examples/1.2.x/server-python/examples/account/update-prefs.md b/docs/examples/1.2.x/server-python/examples/account/update-prefs.md deleted file mode 100644 index 5bf6d7478b..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/update-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_prefs({}) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-recovery.md b/docs/examples/1.2.x/server-python/examples/account/update-recovery.md deleted file mode 100644 index badc07d0af..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/update-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_recovery('[USER_ID]', '[SECRET]', 'password', 'password') diff --git a/docs/examples/1.2.x/server-python/examples/account/update-session.md b/docs/examples/1.2.x/server-python/examples/account/update-session.md deleted file mode 100644 index 14f3541b10..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/update-session.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_session('[SESSION_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/account/update-status.md b/docs/examples/1.2.x/server-python/examples/account/update-status.md deleted file mode 100644 index d6a36e6878..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/update-status.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_status() diff --git a/docs/examples/1.2.x/server-python/examples/account/update-verification.md b/docs/examples/1.2.x/server-python/examples/account/update-verification.md deleted file mode 100644 index 02d01257c8..0000000000 --- a/docs/examples/1.2.x/server-python/examples/account/update-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -account = Account(client) - -result = account.update_verification('[USER_ID]', '[SECRET]') diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-python/examples/avatars/get-browser.md deleted file mode 100644 index 138c0d1b3e..0000000000 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-browser.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.avatars import Avatars - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -avatars = Avatars(client) - -result = avatars.get_browser('aa') diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-python/examples/avatars/get-credit-card.md deleted file mode 100644 index 83f76aca42..0000000000 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.avatars import Avatars - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -avatars = Avatars(client) - -result = avatars.get_credit_card('amex') diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-python/examples/avatars/get-favicon.md deleted file mode 100644 index 6946080bee..0000000000 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-favicon.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.avatars import Avatars - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -avatars = Avatars(client) - -result = avatars.get_favicon('https://example.com') diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-python/examples/avatars/get-flag.md deleted file mode 100644 index 188d6d35bd..0000000000 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-flag.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.avatars import Avatars - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -avatars = Avatars(client) - -result = avatars.get_flag('af') diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-image.md b/docs/examples/1.2.x/server-python/examples/avatars/get-image.md deleted file mode 100644 index 29a6430eab..0000000000 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-image.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.avatars import Avatars - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -avatars = Avatars(client) - -result = avatars.get_image('https://example.com') diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-python/examples/avatars/get-initials.md deleted file mode 100644 index 0c300af5da..0000000000 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-initials.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.avatars import Avatars - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -avatars = Avatars(client) - -result = avatars.get_initials() diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-python/examples/avatars/get-q-r.md deleted file mode 100644 index 38378e9235..0000000000 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-q-r.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.avatars import Avatars - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -avatars = Avatars(client) - -result = avatars.get_qr('[TEXT]') diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-boolean-attribute.md deleted file mode 100644 index 32f3289555..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/create-boolean-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.create_boolean_attribute('[DATABASE_ID]', '[COLLECTION_ID]', '', False) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-collection.md b/docs/examples/1.2.x/server-python/examples/databases/create-collection.md deleted file mode 100644 index edcb0d93a9..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/create-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.create_collection('[DATABASE_ID]', '[COLLECTION_ID]', '[NAME]') diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-datetime-attribute.md deleted file mode 100644 index 0bc457f203..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/create-datetime-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.create_datetime_attribute('[DATABASE_ID]', '[COLLECTION_ID]', '', False) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-document.md b/docs/examples/1.2.x/server-python/examples/databases/create-document.md deleted file mode 100644 index 88b1c71f25..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/create-document.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.create_document('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]', {}) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-email-attribute.md deleted file mode 100644 index 99a3499e19..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/create-email-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.create_email_attribute('[DATABASE_ID]', '[COLLECTION_ID]', '', False) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-enum-attribute.md deleted file mode 100644 index 6a9aa8b173..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/create-enum-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.create_enum_attribute('[DATABASE_ID]', '[COLLECTION_ID]', '', [], False) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-float-attribute.md deleted file mode 100644 index 2622020534..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/create-float-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.create_float_attribute('[DATABASE_ID]', '[COLLECTION_ID]', '', False) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-index.md b/docs/examples/1.2.x/server-python/examples/databases/create-index.md deleted file mode 100644 index 1632a54deb..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/create-index.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.create_index('[DATABASE_ID]', '[COLLECTION_ID]', '', 'key', []) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-integer-attribute.md deleted file mode 100644 index 5524632865..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/create-integer-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.create_integer_attribute('[DATABASE_ID]', '[COLLECTION_ID]', '', False) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-ip-attribute.md deleted file mode 100644 index c6d78dd968..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/create-ip-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.create_ip_attribute('[DATABASE_ID]', '[COLLECTION_ID]', '', False) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-string-attribute.md deleted file mode 100644 index 44152c67e2..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/create-string-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.create_string_attribute('[DATABASE_ID]', '[COLLECTION_ID]', '', 1, False) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-url-attribute.md deleted file mode 100644 index d0fcb5bd63..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/create-url-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.create_url_attribute('[DATABASE_ID]', '[COLLECTION_ID]', '', False) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create.md b/docs/examples/1.2.x/server-python/examples/databases/create.md deleted file mode 100644 index 78a859de23..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/create.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.create('[DATABASE_ID]', '[NAME]') diff --git a/docs/examples/1.2.x/server-python/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/delete-attribute.md deleted file mode 100644 index 862361fc8d..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/delete-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.delete_attribute('[DATABASE_ID]', '[COLLECTION_ID]', '') diff --git a/docs/examples/1.2.x/server-python/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-python/examples/databases/delete-collection.md deleted file mode 100644 index 7217442396..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/delete-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.delete_collection('[DATABASE_ID]', '[COLLECTION_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/databases/delete-document.md b/docs/examples/1.2.x/server-python/examples/databases/delete-document.md deleted file mode 100644 index a33fdc3564..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/delete-document.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.delete_document('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/databases/delete-index.md b/docs/examples/1.2.x/server-python/examples/databases/delete-index.md deleted file mode 100644 index c577a30b69..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/delete-index.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.delete_index('[DATABASE_ID]', '[COLLECTION_ID]', '') diff --git a/docs/examples/1.2.x/server-python/examples/databases/delete.md b/docs/examples/1.2.x/server-python/examples/databases/delete.md deleted file mode 100644 index dd7bc9997c..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.delete('[DATABASE_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/get-attribute.md deleted file mode 100644 index b33287a30c..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/get-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.get_attribute('[DATABASE_ID]', '[COLLECTION_ID]', '') diff --git a/docs/examples/1.2.x/server-python/examples/databases/get-collection.md b/docs/examples/1.2.x/server-python/examples/databases/get-collection.md deleted file mode 100644 index b8ca5b8208..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/get-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.get_collection('[DATABASE_ID]', '[COLLECTION_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/databases/get-document.md b/docs/examples/1.2.x/server-python/examples/databases/get-document.md deleted file mode 100644 index 4085f021e1..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/get-document.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.get_document('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/databases/get-index.md b/docs/examples/1.2.x/server-python/examples/databases/get-index.md deleted file mode 100644 index a631ccfeaa..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/get-index.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.get_index('[DATABASE_ID]', '[COLLECTION_ID]', '') diff --git a/docs/examples/1.2.x/server-python/examples/databases/get.md b/docs/examples/1.2.x/server-python/examples/databases/get.md deleted file mode 100644 index 0ebdfd52f8..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/get.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.get('[DATABASE_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-python/examples/databases/list-attributes.md deleted file mode 100644 index 20970ab55e..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/list-attributes.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.list_attributes('[DATABASE_ID]', '[COLLECTION_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/databases/list-collections.md b/docs/examples/1.2.x/server-python/examples/databases/list-collections.md deleted file mode 100644 index 6ac9a29d56..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/list-collections.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.list_collections('[DATABASE_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/databases/list-documents.md b/docs/examples/1.2.x/server-python/examples/databases/list-documents.md deleted file mode 100644 index ebcb62497c..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/list-documents.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.list_documents('[DATABASE_ID]', '[COLLECTION_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-python/examples/databases/list-indexes.md deleted file mode 100644 index 95f629ff41..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/list-indexes.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.list_indexes('[DATABASE_ID]', '[COLLECTION_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/databases/list.md b/docs/examples/1.2.x/server-python/examples/databases/list.md deleted file mode 100644 index 61460a9a6d..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/list.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.list() diff --git a/docs/examples/1.2.x/server-python/examples/databases/update-collection.md b/docs/examples/1.2.x/server-python/examples/databases/update-collection.md deleted file mode 100644 index deb81d62dd..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/update-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.update_collection('[DATABASE_ID]', '[COLLECTION_ID]', '[NAME]') diff --git a/docs/examples/1.2.x/server-python/examples/databases/update-document.md b/docs/examples/1.2.x/server-python/examples/databases/update-document.md deleted file mode 100644 index 2d0123fb74..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/update-document.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.update_document('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/databases/update.md b/docs/examples/1.2.x/server-python/examples/databases/update.md deleted file mode 100644 index 03e7d349cc..0000000000 --- a/docs/examples/1.2.x/server-python/examples/databases/update.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.databases import Databases - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -databases = Databases(client) - -result = databases.update('[DATABASE_ID]', '[NAME]') diff --git a/docs/examples/1.2.x/server-python/examples/functions/create-build.md b/docs/examples/1.2.x/server-python/examples/functions/create-build.md deleted file mode 100644 index cc705ec90e..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/create-build.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.create_build('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-python/examples/functions/create-deployment.md deleted file mode 100644 index 66a8f4db73..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/create-deployment.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.input_file import InputFile -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.create_deployment('[FUNCTION_ID]', '[ENTRYPOINT]', InputFile.from_path('file.png'), False) diff --git a/docs/examples/1.2.x/server-python/examples/functions/create-execution.md b/docs/examples/1.2.x/server-python/examples/functions/create-execution.md deleted file mode 100644 index dc4442cd84..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/create-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.create_execution('[FUNCTION_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/functions/create-variable.md b/docs/examples/1.2.x/server-python/examples/functions/create-variable.md deleted file mode 100644 index 3af8404f34..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/create-variable.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.create_variable('[FUNCTION_ID]', '[KEY]', '[VALUE]') diff --git a/docs/examples/1.2.x/server-python/examples/functions/create.md b/docs/examples/1.2.x/server-python/examples/functions/create.md deleted file mode 100644 index c1eeab487a..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/create.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.create('[FUNCTION_ID]', '[NAME]', ["any"], 'node-14.5') diff --git a/docs/examples/1.2.x/server-python/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-python/examples/functions/delete-deployment.md deleted file mode 100644 index ebd3877eaf..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/delete-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.delete_deployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-python/examples/functions/delete-variable.md deleted file mode 100644 index 93701f08a8..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/delete-variable.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.delete_variable('[FUNCTION_ID]', '[VARIABLE_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/functions/delete.md b/docs/examples/1.2.x/server-python/examples/functions/delete.md deleted file mode 100644 index 52658e8c30..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.delete('[FUNCTION_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-python/examples/functions/get-deployment.md deleted file mode 100644 index e94bab7e33..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/get-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.get_deployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/functions/get-execution.md b/docs/examples/1.2.x/server-python/examples/functions/get-execution.md deleted file mode 100644 index 1e101304d3..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/get-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.get_execution('[FUNCTION_ID]', '[EXECUTION_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/functions/get-variable.md b/docs/examples/1.2.x/server-python/examples/functions/get-variable.md deleted file mode 100644 index f1916d651f..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/get-variable.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.get_variable('[FUNCTION_ID]', '[VARIABLE_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/functions/get.md b/docs/examples/1.2.x/server-python/examples/functions/get.md deleted file mode 100644 index 0007667da6..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/get.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.get('[FUNCTION_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-python/examples/functions/list-deployments.md deleted file mode 100644 index 15e37de7e5..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/list-deployments.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.list_deployments('[FUNCTION_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/functions/list-executions.md b/docs/examples/1.2.x/server-python/examples/functions/list-executions.md deleted file mode 100644 index 6d75e093f4..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/list-executions.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.list_executions('[FUNCTION_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-python/examples/functions/list-runtimes.md deleted file mode 100644 index a832a4dcdc..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/list-runtimes.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.list_runtimes() diff --git a/docs/examples/1.2.x/server-python/examples/functions/list-variables.md b/docs/examples/1.2.x/server-python/examples/functions/list-variables.md deleted file mode 100644 index 4beec806c6..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/list-variables.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.list_variables('[FUNCTION_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/functions/list.md b/docs/examples/1.2.x/server-python/examples/functions/list.md deleted file mode 100644 index cc1f04d9c6..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/list.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.list() diff --git a/docs/examples/1.2.x/server-python/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-python/examples/functions/update-deployment.md deleted file mode 100644 index 473276f787..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/update-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.update_deployment('[FUNCTION_ID]', '[DEPLOYMENT_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/functions/update-variable.md b/docs/examples/1.2.x/server-python/examples/functions/update-variable.md deleted file mode 100644 index 05f0911456..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/update-variable.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.update_variable('[FUNCTION_ID]', '[VARIABLE_ID]', '[KEY]') diff --git a/docs/examples/1.2.x/server-python/examples/functions/update.md b/docs/examples/1.2.x/server-python/examples/functions/update.md deleted file mode 100644 index b5fb3a07fb..0000000000 --- a/docs/examples/1.2.x/server-python/examples/functions/update.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.functions import Functions - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -functions = Functions(client) - -result = functions.update('[FUNCTION_ID]', '[NAME]', ["any"]) diff --git a/docs/examples/1.2.x/server-python/examples/graphql/get.md b/docs/examples/1.2.x/server-python/examples/graphql/get.md deleted file mode 100644 index 77606774cc..0000000000 --- a/docs/examples/1.2.x/server-python/examples/graphql/get.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.graphql import Graphql - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -graphql = Graphql(client) - -result = graphql.get('[QUERY]') diff --git a/docs/examples/1.2.x/server-python/examples/graphql/post.md b/docs/examples/1.2.x/server-python/examples/graphql/post.md deleted file mode 100644 index 1436ee30e9..0000000000 --- a/docs/examples/1.2.x/server-python/examples/graphql/post.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.graphql import Graphql - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -graphql = Graphql(client) - -result = graphql.post({}) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-python/examples/health/get-antivirus.md deleted file mode 100644 index 97ee120365..0000000000 --- a/docs/examples/1.2.x/server-python/examples/health/get-antivirus.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_antivirus() diff --git a/docs/examples/1.2.x/server-python/examples/health/get-cache.md b/docs/examples/1.2.x/server-python/examples/health/get-cache.md deleted file mode 100644 index 57c7939b7f..0000000000 --- a/docs/examples/1.2.x/server-python/examples/health/get-cache.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_cache() diff --git a/docs/examples/1.2.x/server-python/examples/health/get-d-b.md b/docs/examples/1.2.x/server-python/examples/health/get-d-b.md deleted file mode 100644 index 4c2bafec96..0000000000 --- a/docs/examples/1.2.x/server-python/examples/health/get-d-b.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_db() diff --git a/docs/examples/1.2.x/server-python/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-python/examples/health/get-queue-certificates.md deleted file mode 100644 index 1f87c2758a..0000000000 --- a/docs/examples/1.2.x/server-python/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_queue_certificates() diff --git a/docs/examples/1.2.x/server-python/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-python/examples/health/get-queue-functions.md deleted file mode 100644 index 3e0b0c01e0..0000000000 --- a/docs/examples/1.2.x/server-python/examples/health/get-queue-functions.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_queue_functions() diff --git a/docs/examples/1.2.x/server-python/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-python/examples/health/get-queue-logs.md deleted file mode 100644 index fdf80c6d82..0000000000 --- a/docs/examples/1.2.x/server-python/examples/health/get-queue-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_queue_logs() diff --git a/docs/examples/1.2.x/server-python/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-python/examples/health/get-queue-webhooks.md deleted file mode 100644 index 90c4238987..0000000000 --- a/docs/examples/1.2.x/server-python/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_queue_webhooks() diff --git a/docs/examples/1.2.x/server-python/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-python/examples/health/get-storage-local.md deleted file mode 100644 index b06dcef245..0000000000 --- a/docs/examples/1.2.x/server-python/examples/health/get-storage-local.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_storage_local() diff --git a/docs/examples/1.2.x/server-python/examples/health/get-time.md b/docs/examples/1.2.x/server-python/examples/health/get-time.md deleted file mode 100644 index df68c1a0f9..0000000000 --- a/docs/examples/1.2.x/server-python/examples/health/get-time.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get_time() diff --git a/docs/examples/1.2.x/server-python/examples/health/get.md b/docs/examples/1.2.x/server-python/examples/health/get.md deleted file mode 100644 index f3416aef75..0000000000 --- a/docs/examples/1.2.x/server-python/examples/health/get.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.health import Health - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -health = Health(client) - -result = health.get() diff --git a/docs/examples/1.2.x/server-python/examples/locale/get.md b/docs/examples/1.2.x/server-python/examples/locale/get.md deleted file mode 100644 index 752df0123d..0000000000 --- a/docs/examples/1.2.x/server-python/examples/locale/get.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.locale import Locale - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -locale = Locale(client) - -result = locale.get() diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-continents.md b/docs/examples/1.2.x/server-python/examples/locale/list-continents.md deleted file mode 100644 index 20dd8e0523..0000000000 --- a/docs/examples/1.2.x/server-python/examples/locale/list-continents.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.locale import Locale - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -locale = Locale(client) - -result = locale.list_continents() diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-python/examples/locale/list-countries-e-u.md deleted file mode 100644 index b31725a94d..0000000000 --- a/docs/examples/1.2.x/server-python/examples/locale/list-countries-e-u.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.locale import Locale - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -locale = Locale(client) - -result = locale.list_countries_eu() diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-python/examples/locale/list-countries-phones.md deleted file mode 100644 index a44d8ad732..0000000000 --- a/docs/examples/1.2.x/server-python/examples/locale/list-countries-phones.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.locale import Locale - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -locale = Locale(client) - -result = locale.list_countries_phones() diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-countries.md b/docs/examples/1.2.x/server-python/examples/locale/list-countries.md deleted file mode 100644 index 932fa1c909..0000000000 --- a/docs/examples/1.2.x/server-python/examples/locale/list-countries.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.locale import Locale - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -locale = Locale(client) - -result = locale.list_countries() diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-python/examples/locale/list-currencies.md deleted file mode 100644 index 18951625ad..0000000000 --- a/docs/examples/1.2.x/server-python/examples/locale/list-currencies.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.locale import Locale - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -locale = Locale(client) - -result = locale.list_currencies() diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-languages.md b/docs/examples/1.2.x/server-python/examples/locale/list-languages.md deleted file mode 100644 index f7a66cb227..0000000000 --- a/docs/examples/1.2.x/server-python/examples/locale/list-languages.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.locale import Locale - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -locale = Locale(client) - -result = locale.list_languages() diff --git a/docs/examples/1.2.x/server-python/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-python/examples/storage/create-bucket.md deleted file mode 100644 index af45c50fc0..0000000000 --- a/docs/examples/1.2.x/server-python/examples/storage/create-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.create_bucket('[BUCKET_ID]', '[NAME]') diff --git a/docs/examples/1.2.x/server-python/examples/storage/create-file.md b/docs/examples/1.2.x/server-python/examples/storage/create-file.md deleted file mode 100644 index ce6d3fcb6b..0000000000 --- a/docs/examples/1.2.x/server-python/examples/storage/create-file.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.input_file import InputFile -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.create_file('[BUCKET_ID]', '[FILE_ID]', InputFile.from_path('file.png')) diff --git a/docs/examples/1.2.x/server-python/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-python/examples/storage/delete-bucket.md deleted file mode 100644 index e992670f8d..0000000000 --- a/docs/examples/1.2.x/server-python/examples/storage/delete-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.delete_bucket('[BUCKET_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/storage/delete-file.md b/docs/examples/1.2.x/server-python/examples/storage/delete-file.md deleted file mode 100644 index d38b70b83c..0000000000 --- a/docs/examples/1.2.x/server-python/examples/storage/delete-file.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.delete_file('[BUCKET_ID]', '[FILE_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-python/examples/storage/get-bucket.md deleted file mode 100644 index 85f870b48f..0000000000 --- a/docs/examples/1.2.x/server-python/examples/storage/get-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.get_bucket('[BUCKET_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-python/examples/storage/get-file-download.md deleted file mode 100644 index dcc5790b9c..0000000000 --- a/docs/examples/1.2.x/server-python/examples/storage/get-file-download.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.get_file_download('[BUCKET_ID]', '[FILE_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-python/examples/storage/get-file-preview.md deleted file mode 100644 index cbba840ded..0000000000 --- a/docs/examples/1.2.x/server-python/examples/storage/get-file-preview.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.get_file_preview('[BUCKET_ID]', '[FILE_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-python/examples/storage/get-file-view.md deleted file mode 100644 index 4648e80169..0000000000 --- a/docs/examples/1.2.x/server-python/examples/storage/get-file-view.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.get_file_view('[BUCKET_ID]', '[FILE_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/storage/get-file.md b/docs/examples/1.2.x/server-python/examples/storage/get-file.md deleted file mode 100644 index 818acf24a7..0000000000 --- a/docs/examples/1.2.x/server-python/examples/storage/get-file.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.get_file('[BUCKET_ID]', '[FILE_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-python/examples/storage/list-buckets.md deleted file mode 100644 index 7dde490e0c..0000000000 --- a/docs/examples/1.2.x/server-python/examples/storage/list-buckets.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.list_buckets() diff --git a/docs/examples/1.2.x/server-python/examples/storage/list-files.md b/docs/examples/1.2.x/server-python/examples/storage/list-files.md deleted file mode 100644 index 4c9891a9eb..0000000000 --- a/docs/examples/1.2.x/server-python/examples/storage/list-files.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.list_files('[BUCKET_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-python/examples/storage/update-bucket.md deleted file mode 100644 index 2bcc18e25a..0000000000 --- a/docs/examples/1.2.x/server-python/examples/storage/update-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.update_bucket('[BUCKET_ID]', '[NAME]') diff --git a/docs/examples/1.2.x/server-python/examples/storage/update-file.md b/docs/examples/1.2.x/server-python/examples/storage/update-file.md deleted file mode 100644 index 09d371a6ca..0000000000 --- a/docs/examples/1.2.x/server-python/examples/storage/update-file.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.storage import Storage - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -storage = Storage(client) - -result = storage.update_file('[BUCKET_ID]', '[FILE_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/teams/create-membership.md b/docs/examples/1.2.x/server-python/examples/teams/create-membership.md deleted file mode 100644 index 9e2c832b3c..0000000000 --- a/docs/examples/1.2.x/server-python/examples/teams/create-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.create_membership('[TEAM_ID]', 'email@example.com', [], 'https://example.com') diff --git a/docs/examples/1.2.x/server-python/examples/teams/create.md b/docs/examples/1.2.x/server-python/examples/teams/create.md deleted file mode 100644 index 36b4494e11..0000000000 --- a/docs/examples/1.2.x/server-python/examples/teams/create.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.create('[TEAM_ID]', '[NAME]') diff --git a/docs/examples/1.2.x/server-python/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-python/examples/teams/delete-membership.md deleted file mode 100644 index 50c259a52d..0000000000 --- a/docs/examples/1.2.x/server-python/examples/teams/delete-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.delete_membership('[TEAM_ID]', '[MEMBERSHIP_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/teams/delete.md b/docs/examples/1.2.x/server-python/examples/teams/delete.md deleted file mode 100644 index 8fb037cd4a..0000000000 --- a/docs/examples/1.2.x/server-python/examples/teams/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.delete('[TEAM_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/teams/get-membership.md b/docs/examples/1.2.x/server-python/examples/teams/get-membership.md deleted file mode 100644 index 2586e943f9..0000000000 --- a/docs/examples/1.2.x/server-python/examples/teams/get-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.get_membership('[TEAM_ID]', '[MEMBERSHIP_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/teams/get.md b/docs/examples/1.2.x/server-python/examples/teams/get.md deleted file mode 100644 index 6c2b404517..0000000000 --- a/docs/examples/1.2.x/server-python/examples/teams/get.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.get('[TEAM_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-python/examples/teams/list-memberships.md deleted file mode 100644 index 4535e57b60..0000000000 --- a/docs/examples/1.2.x/server-python/examples/teams/list-memberships.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.list_memberships('[TEAM_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/teams/list.md b/docs/examples/1.2.x/server-python/examples/teams/list.md deleted file mode 100644 index c538aea340..0000000000 --- a/docs/examples/1.2.x/server-python/examples/teams/list.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.list() diff --git a/docs/examples/1.2.x/server-python/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-python/examples/teams/update-membership-roles.md deleted file mode 100644 index d637dd6e9c..0000000000 --- a/docs/examples/1.2.x/server-python/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.update_membership_roles('[TEAM_ID]', '[MEMBERSHIP_ID]', []) diff --git a/docs/examples/1.2.x/server-python/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-python/examples/teams/update-membership-status.md deleted file mode 100644 index 357d4091c4..0000000000 --- a/docs/examples/1.2.x/server-python/examples/teams/update-membership-status.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token -) - -teams = Teams(client) - -result = teams.update_membership_status('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]') diff --git a/docs/examples/1.2.x/server-python/examples/teams/update.md b/docs/examples/1.2.x/server-python/examples/teams/update.md deleted file mode 100644 index 2b9c222be0..0000000000 --- a/docs/examples/1.2.x/server-python/examples/teams/update.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.teams import Teams - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -teams = Teams(client) - -result = teams.update('[TEAM_ID]', '[NAME]') diff --git a/docs/examples/1.2.x/server-python/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-python/examples/users/create-argon2user.md deleted file mode 100644 index ac7fafb787..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/create-argon2user.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.create_argon2_user('[USER_ID]', 'email@example.com', 'password') diff --git a/docs/examples/1.2.x/server-python/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-python/examples/users/create-bcrypt-user.md deleted file mode 100644 index e30c7431e2..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.create_bcrypt_user('[USER_ID]', 'email@example.com', 'password') diff --git a/docs/examples/1.2.x/server-python/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-python/examples/users/create-m-d5user.md deleted file mode 100644 index b235a0104b..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/create-m-d5user.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.create_md5_user('[USER_ID]', 'email@example.com', 'password') diff --git a/docs/examples/1.2.x/server-python/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-python/examples/users/create-p-h-pass-user.md deleted file mode 100644 index 5fca1ab89b..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.create_ph_pass_user('[USER_ID]', 'email@example.com', 'password') diff --git a/docs/examples/1.2.x/server-python/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-python/examples/users/create-s-h-a-user.md deleted file mode 100644 index fe42af4272..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.create_sha_user('[USER_ID]', 'email@example.com', 'password') diff --git a/docs/examples/1.2.x/server-python/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-python/examples/users/create-scrypt-modified-user.md deleted file mode 100644 index d83a4e7075..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/create-scrypt-modified-user.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.create_scrypt_modified_user('[USER_ID]', 'email@example.com', 'password', '[PASSWORD_SALT]', '[PASSWORD_SALT_SEPARATOR]', '[PASSWORD_SIGNER_KEY]') diff --git a/docs/examples/1.2.x/server-python/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-python/examples/users/create-scrypt-user.md deleted file mode 100644 index 3669358d3a..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/create-scrypt-user.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.create_scrypt_user('[USER_ID]', 'email@example.com', 'password', '[PASSWORD_SALT]', None, None, None, None) diff --git a/docs/examples/1.2.x/server-python/examples/users/create.md b/docs/examples/1.2.x/server-python/examples/users/create.md deleted file mode 100644 index 5057d731c8..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/create.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.create('[USER_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/users/delete-session.md b/docs/examples/1.2.x/server-python/examples/users/delete-session.md deleted file mode 100644 index d25cfb3abc..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/delete-session.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.delete_session('[USER_ID]', '[SESSION_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-python/examples/users/delete-sessions.md deleted file mode 100644 index 9b24db1b5c..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/delete-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.delete_sessions('[USER_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/users/delete.md b/docs/examples/1.2.x/server-python/examples/users/delete.md deleted file mode 100644 index 820eead71f..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.delete('[USER_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/users/get-prefs.md b/docs/examples/1.2.x/server-python/examples/users/get-prefs.md deleted file mode 100644 index 9ef100f9e6..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/get-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.get_prefs('[USER_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/users/get.md b/docs/examples/1.2.x/server-python/examples/users/get.md deleted file mode 100644 index c11f96e64b..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/get.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.get('[USER_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/users/list-logs.md b/docs/examples/1.2.x/server-python/examples/users/list-logs.md deleted file mode 100644 index 53560b4906..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/list-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.list_logs('[USER_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/users/list-memberships.md b/docs/examples/1.2.x/server-python/examples/users/list-memberships.md deleted file mode 100644 index 2f729cc93d..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/list-memberships.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.list_memberships('[USER_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/users/list-sessions.md b/docs/examples/1.2.x/server-python/examples/users/list-sessions.md deleted file mode 100644 index 4fada3d185..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/list-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.list_sessions('[USER_ID]') diff --git a/docs/examples/1.2.x/server-python/examples/users/list.md b/docs/examples/1.2.x/server-python/examples/users/list.md deleted file mode 100644 index c4a66e42d2..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/list.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.list() diff --git a/docs/examples/1.2.x/server-python/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-python/examples/users/update-email-verification.md deleted file mode 100644 index 6dc343b94c..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/update-email-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.update_email_verification('[USER_ID]', False) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-email.md b/docs/examples/1.2.x/server-python/examples/users/update-email.md deleted file mode 100644 index 1803623f8f..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/update-email.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.update_email('[USER_ID]', 'email@example.com') diff --git a/docs/examples/1.2.x/server-python/examples/users/update-name.md b/docs/examples/1.2.x/server-python/examples/users/update-name.md deleted file mode 100644 index 728940d2a0..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/update-name.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.update_name('[USER_ID]', '[NAME]') diff --git a/docs/examples/1.2.x/server-python/examples/users/update-password.md b/docs/examples/1.2.x/server-python/examples/users/update-password.md deleted file mode 100644 index 56b15e7dba..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/update-password.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.update_password('[USER_ID]', 'password') diff --git a/docs/examples/1.2.x/server-python/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-python/examples/users/update-phone-verification.md deleted file mode 100644 index f5f63495f8..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/update-phone-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.update_phone_verification('[USER_ID]', False) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-phone.md b/docs/examples/1.2.x/server-python/examples/users/update-phone.md deleted file mode 100644 index 6c89c4e725..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/update-phone.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.update_phone('[USER_ID]', '') diff --git a/docs/examples/1.2.x/server-python/examples/users/update-prefs.md b/docs/examples/1.2.x/server-python/examples/users/update-prefs.md deleted file mode 100644 index 7e0fe7c35a..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/update-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.update_prefs('[USER_ID]', {}) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-status.md b/docs/examples/1.2.x/server-python/examples/users/update-status.md deleted file mode 100644 index 55b32b1c1c..0000000000 --- a/docs/examples/1.2.x/server-python/examples/users/update-status.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() - -(client - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key -) - -users = Users(client) - -result = users.update_status('[USER_ID]', False) diff --git a/docs/examples/1.2.x/server-ruby/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-ruby/examples/account/create-phone-verification.md deleted file mode 100644 index 5e50ef27d5..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/create-phone-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.create_phone_verification() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/create-recovery.md b/docs/examples/1.2.x/server-ruby/examples/account/create-recovery.md deleted file mode 100644 index e1f36e4f89..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/create-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.create_recovery(email: 'email@example.com', url: 'https://example.com') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/create-verification.md b/docs/examples/1.2.x/server-ruby/examples/account/create-verification.md deleted file mode 100644 index a509232d44..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/create-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.create_verification(url: 'https://example.com') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/delete-session.md b/docs/examples/1.2.x/server-ruby/examples/account/delete-session.md deleted file mode 100644 index 4d859bae5c..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/delete-session.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.delete_session(session_id: '[SESSION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-ruby/examples/account/delete-sessions.md deleted file mode 100644 index 09c499ce02..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/delete-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.delete_sessions() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/get-prefs.md b/docs/examples/1.2.x/server-ruby/examples/account/get-prefs.md deleted file mode 100644 index 7598c095eb..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/get-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.get_prefs() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/get-session.md b/docs/examples/1.2.x/server-ruby/examples/account/get-session.md deleted file mode 100644 index 1bc36571bf..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/get-session.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.get_session(session_id: '[SESSION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/get.md b/docs/examples/1.2.x/server-ruby/examples/account/get.md deleted file mode 100644 index e19a708f22..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/get.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.get() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/list-logs.md b/docs/examples/1.2.x/server-ruby/examples/account/list-logs.md deleted file mode 100644 index 7eaa08ee89..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/list-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.list_logs() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/list-sessions.md b/docs/examples/1.2.x/server-ruby/examples/account/list-sessions.md deleted file mode 100644 index d2764ffebb..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/list-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.list_sessions() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-email.md b/docs/examples/1.2.x/server-ruby/examples/account/update-email.md deleted file mode 100644 index da0d3ff204..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-email.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.update_email(email: 'email@example.com', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-name.md b/docs/examples/1.2.x/server-ruby/examples/account/update-name.md deleted file mode 100644 index 7402945e40..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-name.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.update_name(name: '[NAME]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-password.md b/docs/examples/1.2.x/server-ruby/examples/account/update-password.md deleted file mode 100644 index 4881f3edec..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-password.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.update_password(password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-ruby/examples/account/update-phone-verification.md deleted file mode 100644 index a23ffad0b8..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-phone-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.update_phone_verification(user_id: '[USER_ID]', secret: '[SECRET]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-phone.md b/docs/examples/1.2.x/server-ruby/examples/account/update-phone.md deleted file mode 100644 index 8e6130d250..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-phone.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.update_phone(phone: '', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.2.x/server-ruby/examples/account/update-prefs.md deleted file mode 100644 index b46d254f4d..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.update_prefs(prefs: {}) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-recovery.md b/docs/examples/1.2.x/server-ruby/examples/account/update-recovery.md deleted file mode 100644 index 60167283b8..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.update_recovery(user_id: '[USER_ID]', secret: '[SECRET]', password: 'password', password_again: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-session.md b/docs/examples/1.2.x/server-ruby/examples/account/update-session.md deleted file mode 100644 index bc6935e34a..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-session.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.update_session(session_id: '[SESSION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-status.md b/docs/examples/1.2.x/server-ruby/examples/account/update-status.md deleted file mode 100644 index bf17db5607..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-status.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.update_status() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-verification.md b/docs/examples/1.2.x/server-ruby/examples/account/update-verification.md deleted file mode 100644 index 4a5379e88b..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -account = Account.new(client) - -response = account.update_verification(user_id: '[USER_ID]', secret: '[SECRET]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-browser.md deleted file mode 100644 index 4ed59eab7b..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-browser.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -avatars = Avatars.new(client) - -response = avatars.get_browser(code: 'aa') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-credit-card.md deleted file mode 100644 index ba0dc4ab89..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -avatars = Avatars.new(client) - -response = avatars.get_credit_card(code: 'amex') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-favicon.md deleted file mode 100644 index 660e92e7d9..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-favicon.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -avatars = Avatars.new(client) - -response = avatars.get_favicon(url: 'https://example.com') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-flag.md deleted file mode 100644 index 7e31b83e05..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-flag.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -avatars = Avatars.new(client) - -response = avatars.get_flag(code: 'af') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-image.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-image.md deleted file mode 100644 index 052116e6d3..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-image.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -avatars = Avatars.new(client) - -response = avatars.get_image(url: 'https://example.com') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-initials.md deleted file mode 100644 index 73fd108edb..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-initials.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -avatars = Avatars.new(client) - -response = avatars.get_initials() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-q-r.md deleted file mode 100644 index b8dbdf5a42..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-q-r.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -avatars = Avatars.new(client) - -response = avatars.get_qr(text: '[TEXT]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-boolean-attribute.md deleted file mode 100644 index be16c663db..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-boolean-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.create_boolean_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-collection.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-collection.md deleted file mode 100644 index 1af359a2f7..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.create_collection(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', name: '[NAME]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-datetime-attribute.md deleted file mode 100644 index 98c71de611..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-datetime-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.create_datetime_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-document.md deleted file mode 100644 index b0d78bb82a..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-document.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.create_document(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]', data: {}) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-email-attribute.md deleted file mode 100644 index 69cd432efe..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-email-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.create_email_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-enum-attribute.md deleted file mode 100644 index ea7b682dfd..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-enum-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.create_enum_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', elements: [], required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-float-attribute.md deleted file mode 100644 index 21e0863a1e..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-float-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.create_float_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-index.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-index.md deleted file mode 100644 index 8837318022..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-index.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.create_index(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', type: 'key', attributes: []) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-integer-attribute.md deleted file mode 100644 index 8be1591d37..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-integer-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.create_integer_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-ip-attribute.md deleted file mode 100644 index 4d46dda3c2..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-ip-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.create_ip_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-string-attribute.md deleted file mode 100644 index 1fefd17436..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-string-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.create_string_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', size: 1, required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-url-attribute.md deleted file mode 100644 index 219be8cbe8..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-url-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.create_url_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '', required: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create.md b/docs/examples/1.2.x/server-ruby/examples/databases/create.md deleted file mode 100644 index b796569529..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.create(database_id: '[DATABASE_ID]', name: '[NAME]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/delete-attribute.md deleted file mode 100644 index bdce06e259..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/delete-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.delete_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-ruby/examples/databases/delete-collection.md deleted file mode 100644 index c8c715ef98..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/delete-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.delete_collection(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/delete-document.md b/docs/examples/1.2.x/server-ruby/examples/databases/delete-document.md deleted file mode 100644 index f5546021ec..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/delete-document.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.delete_document(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/delete-index.md b/docs/examples/1.2.x/server-ruby/examples/databases/delete-index.md deleted file mode 100644 index 5667a9a070..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/delete-index.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.delete_index(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/delete.md b/docs/examples/1.2.x/server-ruby/examples/databases/delete.md deleted file mode 100644 index b8a0196dba..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.delete(database_id: '[DATABASE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/get-attribute.md deleted file mode 100644 index eec1ecb718..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/get-attribute.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.get_attribute(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/get-collection.md b/docs/examples/1.2.x/server-ruby/examples/databases/get-collection.md deleted file mode 100644 index febac087a2..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/get-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.get_collection(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/get-document.md b/docs/examples/1.2.x/server-ruby/examples/databases/get-document.md deleted file mode 100644 index 00e99e7d3f..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/get-document.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.get_document(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/get-index.md b/docs/examples/1.2.x/server-ruby/examples/databases/get-index.md deleted file mode 100644 index 6e84826be0..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/get-index.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.get_index(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', key: '') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/get.md b/docs/examples/1.2.x/server-ruby/examples/databases/get.md deleted file mode 100644 index d931a4e52d..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/get.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.get(database_id: '[DATABASE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-ruby/examples/databases/list-attributes.md deleted file mode 100644 index b2c5a29be7..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/list-attributes.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.list_attributes(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/list-collections.md b/docs/examples/1.2.x/server-ruby/examples/databases/list-collections.md deleted file mode 100644 index f0cebcf6de..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/list-collections.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.list_collections(database_id: '[DATABASE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/list-documents.md b/docs/examples/1.2.x/server-ruby/examples/databases/list-documents.md deleted file mode 100644 index be85c8ce32..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/list-documents.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.list_documents(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-ruby/examples/databases/list-indexes.md deleted file mode 100644 index b5f6fdbd17..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/list-indexes.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.list_indexes(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/list.md b/docs/examples/1.2.x/server-ruby/examples/databases/list.md deleted file mode 100644 index e7c31b2e4d..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/list.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.list() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/update-collection.md b/docs/examples/1.2.x/server-ruby/examples/databases/update-collection.md deleted file mode 100644 index a000de6255..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/update-collection.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.update_collection(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', name: '[NAME]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/update-document.md b/docs/examples/1.2.x/server-ruby/examples/databases/update-document.md deleted file mode 100644 index 49efd38f5e..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/update-document.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.update_document(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/update.md b/docs/examples/1.2.x/server-ruby/examples/databases/update.md deleted file mode 100644 index 8c4f6fc2eb..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/databases/update.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -databases = Databases.new(client) - -response = databases.update(database_id: '[DATABASE_ID]', name: '[NAME]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/create-build.md b/docs/examples/1.2.x/server-ruby/examples/functions/create-build.md deleted file mode 100644 index e649c9d587..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/create-build.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.create_build(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]', build_id: '[BUILD_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-ruby/examples/functions/create-deployment.md deleted file mode 100644 index c6badb90a1..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/create-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.create_deployment(function_id: '[FUNCTION_ID]', entrypoint: '[ENTRYPOINT]', code: InputFile.from_path('dir/file.png'), activate: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.2.x/server-ruby/examples/functions/create-execution.md deleted file mode 100644 index 13975d52e0..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/create-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.create_execution(function_id: '[FUNCTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/create-variable.md b/docs/examples/1.2.x/server-ruby/examples/functions/create-variable.md deleted file mode 100644 index fe5255e163..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/create-variable.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.create_variable(function_id: '[FUNCTION_ID]', key: '[KEY]', value: '[VALUE]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/create.md b/docs/examples/1.2.x/server-ruby/examples/functions/create.md deleted file mode 100644 index 9f050822ae..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/create.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.create(function_id: '[FUNCTION_ID]', name: '[NAME]', execute: ["any"], runtime: 'node-14.5') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-ruby/examples/functions/delete-deployment.md deleted file mode 100644 index bdfb993557..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/delete-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.delete_deployment(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-ruby/examples/functions/delete-variable.md deleted file mode 100644 index d4fe9b8331..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/delete-variable.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.delete_variable(function_id: '[FUNCTION_ID]', variable_id: '[VARIABLE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/delete.md b/docs/examples/1.2.x/server-ruby/examples/functions/delete.md deleted file mode 100644 index b35ee4417e..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.delete(function_id: '[FUNCTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-ruby/examples/functions/get-deployment.md deleted file mode 100644 index fb4dfc9373..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/get-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.get_deployment(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/get-execution.md b/docs/examples/1.2.x/server-ruby/examples/functions/get-execution.md deleted file mode 100644 index ca00a80a33..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/get-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.get_execution(function_id: '[FUNCTION_ID]', execution_id: '[EXECUTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/get-variable.md b/docs/examples/1.2.x/server-ruby/examples/functions/get-variable.md deleted file mode 100644 index 2a170c4517..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/get-variable.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.get_variable(function_id: '[FUNCTION_ID]', variable_id: '[VARIABLE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/get.md b/docs/examples/1.2.x/server-ruby/examples/functions/get.md deleted file mode 100644 index 903bc3b96b..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/get.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.get(function_id: '[FUNCTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-ruby/examples/functions/list-deployments.md deleted file mode 100644 index 2e25acd729..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/list-deployments.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.list_deployments(function_id: '[FUNCTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/list-executions.md b/docs/examples/1.2.x/server-ruby/examples/functions/list-executions.md deleted file mode 100644 index 2f2e6c637a..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/list-executions.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.list_executions(function_id: '[FUNCTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-ruby/examples/functions/list-runtimes.md deleted file mode 100644 index 7105bb3701..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/list-runtimes.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.list_runtimes() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/list-variables.md b/docs/examples/1.2.x/server-ruby/examples/functions/list-variables.md deleted file mode 100644 index 531a8d10e4..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/list-variables.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.list_variables(function_id: '[FUNCTION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/list.md b/docs/examples/1.2.x/server-ruby/examples/functions/list.md deleted file mode 100644 index 7420f37093..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/list.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.list() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-ruby/examples/functions/update-deployment.md deleted file mode 100644 index 3d6cefdebb..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/update-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.update_deployment(function_id: '[FUNCTION_ID]', deployment_id: '[DEPLOYMENT_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/update-variable.md b/docs/examples/1.2.x/server-ruby/examples/functions/update-variable.md deleted file mode 100644 index d8943d30f5..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/update-variable.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.update_variable(function_id: '[FUNCTION_ID]', variable_id: '[VARIABLE_ID]', key: '[KEY]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/update.md b/docs/examples/1.2.x/server-ruby/examples/functions/update.md deleted file mode 100644 index 83a80a7562..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/functions/update.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -functions = Functions.new(client) - -response = functions.update(function_id: '[FUNCTION_ID]', name: '[NAME]', execute: ["any"]) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/graphql/get.md b/docs/examples/1.2.x/server-ruby/examples/graphql/get.md deleted file mode 100644 index 65dee1de58..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/graphql/get.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -graphql = Graphql.new(client) - -response = graphql.get(query: '[QUERY]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/graphql/post.md b/docs/examples/1.2.x/server-ruby/examples/graphql/post.md deleted file mode 100644 index 8c3b000196..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/graphql/post.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -graphql = Graphql.new(client) - -response = graphql.post(query: {}) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-ruby/examples/health/get-antivirus.md deleted file mode 100644 index 158404337f..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-antivirus.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Health.new(client) - -response = health.get_antivirus() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-cache.md b/docs/examples/1.2.x/server-ruby/examples/health/get-cache.md deleted file mode 100644 index 4af13dbe3d..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-cache.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Health.new(client) - -response = health.get_cache() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-d-b.md b/docs/examples/1.2.x/server-ruby/examples/health/get-d-b.md deleted file mode 100644 index 4d27307304..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-d-b.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Health.new(client) - -response = health.get_db() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-certificates.md deleted file mode 100644 index 44e7a801a3..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Health.new(client) - -response = health.get_queue_certificates() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-functions.md deleted file mode 100644 index 72e3b89fed..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-functions.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Health.new(client) - -response = health.get_queue_functions() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-logs.md deleted file mode 100644 index 32f91c7bd0..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Health.new(client) - -response = health.get_queue_logs() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-webhooks.md deleted file mode 100644 index 97ee084873..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Health.new(client) - -response = health.get_queue_webhooks() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-ruby/examples/health/get-storage-local.md deleted file mode 100644 index 9d34319168..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-storage-local.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Health.new(client) - -response = health.get_storage_local() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-time.md b/docs/examples/1.2.x/server-ruby/examples/health/get-time.md deleted file mode 100644 index 4ff3c3d139..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-time.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Health.new(client) - -response = health.get_time() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get.md b/docs/examples/1.2.x/server-ruby/examples/health/get.md deleted file mode 100644 index 0503ed6698..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/health/get.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -health = Health.new(client) - -response = health.get() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/get.md b/docs/examples/1.2.x/server-ruby/examples/locale/get.md deleted file mode 100644 index 462a342a87..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/locale/get.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -locale = Locale.new(client) - -response = locale.get() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-continents.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-continents.md deleted file mode 100644 index 9cee3229c0..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-continents.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -locale = Locale.new(client) - -response = locale.list_continents() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-e-u.md deleted file mode 100644 index 7773378c8e..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-e-u.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -locale = Locale.new(client) - -response = locale.list_countries_eu() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-phones.md deleted file mode 100644 index 801e91ae12..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-phones.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -locale = Locale.new(client) - -response = locale.list_countries_phones() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-countries.md deleted file mode 100644 index 4a3c4e5cd7..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -locale = Locale.new(client) - -response = locale.list_countries() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-currencies.md deleted file mode 100644 index 79ad3f5c95..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-currencies.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -locale = Locale.new(client) - -response = locale.list_currencies() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-languages.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-languages.md deleted file mode 100644 index c3d591723b..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-languages.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -locale = Locale.new(client) - -response = locale.list_languages() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-ruby/examples/storage/create-bucket.md deleted file mode 100644 index 6e0549ac11..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/storage/create-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Storage.new(client) - -response = storage.create_bucket(bucket_id: '[BUCKET_ID]', name: '[NAME]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/create-file.md b/docs/examples/1.2.x/server-ruby/examples/storage/create-file.md deleted file mode 100644 index 23417325da..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/storage/create-file.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Storage.new(client) - -response = storage.create_file(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]', file: InputFile.from_path('dir/file.png')) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-ruby/examples/storage/delete-bucket.md deleted file mode 100644 index cfb4f42b50..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/storage/delete-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Storage.new(client) - -response = storage.delete_bucket(bucket_id: '[BUCKET_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/delete-file.md b/docs/examples/1.2.x/server-ruby/examples/storage/delete-file.md deleted file mode 100644 index 2c53fec046..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/storage/delete-file.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Storage.new(client) - -response = storage.delete_file(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-ruby/examples/storage/get-bucket.md deleted file mode 100644 index 20a208b5bd..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/storage/get-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Storage.new(client) - -response = storage.get_bucket(bucket_id: '[BUCKET_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-ruby/examples/storage/get-file-download.md deleted file mode 100644 index f41355ec01..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-download.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Storage.new(client) - -response = storage.get_file_download(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-ruby/examples/storage/get-file-preview.md deleted file mode 100644 index fd11425a51..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-preview.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Storage.new(client) - -response = storage.get_file_preview(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-ruby/examples/storage/get-file-view.md deleted file mode 100644 index 8a271ba4b1..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-view.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Storage.new(client) - -response = storage.get_file_view(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/get-file.md b/docs/examples/1.2.x/server-ruby/examples/storage/get-file.md deleted file mode 100644 index d59c322114..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/storage/get-file.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Storage.new(client) - -response = storage.get_file(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-ruby/examples/storage/list-buckets.md deleted file mode 100644 index d72f0a96fe..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/storage/list-buckets.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Storage.new(client) - -response = storage.list_buckets() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/list-files.md b/docs/examples/1.2.x/server-ruby/examples/storage/list-files.md deleted file mode 100644 index 6412bc5821..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/storage/list-files.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Storage.new(client) - -response = storage.list_files(bucket_id: '[BUCKET_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-ruby/examples/storage/update-bucket.md deleted file mode 100644 index 3a4ab5f3f7..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/storage/update-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Storage.new(client) - -response = storage.update_bucket(bucket_id: '[BUCKET_ID]', name: '[NAME]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/update-file.md b/docs/examples/1.2.x/server-ruby/examples/storage/update-file.md deleted file mode 100644 index 6d4c635ccf..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/storage/update-file.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -storage = Storage.new(client) - -response = storage.update_file(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/create-membership.md b/docs/examples/1.2.x/server-ruby/examples/teams/create-membership.md deleted file mode 100644 index 23b4576144..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/teams/create-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Teams.new(client) - -response = teams.create_membership(team_id: '[TEAM_ID]', email: 'email@example.com', roles: [], url: 'https://example.com') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/create.md b/docs/examples/1.2.x/server-ruby/examples/teams/create.md deleted file mode 100644 index 832463a84a..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/teams/create.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Teams.new(client) - -response = teams.create(team_id: '[TEAM_ID]', name: '[NAME]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-ruby/examples/teams/delete-membership.md deleted file mode 100644 index 3922ef390e..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/teams/delete-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Teams.new(client) - -response = teams.delete_membership(team_id: '[TEAM_ID]', membership_id: '[MEMBERSHIP_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/delete.md b/docs/examples/1.2.x/server-ruby/examples/teams/delete.md deleted file mode 100644 index 8aff3ca24c..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/teams/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Teams.new(client) - -response = teams.delete(team_id: '[TEAM_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/get-membership.md b/docs/examples/1.2.x/server-ruby/examples/teams/get-membership.md deleted file mode 100644 index ff3928f886..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/teams/get-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Teams.new(client) - -response = teams.get_membership(team_id: '[TEAM_ID]', membership_id: '[MEMBERSHIP_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/get.md b/docs/examples/1.2.x/server-ruby/examples/teams/get.md deleted file mode 100644 index 94c6658baf..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/teams/get.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Teams.new(client) - -response = teams.get(team_id: '[TEAM_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-ruby/examples/teams/list-memberships.md deleted file mode 100644 index 628519a85b..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/teams/list-memberships.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Teams.new(client) - -response = teams.list_memberships(team_id: '[TEAM_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/list.md b/docs/examples/1.2.x/server-ruby/examples/teams/list.md deleted file mode 100644 index 3c322fce1b..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/teams/list.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Teams.new(client) - -response = teams.list() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-roles.md deleted file mode 100644 index 0dbd62fb98..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Teams.new(client) - -response = teams.update_membership_roles(team_id: '[TEAM_ID]', membership_id: '[MEMBERSHIP_ID]', roles: []) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-status.md deleted file mode 100644 index 3e3815948e..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-status.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token - -teams = Teams.new(client) - -response = teams.update_membership_status(team_id: '[TEAM_ID]', membership_id: '[MEMBERSHIP_ID]', user_id: '[USER_ID]', secret: '[SECRET]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/update.md b/docs/examples/1.2.x/server-ruby/examples/teams/update.md deleted file mode 100644 index 55851a5bf6..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/teams/update.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -teams = Teams.new(client) - -response = teams.update(team_id: '[TEAM_ID]', name: '[NAME]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-argon2user.md deleted file mode 100644 index 5b7b5a27da..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-argon2user.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.create_argon2_user(user_id: '[USER_ID]', email: 'email@example.com', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-bcrypt-user.md deleted file mode 100644 index 58225a78c9..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.create_bcrypt_user(user_id: '[USER_ID]', email: 'email@example.com', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-m-d5user.md deleted file mode 100644 index 2d5c8655b9..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-m-d5user.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.create_md5_user(user_id: '[USER_ID]', email: 'email@example.com', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-p-h-pass-user.md deleted file mode 100644 index cbfbf9824b..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.create_ph_pass_user(user_id: '[USER_ID]', email: 'email@example.com', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-s-h-a-user.md deleted file mode 100644 index 5da5147d8f..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.create_sha_user(user_id: '[USER_ID]', email: 'email@example.com', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-modified-user.md deleted file mode 100644 index 3ab9a205d1..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-modified-user.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.create_scrypt_modified_user(user_id: '[USER_ID]', email: 'email@example.com', password: 'password', password_salt: '[PASSWORD_SALT]', password_salt_separator: '[PASSWORD_SALT_SEPARATOR]', password_signer_key: '[PASSWORD_SIGNER_KEY]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-user.md deleted file mode 100644 index 552f2a3c61..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-user.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.create_scrypt_user(user_id: '[USER_ID]', email: 'email@example.com', password: 'password', password_salt: '[PASSWORD_SALT]', password_cpu: null, password_memory: null, password_parallel: null, password_length: null) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create.md b/docs/examples/1.2.x/server-ruby/examples/users/create.md deleted file mode 100644 index a10b659e3e..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/create.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.create(user_id: '[USER_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/delete-session.md b/docs/examples/1.2.x/server-ruby/examples/users/delete-session.md deleted file mode 100644 index a1a8ce6cb0..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/delete-session.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.delete_session(user_id: '[USER_ID]', session_id: '[SESSION_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-ruby/examples/users/delete-sessions.md deleted file mode 100644 index d978697fd4..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/delete-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.delete_sessions(user_id: '[USER_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/delete.md b/docs/examples/1.2.x/server-ruby/examples/users/delete.md deleted file mode 100644 index ea45cec451..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.delete(user_id: '[USER_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/get-prefs.md b/docs/examples/1.2.x/server-ruby/examples/users/get-prefs.md deleted file mode 100644 index 58d2e943ad..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/get-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.get_prefs(user_id: '[USER_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/get.md b/docs/examples/1.2.x/server-ruby/examples/users/get.md deleted file mode 100644 index 9a2fd04d31..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/get.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.get(user_id: '[USER_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/list-logs.md b/docs/examples/1.2.x/server-ruby/examples/users/list-logs.md deleted file mode 100644 index 53b5139f53..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/list-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.list_logs(user_id: '[USER_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/list-memberships.md b/docs/examples/1.2.x/server-ruby/examples/users/list-memberships.md deleted file mode 100644 index 655db8b294..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/list-memberships.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.list_memberships(user_id: '[USER_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/list-sessions.md b/docs/examples/1.2.x/server-ruby/examples/users/list-sessions.md deleted file mode 100644 index 6eb4229f5b..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/list-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.list_sessions(user_id: '[USER_ID]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/list.md b/docs/examples/1.2.x/server-ruby/examples/users/list.md deleted file mode 100644 index 474ed2cbe5..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/list.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.list() - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-ruby/examples/users/update-email-verification.md deleted file mode 100644 index 350d7867e6..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-email-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.update_email_verification(user_id: '[USER_ID]', email_verification: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-email.md b/docs/examples/1.2.x/server-ruby/examples/users/update-email.md deleted file mode 100644 index db33e491e2..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-email.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.update_email(user_id: '[USER_ID]', email: 'email@example.com') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-name.md b/docs/examples/1.2.x/server-ruby/examples/users/update-name.md deleted file mode 100644 index 7b25fdc368..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-name.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.update_name(user_id: '[USER_ID]', name: '[NAME]') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-password.md b/docs/examples/1.2.x/server-ruby/examples/users/update-password.md deleted file mode 100644 index a423aa258d..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-password.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.update_password(user_id: '[USER_ID]', password: 'password') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-ruby/examples/users/update-phone-verification.md deleted file mode 100644 index b04b8cbca2..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-phone-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.update_phone_verification(user_id: '[USER_ID]', phone_verification: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-phone.md b/docs/examples/1.2.x/server-ruby/examples/users/update-phone.md deleted file mode 100644 index 719e228196..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-phone.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.update_phone(user_id: '[USER_ID]', number: '') - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-prefs.md b/docs/examples/1.2.x/server-ruby/examples/users/update-prefs.md deleted file mode 100644 index 31e6b8accc..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.update_prefs(user_id: '[USER_ID]', prefs: {}) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-status.md b/docs/examples/1.2.x/server-ruby/examples/users/update-status.md deleted file mode 100644 index 960a8ca95b..0000000000 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-status.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'Appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key - -users = Users.new(client) - -response = users.update_status(user_id: '[USER_ID]', status: false) - -puts response.inspect \ No newline at end of file diff --git a/docs/examples/1.2.x/server-swift/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-swift/examples/account/create-phone-verification.md deleted file mode 100644 index 79b76da109..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/create-phone-verification.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let token = try await account.createPhoneVerification() - - print(String(describing: token) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/create-recovery.md b/docs/examples/1.2.x/server-swift/examples/account/create-recovery.md deleted file mode 100644 index e0048ea302..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/create-recovery.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let token = try await account.createRecovery( - email: "email@example.com", - url: "https://example.com" - ) - - print(String(describing: token) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/create-verification.md b/docs/examples/1.2.x/server-swift/examples/account/create-verification.md deleted file mode 100644 index 530dc6638d..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/create-verification.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let token = try await account.createVerification( - url: "https://example.com" - ) - - print(String(describing: token) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/delete-session.md b/docs/examples/1.2.x/server-swift/examples/account/delete-session.md deleted file mode 100644 index 38cdf4ac38..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/delete-session.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let result = try await account.deleteSession( - sessionId: "[SESSION_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-swift/examples/account/delete-sessions.md deleted file mode 100644 index 3ea9dc10d8..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/delete-sessions.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let result = try await account.deleteSessions() - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/get-prefs.md b/docs/examples/1.2.x/server-swift/examples/account/get-prefs.md deleted file mode 100644 index 1585b2b940..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/get-prefs.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let preferences = try await account.getPrefs() - - print(String(describing: preferences) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/get-session.md b/docs/examples/1.2.x/server-swift/examples/account/get-session.md deleted file mode 100644 index d21b42a702..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/get-session.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let session = try await account.getSession( - sessionId: "[SESSION_ID]" - ) - - print(String(describing: session) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/get.md b/docs/examples/1.2.x/server-swift/examples/account/get.md deleted file mode 100644 index ddd54288e9..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/get.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let account = try await account.get() - - print(String(describing: account) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/list-logs.md b/docs/examples/1.2.x/server-swift/examples/account/list-logs.md deleted file mode 100644 index a2ec84cf53..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/list-logs.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let logList = try await account.listLogs() - - print(String(describing: logList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/list-sessions.md b/docs/examples/1.2.x/server-swift/examples/account/list-sessions.md deleted file mode 100644 index 49a90cae72..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/list-sessions.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let sessionList = try await account.listSessions() - - print(String(describing: sessionList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-email.md b/docs/examples/1.2.x/server-swift/examples/account/update-email.md deleted file mode 100644 index ac546af4b3..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/update-email.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let account = try await account.updateEmail( - email: "email@example.com", - password: "password" - ) - - print(String(describing: account) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-name.md b/docs/examples/1.2.x/server-swift/examples/account/update-name.md deleted file mode 100644 index aaaa1c5876..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/update-name.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let account = try await account.updateName( - name: "[NAME]" - ) - - print(String(describing: account) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-password.md b/docs/examples/1.2.x/server-swift/examples/account/update-password.md deleted file mode 100644 index 223891673b..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/update-password.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let account = try await account.updatePassword( - password: "password" - ) - - print(String(describing: account) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-swift/examples/account/update-phone-verification.md deleted file mode 100644 index 47a2d00923..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/update-phone-verification.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let token = try await account.updatePhoneVerification( - userId: "[USER_ID]", - secret: "[SECRET]" - ) - - print(String(describing: token) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-phone.md b/docs/examples/1.2.x/server-swift/examples/account/update-phone.md deleted file mode 100644 index cae64e06c9..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/update-phone.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let account = try await account.updatePhone( - phone: "", - password: "password" - ) - - print(String(describing: account) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.2.x/server-swift/examples/account/update-prefs.md deleted file mode 100644 index 9babfecf18..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/update-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let account = try await account.updatePrefs( - prefs: [:] - ) - - print(String(describing: account) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-recovery.md b/docs/examples/1.2.x/server-swift/examples/account/update-recovery.md deleted file mode 100644 index 2814bf124f..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/update-recovery.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let token = try await account.updateRecovery( - userId: "[USER_ID]", - secret: "[SECRET]", - password: "password", - passwordAgain: "password" - ) - - print(String(describing: token) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-session.md b/docs/examples/1.2.x/server-swift/examples/account/update-session.md deleted file mode 100644 index 8ce9c3ce79..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/update-session.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let session = try await account.updateSession( - sessionId: "[SESSION_ID]" - ) - - print(String(describing: session) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-status.md b/docs/examples/1.2.x/server-swift/examples/account/update-status.md deleted file mode 100644 index eb5a0fee27..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/update-status.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let account = try await account.updateStatus() - - print(String(describing: account) -} diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-verification.md b/docs/examples/1.2.x/server-swift/examples/account/update-verification.md deleted file mode 100644 index b8255614e6..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/account/update-verification.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let account = Account(client) - let token = try await account.updateVerification( - userId: "[USER_ID]", - secret: "[SECRET]" - ) - - print(String(describing: token) -} diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-browser.md deleted file mode 100644 index fe5be8cfa4..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-browser.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let avatars = Avatars(client) - let byteBuffer = try await avatars.getBrowser( - code: "aa" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-credit-card.md deleted file mode 100644 index ad5296d06c..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let avatars = Avatars(client) - let byteBuffer = try await avatars.getCreditCard( - code: "amex" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-favicon.md deleted file mode 100644 index c7cdfa7142..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-favicon.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let avatars = Avatars(client) - let byteBuffer = try await avatars.getFavicon( - url: "https://example.com" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-flag.md deleted file mode 100644 index 7e8e94b4c5..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-flag.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let avatars = Avatars(client) - let byteBuffer = try await avatars.getFlag( - code: "af" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-image.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-image.md deleted file mode 100644 index 63ba881d4b..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-image.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let avatars = Avatars(client) - let byteBuffer = try await avatars.getImage( - url: "https://example.com" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-initials.md deleted file mode 100644 index e783f5b47d..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-initials.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let avatars = Avatars(client) - let byteBuffer = try await avatars.getInitials() - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-q-r.md deleted file mode 100644 index ae8d51c0a3..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-q-r.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let avatars = Avatars(client) - let byteBuffer = try await avatars.getQR( - text: "[TEXT]" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-boolean-attribute.md deleted file mode 100644 index 2e8f78fa8c..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-boolean-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let attributeBoolean = try await databases.createBooleanAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - required: xfalse - ) - - print(String(describing: attributeBoolean) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-collection.md b/docs/examples/1.2.x/server-swift/examples/databases/create-collection.md deleted file mode 100644 index 2f279c853f..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-collection.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let collection = try await databases.createCollection( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - name: "[NAME]" - ) - - print(String(describing: collection) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-datetime-attribute.md deleted file mode 100644 index f2487f996a..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-datetime-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let attributeDatetime = try await databases.createDatetimeAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - required: xfalse - ) - - print(String(describing: attributeDatetime) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-document.md b/docs/examples/1.2.x/server-swift/examples/databases/create-document.md deleted file mode 100644 index b93d97ade2..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-document.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let document = try await databases.createDocument( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]", - data: [:] - ) - - print(String(describing: document) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-email-attribute.md deleted file mode 100644 index c2bcb218dd..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-email-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let attributeEmail = try await databases.createEmailAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - required: xfalse - ) - - print(String(describing: attributeEmail) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-enum-attribute.md deleted file mode 100644 index def8bff0bc..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-enum-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let attributeEnum = try await databases.createEnumAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - elements: [], - required: xfalse - ) - - print(String(describing: attributeEnum) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-float-attribute.md deleted file mode 100644 index bc8c826356..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-float-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let attributeFloat = try await databases.createFloatAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - required: xfalse - ) - - print(String(describing: attributeFloat) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-index.md b/docs/examples/1.2.x/server-swift/examples/databases/create-index.md deleted file mode 100644 index fc85de0092..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-index.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let index = try await databases.createIndex( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - type: "key", - attributes: [] - ) - - print(String(describing: index) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-integer-attribute.md deleted file mode 100644 index d45bc4f4a4..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-integer-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let attributeInteger = try await databases.createIntegerAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - required: xfalse - ) - - print(String(describing: attributeInteger) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-ip-attribute.md deleted file mode 100644 index 971ebcc919..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-ip-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let attributeIp = try await databases.createIpAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - required: xfalse - ) - - print(String(describing: attributeIp) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-string-attribute.md deleted file mode 100644 index 784a859450..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-string-attribute.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let attributeString = try await databases.createStringAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - size: 1, - required: xfalse - ) - - print(String(describing: attributeString) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-url-attribute.md deleted file mode 100644 index 25dcd2a9a6..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-url-attribute.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let attributeUrl = try await databases.createUrlAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "", - required: xfalse - ) - - print(String(describing: attributeUrl) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create.md b/docs/examples/1.2.x/server-swift/examples/databases/create.md deleted file mode 100644 index 5ad5331bf9..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/create.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let database = try await databases.create( - databaseId: "[DATABASE_ID]", - name: "[NAME]" - ) - - print(String(describing: database) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/delete-attribute.md deleted file mode 100644 index 78b4d81fae..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/delete-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let result = try await databases.deleteAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-swift/examples/databases/delete-collection.md deleted file mode 100644 index b35a3e250d..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/delete-collection.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let result = try await databases.deleteCollection( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/delete-document.md b/docs/examples/1.2.x/server-swift/examples/databases/delete-document.md deleted file mode 100644 index 57fb6db16b..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/delete-document.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let result = try await databases.deleteDocument( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/delete-index.md b/docs/examples/1.2.x/server-swift/examples/databases/delete-index.md deleted file mode 100644 index eca8f48319..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/delete-index.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let result = try await databases.deleteIndex( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/delete.md b/docs/examples/1.2.x/server-swift/examples/databases/delete.md deleted file mode 100644 index 0cbfbb2dde..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let result = try await databases.delete( - databaseId: "[DATABASE_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/get-attribute.md deleted file mode 100644 index 7b8c87def4..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/get-attribute.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let result = try await databases.getAttribute( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/get-collection.md b/docs/examples/1.2.x/server-swift/examples/databases/get-collection.md deleted file mode 100644 index c21f6ecd61..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/get-collection.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let collection = try await databases.getCollection( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]" - ) - - print(String(describing: collection) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/get-document.md b/docs/examples/1.2.x/server-swift/examples/databases/get-document.md deleted file mode 100644 index 22f66b3551..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/get-document.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let document = try await databases.getDocument( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]" - ) - - print(String(describing: document) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/get-index.md b/docs/examples/1.2.x/server-swift/examples/databases/get-index.md deleted file mode 100644 index e23bd8109f..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/get-index.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let index = try await databases.getIndex( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - key: "" - ) - - print(String(describing: index) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/get.md b/docs/examples/1.2.x/server-swift/examples/databases/get.md deleted file mode 100644 index 912005d73f..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/get.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let database = try await databases.get( - databaseId: "[DATABASE_ID]" - ) - - print(String(describing: database) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-swift/examples/databases/list-attributes.md deleted file mode 100644 index f7894174d5..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/list-attributes.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let attributeList = try await databases.listAttributes( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]" - ) - - print(String(describing: attributeList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/list-collections.md b/docs/examples/1.2.x/server-swift/examples/databases/list-collections.md deleted file mode 100644 index 8d0e0118ed..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/list-collections.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let collectionList = try await databases.listCollections( - databaseId: "[DATABASE_ID]" - ) - - print(String(describing: collectionList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/list-documents.md b/docs/examples/1.2.x/server-swift/examples/databases/list-documents.md deleted file mode 100644 index bdab597e99..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/list-documents.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let documentList = try await databases.listDocuments( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]" - ) - - print(String(describing: documentList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-swift/examples/databases/list-indexes.md deleted file mode 100644 index 57b5532b8c..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/list-indexes.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let indexList = try await databases.listIndexes( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]" - ) - - print(String(describing: indexList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/list.md b/docs/examples/1.2.x/server-swift/examples/databases/list.md deleted file mode 100644 index f777518fe3..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/list.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let databaseList = try await databases.list() - - print(String(describing: databaseList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/update-collection.md b/docs/examples/1.2.x/server-swift/examples/databases/update-collection.md deleted file mode 100644 index 3861de183a..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/update-collection.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let collection = try await databases.updateCollection( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - name: "[NAME]" - ) - - print(String(describing: collection) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/update-document.md b/docs/examples/1.2.x/server-swift/examples/databases/update-document.md deleted file mode 100644 index 0ab31e301c..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/update-document.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let document = try await databases.updateDocument( - databaseId: "[DATABASE_ID]", - collectionId: "[COLLECTION_ID]", - documentId: "[DOCUMENT_ID]" - ) - - print(String(describing: document) -} diff --git a/docs/examples/1.2.x/server-swift/examples/databases/update.md b/docs/examples/1.2.x/server-swift/examples/databases/update.md deleted file mode 100644 index f33df0b6b4..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/databases/update.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let databases = Databases(client) - let database = try await databases.update( - databaseId: "[DATABASE_ID]", - name: "[NAME]" - ) - - print(String(describing: database) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/create-build.md b/docs/examples/1.2.x/server-swift/examples/functions/create-build.md deleted file mode 100644 index 4e0ed0e2ab..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/create-build.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let result = try await functions.createBuild( - functionId: "[FUNCTION_ID]", - deploymentId: "[DEPLOYMENT_ID]", - buildId: "[BUILD_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-swift/examples/functions/create-deployment.md deleted file mode 100644 index 6ae7f688e6..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/create-deployment.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let deployment = try await functions.createDeployment( - functionId: "[FUNCTION_ID]", - entrypoint: "[ENTRYPOINT]", - code: InputFile.fromPath("file.png"), - activate: xfalse - ) - - print(String(describing: deployment) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/create-execution.md b/docs/examples/1.2.x/server-swift/examples/functions/create-execution.md deleted file mode 100644 index 02dde0c312..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/create-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let execution = try await functions.createExecution( - functionId: "[FUNCTION_ID]" - ) - - print(String(describing: execution) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/create-variable.md b/docs/examples/1.2.x/server-swift/examples/functions/create-variable.md deleted file mode 100644 index 29a221c0e6..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/create-variable.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let variable = try await functions.createVariable( - functionId: "[FUNCTION_ID]", - key: "[KEY]", - value: "[VALUE]" - ) - - print(String(describing: variable) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/create.md b/docs/examples/1.2.x/server-swift/examples/functions/create.md deleted file mode 100644 index 85a456040e..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/create.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let function = try await functions.create( - functionId: "[FUNCTION_ID]", - name: "[NAME]", - execute: ["any"], - runtime: "node-14.5" - ) - - print(String(describing: function) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-swift/examples/functions/delete-deployment.md deleted file mode 100644 index 322c52b7ed..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/delete-deployment.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let result = try await functions.deleteDeployment( - functionId: "[FUNCTION_ID]", - deploymentId: "[DEPLOYMENT_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-swift/examples/functions/delete-variable.md deleted file mode 100644 index 9feb18b3c2..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/delete-variable.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let result = try await functions.deleteVariable( - functionId: "[FUNCTION_ID]", - variableId: "[VARIABLE_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/delete.md b/docs/examples/1.2.x/server-swift/examples/functions/delete.md deleted file mode 100644 index c5628163da..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let result = try await functions.delete( - functionId: "[FUNCTION_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-swift/examples/functions/get-deployment.md deleted file mode 100644 index c5322ee81b..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/get-deployment.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let deployment = try await functions.getDeployment( - functionId: "[FUNCTION_ID]", - deploymentId: "[DEPLOYMENT_ID]" - ) - - print(String(describing: deployment) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/get-execution.md b/docs/examples/1.2.x/server-swift/examples/functions/get-execution.md deleted file mode 100644 index d5bcf092ac..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/get-execution.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let execution = try await functions.getExecution( - functionId: "[FUNCTION_ID]", - executionId: "[EXECUTION_ID]" - ) - - print(String(describing: execution) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/get-variable.md b/docs/examples/1.2.x/server-swift/examples/functions/get-variable.md deleted file mode 100644 index fd814984e4..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/get-variable.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let variable = try await functions.getVariable( - functionId: "[FUNCTION_ID]", - variableId: "[VARIABLE_ID]" - ) - - print(String(describing: variable) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/get.md b/docs/examples/1.2.x/server-swift/examples/functions/get.md deleted file mode 100644 index 6675916a47..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/get.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let function = try await functions.get( - functionId: "[FUNCTION_ID]" - ) - - print(String(describing: function) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-swift/examples/functions/list-deployments.md deleted file mode 100644 index fce719736a..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/list-deployments.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let deploymentList = try await functions.listDeployments( - functionId: "[FUNCTION_ID]" - ) - - print(String(describing: deploymentList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/list-executions.md b/docs/examples/1.2.x/server-swift/examples/functions/list-executions.md deleted file mode 100644 index 95d27cbc05..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/list-executions.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let executionList = try await functions.listExecutions( - functionId: "[FUNCTION_ID]" - ) - - print(String(describing: executionList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-swift/examples/functions/list-runtimes.md deleted file mode 100644 index e87ad2c46c..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/list-runtimes.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let runtimeList = try await functions.listRuntimes() - - print(String(describing: runtimeList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/list-variables.md b/docs/examples/1.2.x/server-swift/examples/functions/list-variables.md deleted file mode 100644 index 8952aa6fcd..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/list-variables.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let variableList = try await functions.listVariables( - functionId: "[FUNCTION_ID]" - ) - - print(String(describing: variableList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/list.md b/docs/examples/1.2.x/server-swift/examples/functions/list.md deleted file mode 100644 index 695350d95a..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/list.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let functionList = try await functions.list() - - print(String(describing: functionList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-swift/examples/functions/update-deployment.md deleted file mode 100644 index 37d8cbb8fd..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/update-deployment.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let function = try await functions.updateDeployment( - functionId: "[FUNCTION_ID]", - deploymentId: "[DEPLOYMENT_ID]" - ) - - print(String(describing: function) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/update-variable.md b/docs/examples/1.2.x/server-swift/examples/functions/update-variable.md deleted file mode 100644 index ff22cc2bfd..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/update-variable.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let variable = try await functions.updateVariable( - functionId: "[FUNCTION_ID]", - variableId: "[VARIABLE_ID]", - key: "[KEY]" - ) - - print(String(describing: variable) -} diff --git a/docs/examples/1.2.x/server-swift/examples/functions/update.md b/docs/examples/1.2.x/server-swift/examples/functions/update.md deleted file mode 100644 index c459ae38af..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/functions/update.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let functions = Functions(client) - let function = try await functions.update( - functionId: "[FUNCTION_ID]", - name: "[NAME]", - execute: ["any"] - ) - - print(String(describing: function) -} diff --git a/docs/examples/1.2.x/server-swift/examples/graphql/get.md b/docs/examples/1.2.x/server-swift/examples/graphql/get.md deleted file mode 100644 index 1b0c6fcfa6..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/graphql/get.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let graphql = Graphql(client) - let any = try await graphql.get( - query: "[QUERY]" - ) - - print(String(describing: any) -} diff --git a/docs/examples/1.2.x/server-swift/examples/graphql/post.md b/docs/examples/1.2.x/server-swift/examples/graphql/post.md deleted file mode 100644 index 7f8664035c..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/graphql/post.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let graphql = Graphql(client) - let any = try await graphql.post( - query: [:] - ) - - print(String(describing: any) -} diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-swift/examples/health/get-antivirus.md deleted file mode 100644 index 3eafa2c2f1..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/health/get-antivirus.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthAntivirus = try await health.getAntivirus() - - print(String(describing: healthAntivirus) -} diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-cache.md b/docs/examples/1.2.x/server-swift/examples/health/get-cache.md deleted file mode 100644 index 20831b4d39..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/health/get-cache.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthStatus = try await health.getCache() - - print(String(describing: healthStatus) -} diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-d-b.md b/docs/examples/1.2.x/server-swift/examples/health/get-d-b.md deleted file mode 100644 index 5808c99a73..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/health/get-d-b.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthStatus = try await health.getDB() - - print(String(describing: healthStatus) -} diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-swift/examples/health/get-queue-certificates.md deleted file mode 100644 index 123b452f99..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/health/get-queue-certificates.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthQueue = try await health.getQueueCertificates() - - print(String(describing: healthQueue) -} diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-swift/examples/health/get-queue-functions.md deleted file mode 100644 index c3949a769c..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/health/get-queue-functions.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthQueue = try await health.getQueueFunctions() - - print(String(describing: healthQueue) -} diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-swift/examples/health/get-queue-logs.md deleted file mode 100644 index 6a36fa966c..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/health/get-queue-logs.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthQueue = try await health.getQueueLogs() - - print(String(describing: healthQueue) -} diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-swift/examples/health/get-queue-webhooks.md deleted file mode 100644 index bc6b7bcb14..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/health/get-queue-webhooks.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthQueue = try await health.getQueueWebhooks() - - print(String(describing: healthQueue) -} diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-swift/examples/health/get-storage-local.md deleted file mode 100644 index 773d8dd483..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/health/get-storage-local.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthStatus = try await health.getStorageLocal() - - print(String(describing: healthStatus) -} diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-time.md b/docs/examples/1.2.x/server-swift/examples/health/get-time.md deleted file mode 100644 index edbc171ea9..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/health/get-time.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthTime = try await health.getTime() - - print(String(describing: healthTime) -} diff --git a/docs/examples/1.2.x/server-swift/examples/health/get.md b/docs/examples/1.2.x/server-swift/examples/health/get.md deleted file mode 100644 index 770c09aa66..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/health/get.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let health = Health(client) - let healthStatus = try await health.get() - - print(String(describing: healthStatus) -} diff --git a/docs/examples/1.2.x/server-swift/examples/locale/get.md b/docs/examples/1.2.x/server-swift/examples/locale/get.md deleted file mode 100644 index fd0a9dd1e7..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/locale/get.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let locale = Locale(client) - let locale = try await locale.get() - - print(String(describing: locale) -} diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-continents.md b/docs/examples/1.2.x/server-swift/examples/locale/list-continents.md deleted file mode 100644 index 2bd3007391..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-continents.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let locale = Locale(client) - let continentList = try await locale.listContinents() - - print(String(describing: continentList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-swift/examples/locale/list-countries-e-u.md deleted file mode 100644 index fd12103165..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-countries-e-u.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let locale = Locale(client) - let countryList = try await locale.listCountriesEU() - - print(String(describing: countryList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-swift/examples/locale/list-countries-phones.md deleted file mode 100644 index e5a2c97ef2..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-countries-phones.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let locale = Locale(client) - let phoneList = try await locale.listCountriesPhones() - - print(String(describing: phoneList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-countries.md b/docs/examples/1.2.x/server-swift/examples/locale/list-countries.md deleted file mode 100644 index cc38466e79..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-countries.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let locale = Locale(client) - let countryList = try await locale.listCountries() - - print(String(describing: countryList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-swift/examples/locale/list-currencies.md deleted file mode 100644 index 26d272e536..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-currencies.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let locale = Locale(client) - let currencyList = try await locale.listCurrencies() - - print(String(describing: currencyList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-languages.md b/docs/examples/1.2.x/server-swift/examples/locale/list-languages.md deleted file mode 100644 index 63ccecf206..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-languages.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let locale = Locale(client) - let languageList = try await locale.listLanguages() - - print(String(describing: languageList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-swift/examples/storage/create-bucket.md deleted file mode 100644 index 6f275b3123..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/storage/create-bucket.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let bucket = try await storage.createBucket( - bucketId: "[BUCKET_ID]", - name: "[NAME]" - ) - - print(String(describing: bucket) -} diff --git a/docs/examples/1.2.x/server-swift/examples/storage/create-file.md b/docs/examples/1.2.x/server-swift/examples/storage/create-file.md deleted file mode 100644 index 2da22e5372..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/storage/create-file.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let file = try await storage.createFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]", - file: InputFile.fromPath("file.png") - ) - - print(String(describing: file) -} diff --git a/docs/examples/1.2.x/server-swift/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-swift/examples/storage/delete-bucket.md deleted file mode 100644 index 18687fb278..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/storage/delete-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let result = try await storage.deleteBucket( - bucketId: "[BUCKET_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/storage/delete-file.md b/docs/examples/1.2.x/server-swift/examples/storage/delete-file.md deleted file mode 100644 index 305d6e1d81..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/storage/delete-file.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let result = try await storage.deleteFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-swift/examples/storage/get-bucket.md deleted file mode 100644 index f04e2db3c9..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/storage/get-bucket.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let bucket = try await storage.getBucket( - bucketId: "[BUCKET_ID]" - ) - - print(String(describing: bucket) -} diff --git a/docs/examples/1.2.x/server-swift/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-swift/examples/storage/get-file-download.md deleted file mode 100644 index 28c427c620..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/storage/get-file-download.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let byteBuffer = try await storage.getFileDownload( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/server-swift/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-swift/examples/storage/get-file-preview.md deleted file mode 100644 index 20b87191e1..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/storage/get-file-preview.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let byteBuffer = try await storage.getFilePreview( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/server-swift/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-swift/examples/storage/get-file-view.md deleted file mode 100644 index a17fba0a14..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/storage/get-file-view.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let byteBuffer = try await storage.getFileView( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: byteBuffer) -} diff --git a/docs/examples/1.2.x/server-swift/examples/storage/get-file.md b/docs/examples/1.2.x/server-swift/examples/storage/get-file.md deleted file mode 100644 index 6b02fcd0ee..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/storage/get-file.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let file = try await storage.getFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: file) -} diff --git a/docs/examples/1.2.x/server-swift/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-swift/examples/storage/list-buckets.md deleted file mode 100644 index 361ef626b5..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/storage/list-buckets.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let bucketList = try await storage.listBuckets() - - print(String(describing: bucketList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/storage/list-files.md b/docs/examples/1.2.x/server-swift/examples/storage/list-files.md deleted file mode 100644 index 68a6ca40c4..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/storage/list-files.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let fileList = try await storage.listFiles( - bucketId: "[BUCKET_ID]" - ) - - print(String(describing: fileList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-swift/examples/storage/update-bucket.md deleted file mode 100644 index 3692deec5c..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/storage/update-bucket.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let bucket = try await storage.updateBucket( - bucketId: "[BUCKET_ID]", - name: "[NAME]" - ) - - print(String(describing: bucket) -} diff --git a/docs/examples/1.2.x/server-swift/examples/storage/update-file.md b/docs/examples/1.2.x/server-swift/examples/storage/update-file.md deleted file mode 100644 index 12f8150085..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/storage/update-file.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let storage = Storage(client) - let file = try await storage.updateFile( - bucketId: "[BUCKET_ID]", - fileId: "[FILE_ID]" - ) - - print(String(describing: file) -} diff --git a/docs/examples/1.2.x/server-swift/examples/teams/create-membership.md b/docs/examples/1.2.x/server-swift/examples/teams/create-membership.md deleted file mode 100644 index a732ec676a..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/teams/create-membership.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let membership = try await teams.createMembership( - teamId: "[TEAM_ID]", - email: "email@example.com", - roles: [], - url: "https://example.com" - ) - - print(String(describing: membership) -} diff --git a/docs/examples/1.2.x/server-swift/examples/teams/create.md b/docs/examples/1.2.x/server-swift/examples/teams/create.md deleted file mode 100644 index 80edd0cadc..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/teams/create.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let team = try await teams.create( - teamId: "[TEAM_ID]", - name: "[NAME]" - ) - - print(String(describing: team) -} diff --git a/docs/examples/1.2.x/server-swift/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-swift/examples/teams/delete-membership.md deleted file mode 100644 index 84f3157550..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/teams/delete-membership.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let result = try await teams.deleteMembership( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/teams/delete.md b/docs/examples/1.2.x/server-swift/examples/teams/delete.md deleted file mode 100644 index d8808a6565..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/teams/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let result = try await teams.delete( - teamId: "[TEAM_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/teams/get-membership.md b/docs/examples/1.2.x/server-swift/examples/teams/get-membership.md deleted file mode 100644 index 5d80e2143a..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/teams/get-membership.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let membership = try await teams.getMembership( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]" - ) - - print(String(describing: membership) -} diff --git a/docs/examples/1.2.x/server-swift/examples/teams/get.md b/docs/examples/1.2.x/server-swift/examples/teams/get.md deleted file mode 100644 index d1c4500442..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/teams/get.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let team = try await teams.get( - teamId: "[TEAM_ID]" - ) - - print(String(describing: team) -} diff --git a/docs/examples/1.2.x/server-swift/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-swift/examples/teams/list-memberships.md deleted file mode 100644 index 809debaa14..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/teams/list-memberships.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let membershipList = try await teams.listMemberships( - teamId: "[TEAM_ID]" - ) - - print(String(describing: membershipList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/teams/list.md b/docs/examples/1.2.x/server-swift/examples/teams/list.md deleted file mode 100644 index 3a9fa822ae..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/teams/list.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let teamList = try await teams.list() - - print(String(describing: teamList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-swift/examples/teams/update-membership-roles.md deleted file mode 100644 index fd0084786a..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/teams/update-membership-roles.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let membership = try await teams.updateMembershipRoles( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]", - roles: [] - ) - - print(String(describing: membership) -} diff --git a/docs/examples/1.2.x/server-swift/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-swift/examples/teams/update-membership-status.md deleted file mode 100644 index 4b6f3eda43..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/teams/update-membership-status.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token - let teams = Teams(client) - let membership = try await teams.updateMembershipStatus( - teamId: "[TEAM_ID]", - membershipId: "[MEMBERSHIP_ID]", - userId: "[USER_ID]", - secret: "[SECRET]" - ) - - print(String(describing: membership) -} diff --git a/docs/examples/1.2.x/server-swift/examples/teams/update.md b/docs/examples/1.2.x/server-swift/examples/teams/update.md deleted file mode 100644 index 683dfd4e30..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/teams/update.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let teams = Teams(client) - let team = try await teams.update( - teamId: "[TEAM_ID]", - name: "[NAME]" - ) - - print(String(describing: team) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-swift/examples/users/create-argon2user.md deleted file mode 100644 index f54ebb15ec..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/create-argon2user.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.createArgon2User( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) - - print(String(describing: user) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-swift/examples/users/create-bcrypt-user.md deleted file mode 100644 index 379bff9c85..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/create-bcrypt-user.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.createBcryptUser( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) - - print(String(describing: user) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-swift/examples/users/create-m-d5user.md deleted file mode 100644 index c1a057ec7b..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/create-m-d5user.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.createMD5User( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) - - print(String(describing: user) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-swift/examples/users/create-p-h-pass-user.md deleted file mode 100644 index 4492272329..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.createPHPassUser( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) - - print(String(describing: user) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-swift/examples/users/create-s-h-a-user.md deleted file mode 100644 index f6b30066d1..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.createSHAUser( - userId: "[USER_ID]", - email: "email@example.com", - password: "password" - ) - - print(String(describing: user) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-modified-user.md deleted file mode 100644 index e5e84fd266..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-modified-user.md +++ /dev/null @@ -1,19 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.createScryptModifiedUser( - userId: "[USER_ID]", - email: "email@example.com", - password: "password", - passwordSalt: "[PASSWORD_SALT]", - passwordSaltSeparator: "[PASSWORD_SALT_SEPARATOR]", - passwordSignerKey: "[PASSWORD_SIGNER_KEY]" - ) - - print(String(describing: user) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-user.md deleted file mode 100644 index d0dc599cb5..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-user.md +++ /dev/null @@ -1,21 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.createScryptUser( - userId: "[USER_ID]", - email: "email@example.com", - password: "password", - passwordSalt: "[PASSWORD_SALT]", - passwordCpu: 0, - passwordMemory: 0, - passwordParallel: 0, - passwordLength: 0 - ) - - print(String(describing: user) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/create.md b/docs/examples/1.2.x/server-swift/examples/users/create.md deleted file mode 100644 index 76b7f22076..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/create.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.create( - userId: "[USER_ID]" - ) - - print(String(describing: user) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/delete-session.md b/docs/examples/1.2.x/server-swift/examples/users/delete-session.md deleted file mode 100644 index 50cbf470d3..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/delete-session.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let result = try await users.deleteSession( - userId: "[USER_ID]", - sessionId: "[SESSION_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-swift/examples/users/delete-sessions.md deleted file mode 100644 index a8b7802577..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/delete-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let result = try await users.deleteSessions( - userId: "[USER_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/delete.md b/docs/examples/1.2.x/server-swift/examples/users/delete.md deleted file mode 100644 index f970492afa..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/delete.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let result = try await users.delete( - userId: "[USER_ID]" - ) - - print(String(describing: result) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/get-prefs.md b/docs/examples/1.2.x/server-swift/examples/users/get-prefs.md deleted file mode 100644 index d664dbbb0d..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/get-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let preferences = try await users.getPrefs( - userId: "[USER_ID]" - ) - - print(String(describing: preferences) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/get.md b/docs/examples/1.2.x/server-swift/examples/users/get.md deleted file mode 100644 index dc57a924ba..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/get.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.get( - userId: "[USER_ID]" - ) - - print(String(describing: user) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/list-logs.md b/docs/examples/1.2.x/server-swift/examples/users/list-logs.md deleted file mode 100644 index 78386c8291..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/list-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let logList = try await users.listLogs( - userId: "[USER_ID]" - ) - - print(String(describing: logList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/list-memberships.md b/docs/examples/1.2.x/server-swift/examples/users/list-memberships.md deleted file mode 100644 index 5fea09e948..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/list-memberships.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let membershipList = try await users.listMemberships( - userId: "[USER_ID]" - ) - - print(String(describing: membershipList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/list-sessions.md b/docs/examples/1.2.x/server-swift/examples/users/list-sessions.md deleted file mode 100644 index 4339fa1a2f..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/list-sessions.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let sessionList = try await users.listSessions( - userId: "[USER_ID]" - ) - - print(String(describing: sessionList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/list.md b/docs/examples/1.2.x/server-swift/examples/users/list.md deleted file mode 100644 index 7ea73d0515..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/list.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let userList = try await users.list() - - print(String(describing: userList) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-swift/examples/users/update-email-verification.md deleted file mode 100644 index be03932e77..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/update-email-verification.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.updateEmailVerification( - userId: "[USER_ID]", - emailVerification: xfalse - ) - - print(String(describing: user) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-email.md b/docs/examples/1.2.x/server-swift/examples/users/update-email.md deleted file mode 100644 index 602191c6f0..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/update-email.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.updateEmail( - userId: "[USER_ID]", - email: "email@example.com" - ) - - print(String(describing: user) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-name.md b/docs/examples/1.2.x/server-swift/examples/users/update-name.md deleted file mode 100644 index 7fa3b543ec..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/update-name.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.updateName( - userId: "[USER_ID]", - name: "[NAME]" - ) - - print(String(describing: user) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-password.md b/docs/examples/1.2.x/server-swift/examples/users/update-password.md deleted file mode 100644 index 5a3bde40b6..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/update-password.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.updatePassword( - userId: "[USER_ID]", - password: "password" - ) - - print(String(describing: user) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-swift/examples/users/update-phone-verification.md deleted file mode 100644 index 7d9228e820..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/update-phone-verification.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.updatePhoneVerification( - userId: "[USER_ID]", - phoneVerification: xfalse - ) - - print(String(describing: user) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-phone.md b/docs/examples/1.2.x/server-swift/examples/users/update-phone.md deleted file mode 100644 index ad49cd08d9..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/update-phone.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.updatePhone( - userId: "[USER_ID]", - number: "" - ) - - print(String(describing: user) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-prefs.md b/docs/examples/1.2.x/server-swift/examples/users/update-prefs.md deleted file mode 100644 index 78e8bc274e..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/update-prefs.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let preferences = try await users.updatePrefs( - userId: "[USER_ID]", - prefs: [:] - ) - - print(String(describing: preferences) -} diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-status.md b/docs/examples/1.2.x/server-swift/examples/users/update-status.md deleted file mode 100644 index 28dc7d7844..0000000000 --- a/docs/examples/1.2.x/server-swift/examples/users/update-status.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -func main() async throws { - let client = Client() - .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key - let users = Users(client) - let user = try await users.updateStatus( - userId: "[USER_ID]", - status: xfalse - ) - - print(String(describing: user) -}