venomous0x / WhatsAPI

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

Using WhatsAPI to re-generate whats password #1012

Open malmalakh opened 9 years ago

malmalakh commented 9 years ago

I am trying to test re-generate the password using the following code for US phone numbers ... but without any success ... if any one can help?

$username = "US phone number"; $token = md5($username); $nickname = "Derp"; $w = new WhatsProt($username, $token, $nickname, true); $result = $w->checkCredentials(); $password = $result->accountInfo['pw']; echo "Password is $password";

mgp25 commented 9 years ago

Duplicate, already answered in #401

malmalakh commented 9 years ago

@mgp25 ... thank you ... but it did not show the new password ... only "Password is" ... while when I check using WART then the result is successful

eliasjnior commented 9 years ago

It's your coding error, not API.

Please, var_dump the result and you'll see.

malmalakh commented 9 years ago

@eliasjnior ... I have fixed the error, but now I am facing another challange, how to check if the target has a valid number or not before sending the message. they call this spam while the message I am sending is for a number that is in my contact list

eliasjnior commented 9 years ago

It's not possible. And yes, looks like you're spamming. We do not support spammers and you'll get blocked doing this.

2014-10-19 14:13 GMT-02:00 malmalakh notifications@github.com:

@eliasjnior https://github.com/eliasjnior ... I have fixed the error, but now I am facing another challange, how to check if the target has a valid number or not before sending the message. they call this spam while the message I am sending is for a number that is in my contact list

— Reply to this email directly or view it on GitHub https://github.com/venomous0x/WhatsAPI/issues/1012#issuecomment-59654738 .

malmalakh commented 9 years ago

@eliasjnior ... no sir ... I am building a website (video sharing) and I am giving the option to send the video link through WhatsApp, while the visitor want to share the link, I have first to check if the target number is valid or not. and not to lose the sending number and get blocked.

Thank you in advance. :)

eliasjnior commented 9 years ago

I think it's just possible when you try to check last seen. But remember that you link won't be clickable if the receiver don't have you in the contact list.

2014-10-19 14:18 GMT-02:00 malmalakh notifications@github.com:

@eliasjnior https://github.com/eliasjnior ... no sir ... I am building a website (video sharing) and I am giving the option to send the video link through WhatsApp, while the visitor want to share the link, I have first to check if the target number is valid or not. and not to lose the sending number and get blocked.

Thank you in advance. :)

— Reply to this email directly or view it on GitHub https://github.com/venomous0x/WhatsAPI/issues/1012#issuecomment-59654910 .

malmalakh commented 9 years ago

@eliasjnior ... appreciated. Many thanks.

NakulSharmaIt commented 9 years ago

Dear All...

Is it necessary to put sim inside the mobile phone while registering/requesting for code via sms/call because while requesting for code it is showing :

By Wart: SMS: {status:fail, reason: no_routes, retry_after: 3600} Voice: {status:fail, reason: no_routes, retry_after: 3600}

& By exampleRegister.php

Array ( [in] => 8010202508 [cc] => 91 [id] => %93%c6%7f%38%a5%c2%4b%02%a0%d8%9e%54%c8%e0%6f%5a [lg] => hi [lc] => IN [mcc] => 000 [mnc] => 000 [sim_mcc] => 404 [sim_mnc] => 000 [method] => sms [reason] => self-send-jailbroken [token] => elT4fXmNLXnunctHOv%2BZdkVWI4o%3D [network_radio_type] => 1 ) stdClass Object ( [status] => fail [reason] => no_routes [retry_after] => 3600 )

So i have to change sim every time & it is very tough to put sim inside phone every time.

So help me in both case:

  1. no_routes
  2. Sim in side mobile or not
mgp25 commented 9 years ago

@NakulSharmaIt contact me via mail for explanation. Regards

NakulSharmaIt commented 9 years ago

Dear MGP25 I have sent a email to you at me@mgp25.com

please revert me back..