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

АПИ для удаления транка #31

Closed
catindev opened this issue Aug 9, 2017 · 0 comments
Closed

АПИ для удаления транка #31

catindev opened this issue Aug 9, 2017 · 0 comments
Labels

Comments

@catindev
Copy link
Owner

catindev commented Aug 9, 2017

Чтобы удалить транк нужно сделать запрос:
DELETE /accounts/{accountID}/trunks/{trunkID}?user_session={значение}
где accountID это идентификатор аккаунта и trunkID это идентификатор транка.

В ответ АПИ возвращает успешный статус удаления:

{
    status: 200
}

Если сессия будет устаревшей, то АПИ вернёт ошибку:
{ status:403, message: "Ошибка аутентификации" }

@catindev catindev added the docs label Aug 9, 2017
@exoriri exoriri closed this as completed Aug 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants