How can I pass an object as parameter to apiary? -
i tried pass object parameter apiary, doesn't work correctly. new user apiary editor , need help!
the request body is:
{ callbackurl = "http://test.com", dlr = true, option1 = "option 1", option2 = "option 2", { "306936xxxxxx", "306936xxxxxx" }, dateintosend = 20180101, timeintosend = 1000, sms = new smsobj { sender = "demo", text = " test sms fallback", validity = 100, typesms = "sms", priority = 1 }, }
and in apiary's editor wrote below:
group send method
- parameters
- phonenumbers: xxxxxxxxxxxx, xxxxxxxxxx (required, array)
- dateintosend:
20180101
(optional, integer) - timeintosend:
20180101
(optional, integer) - dlr:
true
(optional, bool) - callbackurl:
http://test.com
(optional, string) - option1:
option 1
(optional, string) - option2:
option 2
(optional, string) - sms: (optional, smsobj object)
- sender:
demo
(required, string) - text:
text
(required, string) - validity:
100
(optional, integer) - typesms:
sms
(optional, string) - longsms:
false
(optional, bool) - priority:
1
(optional, integer)
- sender:
i believe problem object "sms" doesn't pass correct through post request.
do have idea?
thank help!
Comments
Post a Comment