venomous0x / WhatsAPI

Interface to WhatsApp Messenger
2.59k stars 2.13k forks source link

sendsync explanation about previous sync #1111

Open ankurextreme opened 9 years ago

ankurextreme commented 9 years ago

hi, could you please explain a bit.

while using sendSync(array (a,b)) say contacts a &b , so does it mean only a,b contacts are in address book ? if we do next time sendSync(array (c,d)) does it mean contact a & b is deleted from my whatsapp account? is it possible to get all contacts with are LINKED to my account ? or is it that only the contacts i sync are every time only that are linked, in this case only c,d and not a,b ?

i have a small site which sends welcome message on customer registration. so when a new customer arrives, do i have to sync only his contact or ALL the contact to which i sent message before ? after sync wen i call onSyncResult($result) like in example in your repo if it exist then i send a message.

what is the best solution to my problem ? site flow required for = registration -> check if available on whatsapp by sync(this particular number ) -> if onSyncResult($result) and $result->existing then send a welcome message.

mgp25 commented 9 years ago

@ankurextreme this repo is inactive. Ask it in WhatsAPI Official repo: https://github.com/mgp25/WhatsAPI-Official

Regards