yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

Is that possible to know if a phone number is a WhatsApp user?

Open xiaojxiao opened this issue 13 years ago • 7 comments

As you could tell, we only have phone numbers in the phone's contact list. So I would like to know how could we identify it as a WhatsApp user. I read all the yowsup code and didn't get a clue. Does anyone have the same issue and solve it out?

Thanks.

xiaojxiao avatar Sep 16 '13 06:09 xiaojxiao

Use Contact Sync

shirioko avatar Sep 16 '13 07:09 shirioko

@shirioko not found a function named "contact sync"

jackcaicn avatar Sep 16 '13 09:09 jackcaicn

sigh https://github.com/tgalal/yowsup/blob/master/src/yowsup-cli#L195

shirioko avatar Sep 16 '13 09:09 shirioko

80% sure he want to use application for sending spam.

CODeRUS avatar Sep 16 '13 13:09 CODeRUS

Thanks very much for the help. I tried WAContactsSyncRequest and got response like WAContactsSyncQuery: {"c":[{"p":"1234564654","n":"11234564654","w":0}]}

What does these parameter mean? It seems just add country code ahead of the phone_number.

xiaojxiao avatar Sep 17 '13 06:09 xiaojxiao

https://github.com/alist3r/yowsup/wiki/Contact-Sync-V2-API-results-guide

shirioko avatar Sep 17 '13 06:09 shirioko

You are awesome!

xiaojxiao avatar Sep 17 '13 07:09 xiaojxiao