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

Добавлен функционал отправки авторизационного кода звонком #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shahruslan
Copy link

На сколько я понимаю, все Response-классы работали с не-json ответами. Но метод звонка возвращает возвращает и json, и просто text, в зависимости от самого ответа. Например в случае успешного ответа:

{
    "status": "OK",
    "code": "1435",
    "call_id": "000000-10000000",
    "cost": 0.4,
    "balance": 4122.56
}

Если указать не валидный номер телефона, то:

{
    "status": "ERROR",
    "status_text": "Номер указан неверно"
}

А если не указать токен/логин пароль, то ответ будет такой:

"301\n
"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant