Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added user DNs #142

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions odins_spear/methods/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,24 @@ def users_stats(self, user_id: str, start_date:str, end_date: str = None,
#DIRECTED CALL PICKUP WITH BARGE IN
#DIRECTROUTE
#DN
def user_dns(self, user_id: str):
"""_summary_

Args:
user_id (str): Target user to retrieve assigned numbers.

Returns:
Dict: Numbers assigned to user.
"""

endpoint = "/users/dns"

params = {
"userId": user_id
}

return self.requester.get(endpoint, params=params)


def group_dns(self, service_provider_id:str, group_id:str):
"""Gets all numbers assigned to group.
Expand Down
Loading