Fix Python SDK to match real Truelist API#1
Merged
Conversation
- Change validate endpoint from POST /api/v1/verify (JSON body) to POST /api/v1/verify_inline (query param) - Change account endpoint from GET /api/v1/account to GET /me - Remove form_validate method (endpoint does not exist) - Update ValidationResult: remove free_email/role/disposable booleans, add domain/canonical/mx_record/first_name/last_name/verified_at fields - Map API field names: address->email, email_state->state, email_sub_state->sub_state, did_you_mean->suggestion - Parse response from emails array wrapper - Update AccountInfo: replace plan/credits with name/uuid/time_zone/is_admin_role/payment_plan - Add is_disposable and is_role convenience properties checking sub_state - Update is_valid/is_invalid to check ok/email_invalid states - Update all tests and README to match Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /api/v1/verify_inline?email=...(query param, no body)GET /mewith nested responseform_validate,form_api_key,is_free_emailTest plan
🤖 Generated with Claude Code