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
**This SDK is compatible with Appwrite server version 0.14.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-php/releases).**
9
+
**This SDK is compatible with Appwrite server version 0.15.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-php/releases).**
10
10
11
11
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the PHP SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
| password | string | New user password. Must be at least 8 chars. ||
70
70
| oldPassword | string | Current user password. Must be at least 8 chars. ||
71
71
72
+
## Update Account Phone
73
+
74
+
```http request
75
+
PATCH https://HOSTNAME/v1/account/phone
76
+
```
77
+
78
+
** Update currently logged in user account phone number. After changing phone number, the user confirmation status will get reset. A new confirmation SMS is not sent automatically however you can use the phone confirmation endpoint again to send the confirmation SMS. **
79
+
80
+
### Parameters
81
+
82
+
| Field Name | Type | Description | Default |
83
+
| --- | --- | --- | --- |
84
+
| number | string | Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212. ||
85
+
| password | string | User password. Must be at least 8 chars. ||
** 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](/docs/client/account#accountUpdateVerification). The verification link sent to the user's email address is valid for 7 days.
216
+
** 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](/docs/client/account#accountUpdateEmailVerification). The verification link sent to the user's email address is valid for 7 days.
202
217
203
218
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.
204
219
**
@@ -224,3 +239,26 @@ PUT https://HOSTNAME/v1/account/verification
224
239
| userId | string | User ID. ||
225
240
| secret | string | Valid verification token. ||
226
241
242
+
## Create Phone Verification
243
+
244
+
```http request
245
+
POST https://HOSTNAME/v1/account/verification/phone
246
+
```
247
+
248
+
** Use this endpoint to send a verification message to your user's phone number to confirm they are the valid owners of that address. The provided secret should allow you to complete the verification process by verifying both the **userId** and **secret** parameters. Learn more about how to [complete the verification process](/docs/client/account#accountUpdatePhoneVerification). The verification link sent to the user's phone number is valid for 15 minutes. **
249
+
250
+
## Create Phone Verification (confirmation)
251
+
252
+
```http request
253
+
PUT https://HOSTNAME/v1/account/verification/phone
254
+
```
255
+
256
+
** Use this endpoint to complete the user phone verification process. Use the **userId** and **secret** that were sent to your user's phone number to verify the user email ownership. If confirmed this route will return a 200 status code. **
0 commit comments