I'm unable to fetch the user list. Currently I'm developing an Android app using Java and trying to implement the Phone Authentication using AppWrite. For the verification, I need to get the userID and so I was trying to use the User API but the io.appwrite.services.Users library isn't working. Also,
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key```
the ```.setkey()``` function is not getting called. Is there any updation in the function?
Can anyone assist me on how can I fetch the userID of an unverified phone number for phone verification?
Unable to fetch the UseID
Unable to fetch the UserID
The Users service is not available in a client SDK. See the note about users API vs account API: https://appwrite.io/docs/server/users
Why do you need to fetch the user id for phone verification?
To authenticate the number using the the secret code sent to number and the userID
Here you can see that the number is unverified
I need to pass the userID and the secret code. I'm able to pass the secret code but idk how to get the userId
Oh interesting...
After you log in, you can call account.get() to get the user details including the user id
Also, the API call before this one that creates the phone verification returns a token object which has user id
so for login I need to use the "Create Phone Session" API right?
Which API are you talking about sir?
Okay! Got it
Thank you so much!
[SOLVED] Unable to fetch the UserID
TWILO
Recommended threads
- Android SDK: Kotlin null Value Not Updat...
Hi team, I think you should check the Android SDK implementation once, as it seems to have an issue handling Kotlin **null** values. For example: When I send:...
- OAuth Missing redirect URL
Hello all, on a Flutter mobile app with latest Appwrite dependency (25.4.0) I always got "Missing redirect URL" - "Your OAuth login flow is missing a proper red...
- Need Help on Self Hosted Version of Appw...
Hi i wanted to test SMS OTP verify method but i am not able to do it. I follow all the steps but no luck. Please help me with this. I am using Appwrite self hos...