Giter Site home page Giter Site logo

Comments (53)

DoctorEenot avatar DoctorEenot commented on June 12, 2024 1

hi, the code needs to be updated. Authorization does not work.
if you have time, can you update it?

not soon, but I will take a look later, so do not expect any changes in nearest future.

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

Hi, check how you are passing phone number to "request_sms_code", it must start with the country code, for Russia, for example, you must write number like that: 79202600211.

I`v just checked functions "request_sms_code" and "send_sms_code", everything works fine.

From my expierience with Numbuster's api I can tell that sometimes they just don't send sms, so if you didn`t recieved sms, try again after 1-2 minutes, also try another number, free online numbers...

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

And yeah... request_sms_code doesn't need nothing else, just write something like that:

api = Numbuster()
api.request_sms_code('79219511844')
code = input('Code: ')
api.send_sms_code('79219511844',code)
print(api.access_token)

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

Thanks for your quick answers! Before I sent phone numbers with "+" prefix, just checked without "+", this didn't help. To be more precise, my tests were done for Ukrainian numbers, I'll try other numbers later.

Just to be sure I'm doing everything correctly: are you also receiving the following responses:

{"status_code":0,"status":"success","message":"","data":null}")

?

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

Yep. Everything ok, especialy if you are using functions which implemented in api.

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

There's realy problem with Urkranian/USA/Greek numbers, properly works only with russian numbers, even with the app running on the emulator.

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

I tried to use different services with Russian numbers for free SMS and still not able to receive a code.

Actually I'm not running your code, the function "request_sms_code" (and all the relevant functions) was implemented in Swift programming language and it is sent from iPhone application. I understand something is wrong in my setup. What is weird is that my calls receive the same successful responses as your Python API. I'm continue working on this issue when have time.

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

I'v just checked "v6_auth_agreement_code()" and looks like api allways returns {"status_code":0,"status":"success","message":"","data":null}"), even when you send wrong key, so check your implementation of "v6_auth_get()". And if you want, you can send me your implementation of that functions, I will try to help you.

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

Also check that function "another_profiles_without_code".

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

Oh, I didn't implement "another_profiles_without_code" since thought it is not required. Will add this function. I think another potentially problematic place could be "signatures.get_cnonce()": how much important is to randomize a nonce each time?

Of course I'll show you my code, need some time to prepare it. Again thanks for your help.

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

Yeahhh, "#Can be deleted, but meh..." was my little sarcastic joke, sorry :). You can allways use even that cnonce o5oorrrlBlbWKHRVuH7lBQdVCQEVKeXeTkAyA9H6FY8DT904sq , so it's not really necessary to randomise it every time, but Numbuster can start checking cnonce, so better randomise it at least ones, when program starts and use it for every request.
And again, sorry for "#Can be deleted, but meh...". "another_profiles_without_code" is the most important function in "request_sms_code" if you want, you can even delete v6_auth_get and v6_auth_agreement_code and use only "another_profiles_without_code"

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

Ah, you don't need to say "sorry", I had to understand it was a joke :). Actually it doesn't matter, I'm implementing "another_profiles_without_code" now...

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

"another_profiles_without_code" is successful, but sends empty response {}. Is it correctly? Should "another_profiles" be implemented as well?

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

That's correct, api just sends back empty response. "another_profiles_without_code" is the only one function that requests sms from server, so nope, you don't need to implement "another_profiles"

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

So, If I understand correctly, "another_profiles_without_code" is the only method which is required to receive SMS, right? This function is very simple and actually it is a POST HTTP request to URL "https://api.numbuster.com/api/old4a27f7a4025447ee5560a49bc5bcde34/profiles/without-code" with body {"phone" : "xxxxxxxxxx"}.

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

Correct. Don't forget about headers: 'User-Agent'='okhttp/3.9.1'
and 'Content-Type'='application/x-www-form-urlencoded' ,just in case...

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

Decided to send this API request using Postman - the same result: response is empty, but there is no code. It makes me crazy.

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

Is it ok that a part of URL "https://api.numbuster.com/api/old4a27f7a4025447ee5560a49bc5bcde34/profiles/without-code" is a hardcoded string "old4a27f7a4025447ee5560a49bc5bcde34"?

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

Yeah, that's real url for request, I don't know what '4a27f7a4025447ee5560a49bc5bcde34' exactly means(probably md5 hash, because that's obviously bytes), but it doesn't matter.

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

So yeah, answer for your question. Yes, that's hardcoded string in Numbuster's app.

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

Can I send you an import from Postman for review?

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

Yep.

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

Or you can just post code to pastebin.

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

https://drive.google.com/open?id=1vARfkECUttW7h1sOnVivgvKED4LNFPa3

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

https://api.numbuster.com/api/v6/auth/agreement_code?timestamp=1580586177&signature=5e04d26fce606be6caca214397b0c7edd2fbb3e0aa13756eb8e2b7de446080e0&cnonce=o5oorrrlBlbWKHRVuH7lBQdVCQEVKeXeTkAyA9H6FY8DT904sq&= that '=' on the end just mistake? And did the "another_profiles_without_code" work?

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

I don't know why "=" is in the end of the url, this is another example of url for "v6_auth_agreement_code":

https://api.numbuster.com/api/v6/auth/agreement_code?&timestamp=1580920550&signature=d0796f9d0efe736e97079a21596df0b487bd4edd3f7f24279dd8cb49370b5538&cnonce=o5oorrrlBlbWKHRVuH7lBQdVCQEVKeXeTkAyA9H6FY8DT904sq

And yes, the "another_profiles_without_code" works and receives an empty response.

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

So, all functions wrote correctly. Did you recieve sms code after calling "another_profiles_without_code"?

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

No, and this is a problem.

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

Are you able to send only "another_profiles_without_code" and receive an SMS?

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

Yes, I checked recently. But there's realy big problem with Numbuter's server, it just doesn't send sms sometimes(I even tried to request sms from emulator, real phones, it doesn't help so much), try that numbers https://onlinesim.ru/en .

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

