1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

uBot studio help needed

Discussion in 'General Programming Chat' started by BigTroll, Mar 31, 2016.

  1. BigTroll

    BigTroll Jr. VIP Jr. VIP

    Joined:
    Oct 15, 2014
    Messages:
    1,917
    Likes Received:
    754
    Occupation:
    CPA
    Location:
    ROMANIA
    Hi,
    Can someone help me to integrate some captcha API into ubot?
    I really appreciate your answers.
    Below are a the api's
    [​IMG]


    [​IMG]
    How to use our API clients

    Download the latest client, add it to your application and write something along the lines below, f.i in PHP:
    require_once 'deathbycaptcha.php';

    // Put your DBC credentials here.
    // Use DeathByCaptcha_HttpClient class if you want to use HTTP API.
    $client = new DeathByCaptcha_SocketClient(USERNAME, PASSWORD);

    // Put the CAPTCHA file name or handler, and desired timeout (in seconds) here:
    if ($captcha = $client->decode(CAPTCHA_FILE_NAME, TIMEOUT)) {
    echo $captcha['text'] . "\n";

    // Report the CAPTCHA if solved incorrectly.
    // Make sure the CAPTCHA was in fact incorrectly solved!
    if ( ... ) {
    $client->report($captcha['captcha']);
    }
    }

    // Repeat for other CAPTCHAs

    ...or in C#:
    // Do not forget to reference DeathByCaptcha.dll in your project!
    using DeathByCaptcha;

    // Put your DBC credentials here.
    // Use HttpClient class if you want to use HTTP API.
    Client client = (Client) new SocketClient(USERNAME, PASSWORD);

    // Put your CAPTCHA file name, stream, or vector of bytes,
    // and desired timeout (in seconds) here:
    Captcha captcha = client.Decode(CAPTCHA_FILE_NAME, TIMEOUT);
    if (captcha.Solved && captcha.Correct) {
    Console.WriteLine("CAPTCHA {0}: {1}", captcha.Id, captcha.Text);

    // Report the CAPTCHA if solved incorrectly.
    // Make sure the CAPTCHA was in fact incorrectly solved!
    if ( ... ) {
    client.Report(captcha);
    }
    }

    // Repeat for other CAPTCHAs
     
    Last edited: Mar 31, 2016
  2. BigTroll

    BigTroll Jr. VIP Jr. VIP

    Joined:
    Oct 15, 2014
    Messages:
    1,917
    Likes Received:
    754
    Occupation:
    CPA
    Location:
    ROMANIA
    Why nobody dont want to help me out? :(