Last active
December 10, 2016 20:30
-
-
Save kell18/8811d413989dfa5a69b5b709dd0c301f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Ответы API | |
// Успешно | |
{"is_success": true} | |
// Неуспешно, по внутренним причинам | |
{ | |
"is_success": false, | |
"error_code": 1, | |
"cause": "", | |
} | |
// Неуспешно - неправильно заполнена форма | |
{ | |
"is_success": false, | |
"error_code": 1, | |
"cause": "", | |
"form_errors": [ | |
"filed#1 is invalid ..." | |
// ... | |
], | |
} | |
/// Добавление заказа | |
{ | |
"api_token": "token", | |
"order": { | |
"FIO": "Albert", | |
"email": "[email protected]", | |
"phone": 12356, | |
} | |
} | |
/// Коды ошибок | |
// class ErrCodes(): | |
// format_err = 1 | |
// arg_err = 2 | |
// token_err = 3 | |
// invite_err = 4 | |
// fields_not_created_err = 5 | |
// invalid_form_err = 6 | |
// internal_err = 7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment