Skip to content

Support importId, email and freeSwitchExtension lookups in users_info#387

Merged
jadolg merged 2 commits into
masterfrom
feature/users-info-lookup-params
Jun 17, 2026
Merged

Support importId, email and freeSwitchExtension lookups in users_info#387
jadolg merged 2 commits into
masterfrom
feature/users-info-lookup-params

Conversation

@jadolg

@jadolg jadolg commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Closes #386.

users_info only allowed user_id and username and raised before any other lookup could be used. The API also accepts importId, email (>= 8.4.0) and freeSwitchExtension (>= 8.5.0), so the method now takes import_id, email and free_switch_extension too. Older servers are unaffected since the wrapper just forwards whichever parameter is given.

users_info previously restricted lookups to user_id and username, raising
an exception before any other lookup parameter could be used. The API
(get-users-info) accepts userId, username, importId, email (>= 8.4.0) and
freeSwitchExtension (>= 8.5.0), with exactly one required per request.

Add import_id, email and free_switch_extension parameters, mapping them to
the documented importId/email/freeSwitchExtension query parameters, and
update the missing-param error message accordingly.

Closes #386
@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.36%. Comparing base (5fae204) to head (2ad7a0b).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #387   +/-   ##
=======================================
  Coverage   99.35%   99.36%           
=======================================
  Files          53       53           
  Lines        2803     2831   +28     
  Branches      157      160    +3     
=======================================
+ Hits         2785     2813   +28     
  Misses         14       14           
  Partials        4        4           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud

Copy link
Copy Markdown

@jadolg jadolg merged commit b42cffe into master Jun 17, 2026
42 checks passed
@jadolg jadolg deleted the feature/users-info-lookup-params branch June 17, 2026 18:19
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.

User info method. Wrapper restricts the parameters set which are already allowed by API.

1 participant