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

Captcha required on login? #6

Closed
gauda opened this issue Jun 5, 2018 · 4 comments
Closed

Captcha required on login? #6

gauda opened this issue Jun 5, 2018 · 4 comments

Comments

@gauda
Copy link

gauda commented Jun 5, 2018

curl -d '{"username":"yourbox@gmail.com","password":"yourpassword"}' http://keep2share.cc/api/v2/login

results in

{"message":"Login attempt was exceed, please wait or verify your request via captcha challenge","status":"error","code":406,"errorCode":30}

can you please fix that?

@gauda
Copy link
Author

gauda commented Oct 9, 2018

Any news regarding this issue?

@dmdb
Copy link

dmdb commented Oct 16, 2018

It seems I know how to do it. First you need to request a captcha:
curl -d / http://keep2share.cc/api/v2/requestCaptcha

You'll get response:
{"status":"success","code":200,"challenge":"ae489d31d2a29","captcha_url":"http://keep2share.cc/api/v2/captcha.html?id=ae489d31d2a29"}

Then look at pic at captcha_url - http://keep2share.cc/api/v2/captcha.html?id=ae489d31d2a29
And perform new login request with "captcha_challenge" (provided by requestCaptcha) and "captcha_response" (symbols from picture) additional fields, for example:
curl -d '{"username":"yourbox@gmail.com","password":"yourpassword", "captcha_challenge": "ae489d31d2a29", "captcha_response": "rpseveo"}' http://keep2share.cc/api/v2/login

Response:
{"status":"success","code":200,"auth_token":"d4g93us8fd5ffrcfbwwwclqz7n"}

@n0v3xx
Copy link

n0v3xx commented May 21, 2019

#7

@keep2share
Copy link
Owner

keep2share commented Jun 17, 2019

You can use access_tokens mechanism instead of username/password pair.
See example here https://github.com/keep2share/api/blob/master/exampleAPI.php#L13
Or add your ip addres to white list on this page https://moneyplatform.biz/access/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants