Skip to content

ENGDESK-39615: Add active_calls method to Connection class#91

Closed
ai-swe-agent wants to merge 5 commits intomasterfrom
ENGDESK-39615-active-calls-method
Closed

ENGDESK-39615: Add active_calls method to Connection class#91
ai-swe-agent wants to merge 5 commits intomasterfrom
ENGDESK-39615-active-calls-method

Conversation

@ai-swe-agent
Copy link
Copy Markdown
Collaborator

@ai-swe-agent ai-swe-agent commented Mar 21, 2025

Description

This PR adds the active_calls method to the Connection class in the Telnyx Python SDK. This method allows users to retrieve active calls for a given connection.

Changes

  • Added the nested_resource_class_methods decorator to the Connection class with the "active_call" resource and "list" operation
  • Implemented the active_calls instance method that calls the generated list_active_calls class method
  • Added tests for both the instance method and class method

Related Issues

Fixes: ENGDESK-39615

Usage

After this change, users will be able to retrieve active calls using either:

# Instance method
connection = telnyx.Connection.retrieve("connection_id")
active_calls = connection.active_calls()

# Class method
active_calls = telnyx.Connection.list_active_calls("connection_id")

@ADandyGuyInSpace ADandyGuyInSpace marked this pull request as ready for review March 21, 2025 15:34
@dmmc12
Copy link
Copy Markdown
Collaborator

dmmc12 commented Mar 28, 2025

Thanks for the catch on the other connection types @ADandyGuyInSpace. Any reason the CI's are failing right now and when can we merge?

@dmmc12
Copy link
Copy Markdown
Collaborator

dmmc12 commented Apr 2, 2025

@ADandyGuyInSpace friendly reminder to merge and push.

@dmmc12 dmmc12 closed this Aug 6, 2025
stainless-app bot pushed a commit that referenced this pull request Mar 31, 2026
…ication

feat(lib): add ED25519 webhook signature verification
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants