Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate WhatsApp accounts/numbers #67

Closed
ruriimasu opened this issue Jan 20, 2013 · 8 comments
Closed

Validate WhatsApp accounts/numbers #67

ruriimasu opened this issue Jan 20, 2013 · 8 comments
Labels

Comments

@ruriimasu
Copy link

Anyone can create a GUI to validate a block of phone numbers for valid WhatsApp accounts?

@CODeRUS
Copy link
Contributor

CODeRUS commented Jan 20, 2013

why you asking it in Yowsup project bugtracker?

@ruriimasu
Copy link
Author

I was just thinking this might be related to why some of the guys were having their accounts banned after 17th msg.

@Akuka
Copy link

Akuka commented Jan 21, 2013

if you want, i write this php code in two versions... you can use it:

function hasWhatsappV1($number)
{
    $status_url     = "http://dev.developr.ch/whatsappstatus/index.php?number=".$number;
    $status_content = file_get_contents($status_url);

    if ($status_content == "null") {
        return false;
    } else {
        return true;
    }
}

function hasWhatsappV2($number)
{
    $country = substr($number, 0, 2);
    $number = substr($number, 2);

    $status_url     = "https://sro.whatsapp.net/client/iphone/iq.php?cd=1&cc=".$country."&me=12345&u[]=".$number;
    $status_content = file_get_contents($status_url);
    $status_xml     = simplexml_load_string($status_content);

    if(!$status_xml->array->dict) return false;

    return true;
}

@kingk110
Copy link

is hasWhatsappV2() working ??

@Akuka
Copy link

Akuka commented Jan 21, 2013

Last time I checked they both worked, choose what you want ...

edit:
Not Found
The requested URL /client/iphone/iq.php was not found on this server.

hasWhatsappV2() will not work anymore... they (whatsapp) removed this page..

@kingk110
Copy link

and the 1st is not working also!!!

@Akuka
Copy link

Akuka commented Jan 21, 2013

Ok so forget it,
We'll find a new way ... (What I do is ask for the user's status is null and if it says no account whatsapp)
But anyway, you should concentrate on the real problem, now I can not send messages through the computer normally, I am constantly blocked ... Must find a solution

@alejandro-amo
Copy link

you are not up to date about protocol changes. read this repo commit log.

anyway, I think that checking accounts is not the logical reaction against temporary bans after mass mssaging.

just try to send less messages at a slower speed

@tgalal tgalal added the invalid label Nov 25, 2014
@tgalal tgalal closed this as completed Nov 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants