...
To solve a captcha, you need:
Create captcha task via createTask method which will return task ID.
Wait for a while. Depending on the system load, you will receive an answer after a time in the range from 300ms to 6s.
Request captcha solution with getTaskResult method. If captchas are not solved yet, go to step #2.
Additional methods:
Check account balance
...