You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: library/src/main/java/io/appwrite/services/Account.kt
+82-4Lines changed: 82 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2029,10 +2029,49 @@ class Account(client: Client) : Service(client) {
2029
2029
* @param url URL to redirect the user back to your app from the verification email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
2030
2030
* @return [io.appwrite.models.Token]
2031
2031
*/
2032
+
suspendfuncreateEmailVerification(
2033
+
url:String,
2034
+
): io.appwrite.models.Token {
2035
+
val apiPath ="/account/verifications/email"
2036
+
2037
+
val apiParams = mutableMapOf<String, Any?>(
2038
+
"url" to url,
2039
+
)
2040
+
val apiHeaders = mutableMapOf<String, String>(
2041
+
"content-type" to "application/json",
2042
+
)
2043
+
val converter: (Any) -> io.appwrite.models.Token= {
2044
+
@Suppress("UNCHECKED_CAST")
2045
+
io.appwrite.models.Token.from(map = it asMap<String, Any>)
* Use this endpoint to send a verification message to your user email address to confirm they are the valid owners of that address. Both the **userId** and **secret** arguments will be passed as query parameters to the URL you have provided to be attached to the verification email. The provided URL should redirect the user back to your app and allow you to complete the verification process by verifying both the **userId** and **secret** parameters. Learn more about how to [complete the verification process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification). The verification link sent to the user's email address is valid for 7 days.
2060
+
*
2061
+
* Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.
2062
+
*
2063
+
*
2064
+
* @param url URL to redirect the user back to your app from the verification email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
2065
+
* @return [io.appwrite.models.Token]
2066
+
*/
2067
+
@Deprecated(
2068
+
message ="This API has been deprecated since 1.8.0. Please use `Account.createEmailVerification` instead.",
* Use this endpoint to complete the user email verification process. Use both the **userId** and **secret** parameters that were attached to your app URL to verify the user email ownership. If confirmed this route will return a 200 status code.
2134
+
*
2135
+
* @param userId User ID.
2136
+
* @param secret Valid verification token.
2137
+
* @return [io.appwrite.models.Token]
2138
+
*/
2139
+
@Deprecated(
2140
+
message ="This API has been deprecated since 1.8.0. Please use `Account.updateEmailVerification` instead.",
Copy file name to clipboardExpand all lines: library/src/main/java/io/appwrite/services/TablesDb.kt
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ class TablesDB(client: Client) : Service(client) {
18
18
* Get a list of all the user's rows in a given table. You can use the query params to filter your results.
19
19
*
20
20
* @param databaseId Database ID.
21
-
* @param tableId Table ID. You can create a new table using the TableDB service [server integration](https://appwrite.io/docs/server/tablesdbdb#tablesdbCreate).
21
+
* @param tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/products/databases/tables#create-table).
22
22
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
23
23
* @return [io.appwrite.models.RowList<T>]
24
24
*/
@@ -56,7 +56,7 @@ class TablesDB(client: Client) : Service(client) {
56
56
* Get a list of all the user's rows in a given table. You can use the query params to filter your results.
57
57
*
58
58
* @param databaseId Database ID.
59
-
* @param tableId Table ID. You can create a new table using the TableDB service [server integration](https://appwrite.io/docs/server/tablesdbdb#tablesdbCreate).
59
+
* @param tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/products/databases/tables#create-table).
60
60
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
61
61
* @return [io.appwrite.models.RowList<T>]
62
62
*/
@@ -74,10 +74,10 @@ class TablesDB(client: Client) : Service(client) {
74
74
)
75
75
76
76
/**
77
-
* Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console.
77
+
* Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.
78
78
*
79
79
* @param databaseId Database ID.
80
-
* @param tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). Make sure to define columns before creating rows.
80
+
* @param tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). Make sure to define columns before creating rows.
81
81
* @param rowId Row ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
82
82
* @param data Row data as JSON object.
83
83
* @param permissions An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
@@ -119,10 +119,10 @@ class TablesDB(client: Client) : Service(client) {
119
119
}
120
120
121
121
/**
122
-
* Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console.
122
+
* Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.
123
123
*
124
124
* @param databaseId Database ID.
125
-
* @param tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). Make sure to define columns before creating rows.
125
+
* @param tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). Make sure to define columns before creating rows.
126
126
* @param rowId Row ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
127
127
* @param data Row data as JSON object.
128
128
* @param permissions An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
@@ -149,7 +149,7 @@ class TablesDB(client: Client) : Service(client) {
149
149
* Get a row by its unique ID. This endpoint response returns a JSON object with the row data.
150
150
*
151
151
* @param databaseId Database ID.
152
-
* @param tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
152
+
* @param tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
153
153
* @param rowId Row ID.
154
154
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
155
155
* @return [io.appwrite.models.Row<T>]
@@ -190,7 +190,7 @@ class TablesDB(client: Client) : Service(client) {
190
190
* Get a row by its unique ID. This endpoint response returns a JSON object with the row data.
191
191
*
192
192
* @param databaseId Database ID.
193
-
* @param tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
193
+
* @param tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
194
194
* @param rowId Row ID.
195
195
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
196
196
* @return [io.appwrite.models.Row<T>]
@@ -211,7 +211,7 @@ class TablesDB(client: Client) : Service(client) {
211
211
)
212
212
213
213
/**
214
-
* Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console.
214
+
* Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.
215
215
*
216
216
* @param databaseId Database ID.
217
217
* @param tableId Table ID.
@@ -256,7 +256,7 @@ class TablesDB(client: Client) : Service(client) {
256
256
}
257
257
258
258
/**
259
-
* Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console.
259
+
* Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.
260
260
*
261
261
* @param databaseId Database ID.
262
262
* @param tableId Table ID.
@@ -358,7 +358,7 @@ class TablesDB(client: Client) : Service(client) {
358
358
* Delete a row by its unique ID.
359
359
*
360
360
* @param databaseId Database ID.
361
-
* @param tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
361
+
* @param tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
0 commit comments