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

Add json interface for sendsms #46

Open
m4r10k opened this issue Oct 5, 2015 · 1 comment
Open

Add json interface for sendsms #46

m4r10k opened this issue Oct 5, 2015 · 1 comment
Assignees
Milestone

Comments

@m4r10k
Copy link
Member

m4r10k commented Oct 5, 2015

Its time to introduce a new interface because the sendsms URL get | post interface is really old and is only useful for backward compatibility. And of course it lacks a lot of useful features.

The new interface should make things easier and more informational. For telephone number validation we should use https://github.com/daviddrysdale/python-phonenumbers.

The structure of the send interface should be like:

{
  "targetnr": "+4312345678",
  "validate": true,
  "appid": "4dd658b4-6b86-11e5-9d70-feff819cdc9f",
  "prioriry": 2,
  "content": "This is the SMS content text"
}

The answer should be like:

{
  "status": 0,
  "description": "success",
  "smsid": "e007c7ea-6b86-11e5-9d70-feff819cdc9f"
}
@m4r10k m4r10k self-assigned this Oct 5, 2015
@m4r10k m4r10k added this to the v1.4 milestone Oct 5, 2015
@baccenfutter
Copy link

👍

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

No branches or pull requests

2 participants