Restful API not returning the "to" parameter

96 views
Skip to first unread message

George Precious

unread,
Aug 7, 2017, 7:43:04 AM8/7/17
to Jasmin SMS Gateway
HI,
   I am trying to send sms' via the jasmin's restful api, all is working well, save for the fact that when my callback url receives the feedback i get everything asides the phone number which i am supposed to use to update the table i am fetching data from. According to the documentation i am supposed to get 

ParameterExample(s)Description / Notes
batchId50a4581a-6e46-48a4-b617-bbefe7faa3dcThe batch id
to1234567890The to parameter identifying the destination number
status11 or 0, indicates the status of a message sendout
statusTextSuccess “07033084-5cfd-4812-90a4-e4d24ffb6e3d”Extra text for the status


but i am getting 


ParameterExample(s)Description / Notes
batchId50a4581a-6e46-48a4-b617-bbefe7faa3dcThe batch id


status11 or 0, indicates the status of a message sendout
statusTextSuccess “07033084-5cfd-4812-90a4-e4d24ffb6e3d”Extra text for the status


What could be wrong?


Here is my sample parameter

{
  "batch_config": {
    "callback_url": "http://128.0.0.1:8000/api/successful-batch",
"errback_url": "http://128.0.0.1:8000/api/error-batch"
}, "messages": [ { "to": [ "2378358785", "34875878689", "8775874587" ], "content": "Hello world !" }, ] }


Please this is ready urgent

Bruno C

unread,
Aug 7, 2017, 3:54:41 PM8/7/17
to Jasmin SMS Gateway
George, what version are you using ?

George Precious

unread,
Aug 8, 2017, 3:10:33 AM8/8/17
to Jasmin SMS Gateway
The version i am using is 0.9rc16

Bruno C

unread,
Aug 8, 2017, 8:51:11 AM8/8/17
to Jasmin SMS Gateway
Please upgrade to the stable 0.9.25 and reconfirm.

George Precious

unread,
Aug 8, 2017, 5:18:04 PM8/8/17
to Jasmin SMS Gateway
Ok. Thanks, building the docker instance to use that version. One more question though, can i add a parameter to be sent to my callback url e.g message_id:12, i actually want to identify the each message by a unique id asides the phone number which might raise too much complications for cases where multiple messages are sent to the same phone number. Thanks 

George Precious

unread,
Aug 8, 2017, 7:39:37 PM8/8/17
to Jasmin SMS Gateway
Updated and it worked i now see the 'to" parameter, but the issue of wanting to tag a message for each user is still there. Is there anyway this could be done. I want to be able to make an update even when an error occurs. Thank a lot for the first answer.
Reply all
Reply to author
Forward
0 new messages