diff --git a/odins_spear/methods/get.py b/odins_spear/methods/get.py index e727ee1..dbe95c4 100644 --- a/odins_spear/methods/get.py +++ b/odins_spear/methods/get.py @@ -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.