Vkontakte API using OAuth does not work with Captcha

五迷三道 提交于 2019-12-03 22:03:52

Captcha error

Error code: 14

Error text: Captcha needed

and captcha confirmation is required, when:

action (e.g. sending a message) is performed too frequently, an API request may return "Captcha needed" error. After that a user needs to enter a code from the image and resend a request with a Captcha code input in the request parameters.

More information can be found in their manual.

If this error encounters, you need to process additionaly the following parameters from the response with the error message:

  1. captcha_sid – captcha identifier;
  2. captcha_img – a link to an image that will be shown to a user.

When user enters text from captcha_img you have to re-send the request adding following parameters:

  1. captcha_sid – received ID;
  2. captcha_key – text input you've gotten from user.

Do not forget to provide the valid access token as well, to make the user authorization, or the request would be declined with another type of error.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!