Skip to content

Fix Java SDK to match real Truelist API#1

Merged
coreyhaines31 merged 1 commit into
developmentfrom
fix/real-api
Feb 21, 2026
Merged

Fix Java SDK to match real Truelist API#1
coreyhaines31 merged 1 commit into
developmentfrom
fix/real-api

Conversation

@coreyhaines31

Copy link
Copy Markdown
Collaborator

Summary

  • Endpoint: POST /api/v1/verify_inline?email=... (query param, no body)
  • Account: GET /me with nested response
  • Removed formValidate, formApiKey, isFreeEmail
  • New fields: domain, canonical, mxRecord, firstName, lastName, verifiedAt
  • Uses @SerializedName annotations for field mapping

Test plan

  • Tests updated with real API mock data
  • Build passes

🤖 Generated with Claude Code

- Change validate endpoint from POST /api/v1/verify (JSON body) to
  POST /api/v1/verify_inline?email=... (query param, no body)
- Change account endpoint from GET /api/v1/account to GET /me
- Remove formValidate() and formApiKey (form_verify does not exist)
- Update ValidationResult with new fields and SerializedName mappings
- Remove freeEmail/role/disposable boolean fields
- Update state values: valid->ok, invalid->email_invalid, add accept_all
- Update sub-states: ok->email_ok, disposable_address->is_disposable,
  role_address->is_role, unknown->unknown_error, add failed_smtp_check
- Parse response from emails array wrapper
- Update AccountInfo with name, uuid, timeZone, adminRole, nested Account
- Update all tests and README

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coreyhaines31 coreyhaines31 merged commit 771d6fd into development Feb 21, 2026
3 checks passed
@coreyhaines31 coreyhaines31 deleted the fix/real-api branch February 21, 2026 11:25
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