Skip to content

Commit

Permalink
fix: Ошибки отправки смс
Browse files Browse the repository at this point in the history
Не приходил sms_id в ответе
Добавил возврат текста статуса
  • Loading branch information
iredun committed Jun 21, 2021
1 parent 1de787c commit 3bab696
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ from smsru.service import SmsRuApi
api = SmsRuApi()
result = api.send_one_sms("+79888888888", "Test") # телефон и сообщение
# result: {
# '79888888888': {'status': True, 'status_code': 100, 'sms_id': 0000-0000, 'status_text': ''}
# '79888888888': {'status': True, 'status_code': 100, 'sms_id': 0000-0000, 'status_text': 'Статус'}
# }
```

Expand All @@ -100,8 +100,8 @@ result = api.send_multi_sms({
'+79888888889': 'test 2',
})
# result: {
# '79888888888': {'status': True, 'status_code': 100, 'sms_id': 0000-0000, 'status_text': ''},
# '79888888889': {'status': True, 'status_code': 100, 'sms_id': 0000-0000, 'status_text': ''}
# '79888888888': {'status': True, 'status_code': 100, 'sms_id': 0000-0000, 'status_text': 'Статус'},
# '79888888889': {'status': True, 'status_code': 100, 'sms_id': 0000-0000, 'status_text': 'Статус'}
# }
```

Expand Down

0 comments on commit 3bab696

Please sign in to comment.