I`v just checked, and Numbuster is updated there's one more function for registration, so I will reverse new version and update api.

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

That's the reason, why server doesn't send sms code sometimes.

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

Thanks! Waiting for updates.

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

I saw you released a new version 2.2. The main update is "actual_cnonce" function. As we discussed before, the only function which is required to receive SMS is "another_profiles_without_code". If I understand correctly, this function hasn't been changed. So I am not sure how this update can fix the issue, probably I'm missing something?

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

No, I just updated getting cnonce. BTW about new version of numbuster, now they check suspicios your request or not, and Numbuster's server always sends me "suspicios request". I even tried to register new account on my own phone number, with app running on my phone, that didn't solved the problem, I think there's huge bug on the Numbuster's server. If that's not a problem for you, can you please try to register new account in Numbuster(with phone or other devices)? That will really help me a lot.

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

Do you mean registering a new account using their application (for instance, iOS Numbuster app)? If yes, my answer is yes, I can do this.

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

Wow, that really helped me, because I was using only android devices and android app, after sending request with platform 'iOS', Numbuster sent back sms to phone. So it seems like there's problem only with Android.

(for instance, iOS Numbuster app)

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

Hm, but again, "another_profiles_without_code" doesn't require to specify platform at all. Are you calling "v6_auth_get" and "v6_auth_agreement_code" as well?

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

Only "v6_auth_get" requires it.

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

And there's one more api function v6/auth/precheck, it's called after "v6_auth_get"

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

Do you have this function only locally? It isn't pushed to the repo yet, right?

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

I have just pushed it, so you can find "v6_auth_precheck" in file NumbusterAPI.py and in signatures.py -"signature_v6_auth_precheck".

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

Thanks!

from numbuster-api.

igornazarov1991 avatar igornazarov1991 commented on June 12, 2024

Unfortunately, "v6_auth_precheck" sends me {"status_code":10023,"status":"suspicious_request","message":"Suspicious request","data":null}". Do you have the same issue now?

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

Yes, I've been receiving the same data every time, but, after "v6_auth_precheck", I just called another_profiles_without_code and everything worked, I can't still understand what Numbuster classify as suspicious request, because I receive the same error on all my Android devices, so I think that's just a bug. So just call v6_auth_precheck, and it doesn't matter,now, what server sends back.

from numbuster-api.

cgrozev avatar cgrozev commented on June 12, 2024

Hi. I am constantly getting the "suspicious request" message while trying to get a confirmation sms. I tried my Austrian number, as well as virtual Russian numbers, with the same result Have you managed to somehow figure out what causes the rejection?

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

Hi, unfortunately no.

from numbuster-api.

arturnex avatar arturnex commented on June 12, 2024

hi, the code needs to be updated. Authorization does not work.
if you have time, can you update it?

from numbuster-api.

kuzNRoman avatar kuzNRoman commented on June 12, 2024

Hello! I think that your code need some changes now. It doesn't work now. It's obvious, of course, because you haven't updated it.
Is it possible for you - to make some changes? I can help you or we can find another solution to this problem?
Thank you

from numbuster-api.

iGusev avatar iGusev commented on June 12, 2024

Hello! I think that your code need some changes now. It doesn't work now. It's obvious, of course, because you haven't updated it.
Is it possible for you - to make some changes? I can help you or we can find another solution to this problem?
Thank you

@kuzNRoman Tell me what you would like to change

If you need access to api for business, please contact us [email protected]

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

Hello! I think that your code need some changes now. It doesn't work now. It's obvious, of course, because you haven't updated it.
Is it possible for you - to make some changes? I can help you or we can find another solution to this problem?
Thank you

Hello, sorry but I don't have plans on updating api in nearest future.

from numbuster-api.

dedfft avatar dedfft commented on June 12, 2024

Could you please tell, where did you find 0woz2wTimes9izs0vFQjLmwqqSzAPNFtmWNcbOL6xJva5Molyb sol inapp? Can't find that string or how app makes hash in old version. But in new version, i can be found by string

from numbuster-api.

DoctorEenot avatar DoctorEenot commented on June 12, 2024

Could you please tell, where did you find 0woz2wTimes9izs0vFQjLmwqqSzAPNFtmWNcbOL6xJva5Molyb sol inapp? Can't find that string or how app makes hash in old version. But in new version, i can be found by string

I found it, when I was tracing calls to the cryptography library.

from numbuster-api.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.