Skip to content

Add aidEncrypted metadata key to TenDI request - #52

Merged
grk717 merged 1 commit into
mainfrom
sdk-bot/856bde0a-add-aidencrypted-metadata-key-to-tendi-r-1b3f
Oct 12, 2026
Merged

grk717 merged 1 commit into
mainfrom
sdk-bot/856bde0a-add-aidencrypted-metadata-key-to-tendi-r-1b3f

Conversation

@capmonster-sdk-bot

Copy link
Copy Markdown

Context

The TenDI documentation (https://docs.capmonster.cloud/docs/captchas/tendi.txt) lists a new optional request parameter:

aidEncrypted (inside metadata) (string, optional): This parameter contains the Aid value, which must be obtained from the target website before creating a task. ... Important: this parameter is not used on all websites. If the website does not return Aid, you do not need to pass aidEncrypted. The aidEncrypted value is single-use: a new Aid must be obtained for each new task.

The docs' request example puts it into metadata next to captchaUrl.

Changes

  • capmonstercloud_client/requests/TenDiCustomTaskRequest.py: aidEncrypted added to the allowed metadata keys, with a str type check in validate_metadata; metadata field description and class docstring updated. getTaskDict() already forwards metadata unchanged.
  • test/tendi_test.py: tests for aidEncrypted together with captchaUrl, alone, and a wrong type being rejected.
  • capmonstercloud_client/version.txt: 4.3.0 -> 4.3.1 (new parameter on an existing request).

Testing

python test/tendi_test.py (unittest).

Open questions

None.


Prepared automatically by the SDK update bot. Please review before merging.

@grk717
grk717 self-requested a review October 12, 2026 12:50
@grk717 grk717 self-assigned this Oct 12, 2026
@grk717
grk717 merged commit 130bc53 into main Oct 12, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant