Help - Search - Members - Calendar
Full Version: Bulk SMS - SmsTarget and SmsMessage.Price
Skype Community > English > Development, Betas and Skype Garage > Skype Public API
spud5
I'm using Skype4COM to log delivery reports for the individual targets in a group message. If I reference SmsTarget with SmsMessage.Price it only shows the cost of the group message (ie. the total cost).

How can I get the individual costs (ie. the cost per target) ?
scendix_
do you get SmsMessage.Price BEFORE sending the message?
cold you post some source snippets how you do that? Thanks

Christoph
spud5
You should be able to get the price when a target number is added to the message, but I haven't tested this. I would test by making a handler for SmsTargetStatusChanged and check the value of Message.Price when TSmsTargetStatus=smsTargetStatusAcceptable, if that makes sense.
scendix_
i tried this:

SmsMessageClass oSMS = new SmsMessageClass();
oSMS.Body = "test";
oSMS.TargetNumbers = "+170336XXXXX"; // with my real callerID

but i get a COMException on the last line :? .

I really would like to show the cost of the SMS to the user BEFORE he sends it...

Christoph
andreskaasik_
I am really sorry but it is NOT possible to get the price for each individual SMS message target now. The only number you get is the total price of all targets.
spud5
Thanks Andres, I will make an alternative method of calculation until this option is added to Skype4COM.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.