1 (edited by SWGAK 2016-08-04 02:51:48)

Topic: SMS COM Object API Help

I need to pass a few properties to the COM object to have it successfully send SMS messages here in the U.S.A.

I need to pass the following additional values to get Clickatell's API to work correctly:

1.) smsFrom = '19041234567'
2.) smsMO = 1

How can I do this using your implementation and pass these parameters to your SendSMS function.

When I try, MVD reports that there are "Too many actual parameters...".

Thank you

MAK

Re: SMS COM Object API Help

Hello,


Unfortunately TClickatellCom not support additional properties.


Clickatell also have HTTP api, example
https://www.clickatell.com/developers/a … -http-api/


procedure Form1_Button2_OnClick (Sender: string; var Cancel: boolean);
var
    s: string;
begin
    s := HTTPEncode('Your message');
    HTTPGet('https://api.clickatell.com/http/sendmsg?user=xxxxx&password=xxxxx&api_id=xxxxx&to=xxxxx&text=xxxxx'+s);
end;
Dmitry.

Re: SMS COM Object API Help

Good to know.

I'll just use the HTTPGet methods.

Thank you, Dmitry.

MAK