
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
- Console is not opening
Plz solve this issue console is not opening
- OAUTH2 doesn't works
https://github.com/202420505/APPWRITE-GOOGLE-AUTH Is my code wrong? I think this is also related to deeplinks
- Auth administration members are not show...
Auth administration members are not showing in authentication so plz help
