Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get mobile number using wechat api in android

how to get mobile number using wechat api in android. We can get mobile number and email-id by using Whatsapp api through this code

     AccountManager am = AccountManager.get(this);
     Account[] accounts = am.getAccounts();

So like that is it possible to get mobile number using wechat api ????

like image 925
Faiz Anwar Avatar asked Nov 19 '25 14:11

Faiz Anwar


1 Answers

You can not get the mobile number of the user. Not through an official account nor through the API as this is a security concern. Not even us at Wechat can get that number. It is kept back for security reasons and spam.

Recently it has become available to get a user's mobile number. This however is only available if the user clicks "allow" to your brand and only if you have integrated with their wallet.

You can however contact WeChat for a merchant account and once that is setup the Merchant API will be supplied to you.

like image 127
DeveloperX Avatar answered Nov 22 '25 05:11

DeveloperX



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!