Testing API with API Development Environment

You are here:--Testing API with API Development Environment

Testing API with API Development Environment

If you are one of those users who likes to make sure the API works like a charm prior to putting the hours into coding and manual testing then you could find this tutorial helpful.

You can make sure the API works perfectly for the type of captcha you want to solve through Death By Captcha, run tests repeatedly to ensure there are no bugs or too many inaccurate responses and save your test cases for future use.

 

1) Retrieving account specific information through the API

  • You can retrieve balance, ban status, rate and more with a few clicks:
  1. Make a GET request to ‘http://api.dbcapi.me/api/user’
  2. Insert your DBC username and password as parameters
  3. Send your request
Take this image as a reference:

 

 

2) Uploading your first Text/Math captcha

  • You can obtain  math operation solution, text captcha solution easily:
  1. Make a POST request to ‘http://api.dbcapi.me/api/captcha’
  2. Insert your DBC username, password and captchafile as ‘Body’ parameters
  3. Send your request
Take these images as a reference:

a)  Your captcha file:

 

b) Uploading captcha:

 

c) Viewing response from your Death By Captcha account:

 

 

3) Sending reCaptcha v2 for decoding and obtaining your token

  • You can obtain a TOKEN from a reCaptcha with a few steps:
    1. Open the text editor of your preference and insert your ‘token_params’ as follows:

    {

    “proxy”: “http://127.0.0.1:3128”,

    “proxytype”: “HTTP”,

    “googlekey”: “6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-“,

    “pageurl”: “http://test.com/path_with_recaptcha”

    }

    Then save as ‘anyfilename.json’
  1. NOTE: Using a proxy is optional, you can leave parameters empty for ‘proxy’ and ‘proxytype’ if you are not planning on using one, it is recommended using one however to avoid rejections and thus have higher accuracy rate.

  2. Make a POST request to ‘http://api.dbcapi.me/api/captcha’
  3. Insert your DBC username, password, captcha type and your ‘token_params.json’ file as ‘Body’ parameters
  4. Send your request

 

Take these images as a reference:

a) Preparing your JSON file:

 

b) Saving your JSON file:

 

c) Making the request:

 

d) Viewing response from your Death By Captcha account:

 

Done…

 

 

By |2019-06-11T12:06:42+00:00April 26th, 2019|Categories: Tutorials & Guides|Comments Off on Testing API with API Development Environment

CONTACT US

Need help? Get in touch!

Please, refer to the Contact Us section of our website Clicking Here.