{"action":"opened","issue":{"url":"https://api.github.com/repos/n0r1sk/smsgateway/issues/46","labels_url":"https://api.github.com/repos/n0r1sk/smsgateway/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/n0r1sk/smsgateway/issues/46/comments","events_url":"https://api.github.com/repos/n0r1sk/smsgateway/issues/46/events","html_url":"https://github.com/n0r1sk/smsgateway/issues/46","id":109846772,"number":46,"title":"Add json interface for sendsms","user":{"login":"kleinsasserm","id":9364572,"avatar_url":"https://avatars.githubusercontent.com/u/9364572?v=3","gravatar_id":"","url":"https://api.github.com/users/kleinsasserm","html_url":"https://github.com/kleinsasserm","followers_url":"https://api.github.com/users/kleinsasserm/followers","following_url":"https://api.github.com/users/kleinsasserm/following{/other_user}","gists_url":"https://api.github.com/users/kleinsasserm/gists{/gist_id}","starred_url":"https://api.github.com/users/kleinsasserm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kleinsasserm/subscriptions","organizations_url":"https://api.github.com/users/kleinsasserm/orgs","repos_url":"https://api.github.com/users/kleinsasserm/repos","events_url":"https://api.github.com/users/kleinsasserm/events{/privacy}","received_events_url":"https://api.github.com/users/kleinsasserm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/n0r1sk/smsgateway/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"kleinsasserm","id":9364572,"avatar_url":"https://avatars.githubusercontent.com/u/9364572?v=3","gravatar_id":"","url":"https://api.github.com/users/kleinsasserm","html_url":"https://github.com/kleinsasserm","followers_url":"https://api.github.com/users/kleinsasserm/followers","following_url":"https://api.github.com/users/kleinsasserm/following{/other_user}","gists_url":"https://api.github.com/users/kleinsasserm/gists{/gist_id}","starred_url":"https://api.github.com/users/kleinsasserm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kleinsasserm/subscriptions","organizations_url":"https://api.github.com/users/kleinsasserm/orgs","repos_url":"https://api.github.com/users/kleinsasserm/repos","events_url":"https://api.github.com/users/kleinsasserm/events{/privacy}","received_events_url":"https://api.github.com/users/kleinsasserm/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/n0r1sk/smsgateway/milestones/2","html_url":"https://github.com/n0r1sk/smsgateway/milestones/v1.4","labels_url":"https://api.github.com/repos/n0r1sk/smsgateway/milestones/2/labels","id":1338689,"number":2,"title":"v1.4","description":"","creator":{"login":"kleinsasserm","id":9364572,"avatar_url":"https://avatars.githubusercontent.com/u/9364572?v=3","gravatar_id":"","url":"https://api.github.com/users/kleinsasserm","html_url":"https://github.com/kleinsasserm","followers_url":"https://api.github.com/users/kleinsasserm/followers","following_url":"https://api.github.com/users/kleinsasserm/following{/other_user}","gists_url":"https://api.github.com/users/kleinsasserm/gists{/gist_id}","starred_url":"https://api.github.com/users/kleinsasserm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kleinsasserm/subscriptions","organizations_url":"https://api.github.com/users/kleinsasserm/orgs","repos_url":"https://api.github.com/users/kleinsasserm/repos","events_url":"https://api.github.com/users/kleinsasserm/events{/privacy}","received_events_url":"https://api.github.com/users/kleinsasserm/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-10-05T17:21:56Z","updated_at":"2015-10-05T17:32:03Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-10-05T17:32:02Z","updated_at":"2015-10-05T17:32:02Z","closed_at":null,"body":"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.\r\n\r\nThe new interface should make things easier and more informational. For telephone number validation we should use https://github.com/daviddrysdale/python-phonenumbers.\r\n\r\nThe structure of the send interface should be like:   \r\n\r\n```\r\n{\r\n  \"targetnr\": \"+4312345678\",\r\n  \"validate\": true,\r\n  \"appid\": \"4dd658b4-6b86-11e5-9d70-feff819cdc9f\",\r\n  \"prioriry\": 2,\r\n  \"content\": \"This is the SMS content text\"\r\n}\r\n```\r\nThe answer should be like:   \r\n```\r\n{\r\n  \"status\": 0,\r\n  \"description\": \"success\",\r\n  \"smsid\": \"e007c7ea-6b86-11e5-9d70-feff819cdc9f\"\r\n}\r\n```\r\n \r\n\r\n\r\n\r\n"}}