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

API Raises 400 if user license is nonexistent/wrong #55

Closed
malkin0xb8 opened this issue Jun 27, 2024 · 1 comment · Fixed by #78
Closed

API Raises 400 if user license is nonexistent/wrong #55

malkin0xb8 opened this issue Jun 27, 2024 · 1 comment · Fixed by #78
Assignees
Labels
bug Something isn't working

Comments

@malkin0xb8
Copy link
Collaborator

malkin0xb8 commented Jun 27, 2024

In functions like user_call_center() if the input UserID doesn't have an agent license the function will return with Http Error 400 instead of returning an empty Json value.

Current:

requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.api.com/api/v2/users/call-center?userId=userID@userID.com

Expected:

[]
@malkin0xb8 malkin0xb8 added the bug Something isn't working label Jun 27, 2024
@malkin0xb8
Copy link
Collaborator Author

Noticing the same issue is happening for call centres:

out = magic.get.group_call_center_forced_forwarding(service_user_id=service_user_id)
print(out, type(out))

Return the same error code.

Possibly related to the fact its Call Forwarding Selective, instead of just generic forwarding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants