Re: Sending Text Messages From 4D

2019-08-05 Thread Jim Labos - infobase via 4D_Tech
Got it! Thanks Randy and the rest of you. It would have taken me a lot longer. The PostMan app really helped and yes the header MUST be included in order for it to work. Once I saw how a good request was formatted I was able to pinpoint my 4D code that was not doing the job 100%. All good now.

Re: Sending Text Messages From 4D

2019-08-05 Thread Jim Labos - infobase via 4D_Tech
Hi Randy, I just tried PostMan! Fantastic tool! A million thanks for suggesting that. However I am still getting the same 400 error. It's great to be able to see the complete request sent to Twilio. The formatting looks good. This is teh problem I was having on my own and that is why I asked

Re: Sending Text Messages From 4D

2019-08-05 Thread Jim Labos - infobase via 4D_Tech
Here are what the HTTP_REQUEST parameters look like. $lHTTPStatus:=HTTP Request(HTTP POST Method;$tURI;$tRequest;tResponse) $tURI="https://api.twilio.com/2010-04-01/Accounts/account SID goes here/Messages.json" $tRequest="FROM=%2B15551234537=%2B15551212=Test%20SMS" tResponse= "{"code": 21602,

Re: Sending Text Messages From 4D

2019-08-05 Thread Jeffrey Kain via 4D_Tech
Are you URLEncoding the body of the text message? Also, We have the country code with every phone number including the sending phone number (1 for US). Did you try that? > On Aug 5, 2019, at 2:06 PM, Jeffrey Kain wrote: > > Here's what I wrote for our app ($tUserName would be unique to you,

Re: Sending Text Messages From 4D

2019-08-05 Thread Randy Jaynes via 4D_Tech
Jim, Have you tried using the PostMan application (https://www.getpostman.com/postman ) to work out the proper form of sending these requests? I found it helped a lot in trying to figure out how to build the request to a couple REST APIs a last year. It

Re: Sending Text Messages From 4D

2019-08-05 Thread Jim Labos - infobase via 4D_Tech
Thanks Koen, but with the headers I get a 404. Not sure but I believe the headers are optional. My guess is that the "$tRequest" var is not formatted correctly. I'm going to ask Twilio if they can help here. Cheers Jim Labos - infobase - Jim Labos - infobase -- Sent from:

Re: Sending Text Messages From 4D

2019-08-05 Thread Tim Nevels via 4D_Tech
On Aug 5, 2019, at 2:00 PM, Jim Labos wrote: > Hi Tim (or anyone else that could help), > > I am looking for a quick and simple SMS solution and came upon your (Tim's) > message that you possibly had gotten some HTTP code snippets to send SMS via > 4D using Twilio. > > I tried and was

Re: Sending Text Messages From 4D

2019-08-05 Thread Koen Van Hooreweghe via 4D_Tech
Hi Jim, You're not sending the headers. You must add the arrays in HTTP Request. That might lead into an 400 'bad request' error. $lHTTPStatus:=HTTP Request(HTTP POST Method;$tURI;$tRequest;tResponse; atHeaderNames; atHeaderValues) HTH Koen > Op 5 aug. 2019, om 21:17 heeft Jim Labos -

Re: Sending Text Messages From 4D

2019-08-05 Thread Jim Labos - infobase via 4D_Tech
Thanks for the code example, much appreciated. I keep getting a 400 HTTP error however. I am not using "HTTP_Request_Build" as I don't have it but I assume the "*" is an option to omit or include some characters for formatting. Here is what I am using from your code less proper username (assume

Re: Sending Text Messages From 4D

2019-08-05 Thread Jeffrey Kain via 4D_Tech
Here's what I wrote for our app ($tUserName would be unique to you, along with $tPassword and $tFromNumber). The method HTTP_Request_Build is just building a text variable like: "From=155=156=This%20is%20the%20text" String_FixURL is just a URL-encode method that Miyako

Re: Sending Text Messages From 4D

2019-08-05 Thread Jim Labos - infobase via 4D_Tech
Hi Tim (or anyone else that could help), I am looking for a quick and simple SMS solution and came upon your (Tim's) message that you possibly had gotten some HTTP code snippets to send SMS via 4D using Twilio. I tried and was unsuccessful probably because of syntax so I gave up and moved on. I

Re: Sending Text Messages From 4D

2018-08-22 Thread Wayne Stewart via 4D_Tech
I used clickatell for a 4D summit presentation a few years back. It allowed two way communication. Regards, Wayne On Thu, 23 Aug 2018 at 00:04, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> wrote: > > I have a client that has asked me to add the option to send text messages to > cell phones

RE: Sending Text Messages From 4D

2018-08-22 Thread David Ringsmuth via 4D_Tech
Tim, I’ve integrated https://www.data24-7.com/index.php#pricing into one 4D system. It’s fairly cheap ($12/mo + $0.005 per lookup), and the lookups are stored locally, so they are one-time. David Ringsmuth From: Tim Nevels via 4D_Tech Sent: Wednesday, August 22, 2018 9:04 AM To:

Re: Sending Text Messages From 4D

2018-08-22 Thread Tim Nevels via 4D_Tech
On Aug 22, 2018, at 2:00 PM, Jim Hassler wrote: > We had a need to send texts to company employees so we have the luxury of > knowing the cell phone provider. So, we use something like this… > > Case of > >: ([User]Company Cell Phone Provider="AT") > >

Re: Sending Text Messages From 4D

2018-08-22 Thread Keith Culotta via 4D_Tech
This has been working for us, but we only use it occasionally. $err:=SMTP_QuickSend ($Host;$FromAddress;$msgTo;$subject;$message;0;25;$vAuthUserName;$sequence) where $msgTo is a text/phone# like 555...@vtext.com Keith - CDI > On Aug 22, 2018, at 9:04 AM, Tim Nevels via 4D_Tech

Re: Sending Text Messages From 4D

2018-08-22 Thread Dani Beaubien via 4D_Tech
I have been using http://plivo.com and it has worked well. I use it for sending out PIN #s for people to use when logging in. Dani > On Aug 22, 2018, at 8:10 AM, Darin Schroeder via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Tim, we've been using Twilio with a lot of success. > >

Re: Sending Text Messages From 4D

2018-08-22 Thread Jeffrey Kain via 4D_Tech
Same here. > On Aug 22, 2018, at 10:10 AM, Darin Schroeder via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Tim, we've been using Twilio with a lot of success. > > https://www.twilio.com/sms ** 4D Internet Users Group (4D

Re: Sending Text Messages From 4D

2018-08-22 Thread Darin Schroeder via 4D_Tech
Tim, we've been using Twilio with a lot of success. https://www.twilio.com/sms Darin On Wed, Aug 22, 2018 at 9:04 AM Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> wrote: > I have a client that has asked me to add the option to send text messages > to cell phones from 4D. I know this is

Re: Sending Text Messages From 4D

2018-08-22 Thread Patrick Emanuel via 4D_Tech
I know the Bertrand Soubeyrand provide a product doing this. https://www.soubeyrand-4d-developer.eu/ - Patrick EMANUEL Administrator www.association-qualisoft.eu (Soft1002, Simply Asso & QS_Toolbox) -- Sent from: