{"id":1280,"date":"2019-04-26T14:50:44","date_gmt":"2019-04-26T14:50:44","guid":{"rendered":"http:\/\/127.0.0.1:8086\/?p=1280"},"modified":"2019-06-11T12:06:42","modified_gmt":"2019-06-11T12:06:42","slug":"1280","status":"publish","type":"post","link":"https:\/\/deathbycaptcha.com\/blog\/tutorials-guides\/1280","title":{"rendered":"Testing API with API Development Environment"},"content":{"rendered":"<p>If you are one of those users who likes to make sure the <strong>API works like a charm<\/strong> prior to putting the hours into coding and manual testing then you could find this tutorial helpful.<\/p>\n<p>You can make sure the API works perfectly for the type of captcha you want to solve through <strong>Death By Captcha<\/strong>, run tests repeatedly to ensure there are no bugs or too many inaccurate responses and <strong>save your test cases for future use<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<h4 style=\"text-align: left;\">1) Retrieving account specific information through the API<\/h4>\n<ul>\n<li>You can<em><strong> retrieve balance<\/strong><\/em>,<em><strong> ban status<\/strong><\/em>, <em><strong>rate<\/strong><\/em> and more with a few clicks:<\/li>\n<\/ul>\n<ol>\n<li>Make a GET request to \u2018http:\/\/api.dbcapi.me\/api\/user\u2019<\/li>\n<li>Insert your DBC username and password as parameters<\/li>\n<li>Send your request<\/li>\n<\/ol>\n<h6><strong>Take this image as a reference:<\/strong><\/h6>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1282\" style=\"border: 0.5px solid gray; border-radius: 15px 50px 30px;\" src=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-account-1024x512.png\" alt=\"\" width=\"573\" height=\"287\" srcset=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-account-200x100.png 200w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-account-300x150.png 300w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-account-400x200.png 400w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-account-600x300.png 600w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-account-768x384.png 768w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-account-800x400.png 800w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-account-1024x512.png 1024w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-account.png 1026w\" sizes=\"auto, (max-width: 573px) 100vw, 573px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4 style=\"text-align: left;\">2) Uploading your first Text\/Math captcha<\/h4>\n<ul>\n<li>You can<em><strong>\u00a0obtain\u00a0 math operation solution, text captcha solution<\/strong><\/em>\u00a0easily:<\/li>\n<\/ul>\n<ol>\n<li>Make a <strong>POST<\/strong> request to \u2018http:\/\/api.dbcapi.me\/api\/captcha\u2019<\/li>\n<li>Insert your DBC username, password and captchafile as \u2018Body\u2019 parameters<\/li>\n<li><strong>Send your request<\/strong><\/li>\n<\/ol>\n<h6><strong>Take these images as a reference:<\/strong><\/h6>\n<p><em><strong>a)\u00a0 Your captcha file:<\/strong><\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1283\" style=\"border: 1px solid gray;\" src=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/captcha-file.png\" alt=\"\" width=\"110\" height=\"54\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><em><strong>b) Uploading captcha:<\/strong><\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1284\" style=\"border: 0.5px solid gray; border-radius: 15px 50px 30px;\" src=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-text.png\" alt=\"\" width=\"662\" height=\"318\" srcset=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-text-200x96.png 200w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-text-300x144.png 300w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-text-400x192.png 400w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-text-600x289.png 600w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-text-768x369.png 768w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-text-800x385.png 800w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/testing-text.png 1021w\" sizes=\"auto, (max-width: 662px) 100vw, 662px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><em><strong>c) Viewing response from your Death By Captcha account:<\/strong><\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1285 \" style=\"border: 0.5px solid gray; border-radius: 15px 50px 30px;\" src=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/text-result.png\" alt=\"\" width=\"575\" height=\"263\" srcset=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/text-result-200x91.png 200w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/text-result-300x137.png 300w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/text-result-400x183.png 400w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/text-result-600x274.png 600w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/text-result.png 750w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/p>\n<h4><\/h4>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4 style=\"text-align: left;\">3) Sending reCaptcha v2 for decoding and obtaining your token<\/h4>\n<ul>\n<li>You can<em><strong>\u00a0obtain a TOKEN from a reCaptcha<\/strong><\/em>\u00a0with a few steps:<\/li>\n<\/ul>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li style=\"text-align: left;\">Open the text editor of your preference and insert your \u2018token_params\u2019 as follows:<\/li>\n<\/ol>\n<div style=\"padding-left: 60px;\">\n<p>{<\/p>\n<p>&#8220;proxy&#8221;: &#8220;http:\/\/127.0.0.1:3128&#8221;,<\/p>\n<p>&#8220;proxytype&#8221;: &#8220;HTTP&#8221;,<\/p>\n<p>&#8220;googlekey&#8221;: &#8220;6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-&#8220;,<\/p>\n<p>&#8220;pageurl&#8221;: &#8220;http:\/\/test.com\/path_with_recaptcha&#8221;<\/p>\n<p>}<\/p>\n<\/div>\n<div style=\"padding-left: 30px;\">Then <em><strong>save as<\/strong><\/em> \u2018anyfilename.json\u2019<\/div>\n<\/li>\n<li style=\"list-style-type: none;\">\n<div style=\"padding-left: 30px;\"><\/div>\n<p><strong>NOTE:<\/strong> Using a proxy is optional, you can leave parameters empty for \u2018proxy\u2019 and \u2018proxytype\u2019 if you are not planning on using one, it is recommended using one however to avoid rejections and thus have higher accuracy rate.<\/li>\n<li>Make a<strong> POST<\/strong> request to \u2018http:\/\/api.dbcapi.me\/api\/captcha\u2019<\/li>\n<li>Insert your DBC username, password, captcha type and your \u2018token_params.json\u2019 file as \u2018Body\u2019 parameters<\/li>\n<li><strong>Send your request<\/strong><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h6><strong>Take these images as a reference:<\/strong><\/h6>\n<p><em><strong>a) Preparing your JSON file:<\/strong><\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1286 size-full\" style=\"border: 1px solid gray;\" src=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/json-file.png\" alt=\"\" width=\"488\" height=\"165\" srcset=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/json-file-200x68.png 200w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/json-file-300x101.png 300w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/json-file-400x135.png 400w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/json-file.png 488w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><em><strong>b) Saving your JSON file:<\/strong><\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1287 \" style=\"border: 0.5px solid gray; border-radius: 15px 50px 30px;\" src=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/json-file-save.png\" alt=\"\" width=\"372\" height=\"151\" srcset=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/json-file-save-200x81.png 200w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/json-file-save-300x122.png 300w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/json-file-save-400x163.png 400w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/json-file-save.png 539w\" sizes=\"auto, (max-width: 372px) 100vw, 372px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1288 \" style=\"border: 0.5px solid gray; border-radius: 15px 50px 30px;\" src=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/json-file-save-2.png\" alt=\"\" width=\"507\" height=\"96\" srcset=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/json-file-save-2-200x38.png 200w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/json-file-save-2-300x57.png 300w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/json-file-save-2-400x76.png 400w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/json-file-save-2-600x114.png 600w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/json-file-save-2.png 607w\" sizes=\"auto, (max-width: 507px) 100vw, 507px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><em><strong>c) Making the request:<\/strong><\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1289 \" style=\"border: 0.5px solid gray; border-radius: 15px 50px 30px;\" src=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/making-request-token.png\" alt=\"\" width=\"645\" height=\"360\" srcset=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/making-request-token-200x111.png 200w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/making-request-token-300x167.png 300w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/making-request-token-400x223.png 400w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/making-request-token-600x334.png 600w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/making-request-token-768x428.png 768w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/making-request-token-800x446.png 800w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/making-request-token.png 1001w\" sizes=\"auto, (max-width: 645px) 100vw, 645px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><em><strong>d) Viewing response from your Death By Captcha account:<\/strong><\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1290 \" style=\"border: 0.5px solid gray; border-radius: 15px 50px 30px;\" src=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/result-token.png\" alt=\"\" width=\"501\" height=\"410\" srcset=\"https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/result-token-200x164.png 200w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/result-token-300x245.png 300w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/result-token-400x327.png 400w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/result-token-600x491.png 600w, https:\/\/deathbycaptcha.com\/blog\/wp-content\/uploads\/2019\/04\/result-token.png 746w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Done&#8230;<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[56],"tags":[],"class_list":["post-1280","post","type-post","status-publish","format-standard","hentry","category-tutorials-guides"],"_links":{"self":[{"href":"https:\/\/deathbycaptcha.com\/blog\/wp-json\/wp\/v2\/posts\/1280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deathbycaptcha.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deathbycaptcha.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deathbycaptcha.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deathbycaptcha.com\/blog\/wp-json\/wp\/v2\/comments?post=1280"}],"version-history":[{"count":39,"href":"https:\/\/deathbycaptcha.com\/blog\/wp-json\/wp\/v2\/posts\/1280\/revisions"}],"predecessor-version":[{"id":1381,"href":"https:\/\/deathbycaptcha.com\/blog\/wp-json\/wp\/v2\/posts\/1280\/revisions\/1381"}],"wp:attachment":[{"href":"https:\/\/deathbycaptcha.com\/blog\/wp-json\/wp\/v2\/media?parent=1280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deathbycaptcha.com\/blog\/wp-json\/wp\/v2\/categories?post=1280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deathbycaptcha.com\/blog\/wp-json\/wp\/v2\/tags?post=1280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}