Skip to content

Commit

Permalink
Added user DNs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Prescott committed Nov 12, 2024
1 parent 61ec1fd commit 2208fd8
Showing 1 changed file with 18 additions and 0 deletions.
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

0 comments on commit 2208fd8

Please sign in to comment.