Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #7982 > unrolled thread
| Started by | SteveMcNaughton <stevemcnaughton@auditron.com> |
|---|---|
| First post | 2015-04-23 08:40 -0700 |
| Last post | 2015-04-30 00:54 -0700 |
| Articles | 9 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Has anyone used Twilio? or have another SMS lib+service they've had success with? SteveMcNaughton <stevemcnaughton@auditron.com> - 2015-04-23 08:40 -0700
Re: Has anyone used Twilio? or have another SMS lib+service they've had success with? "Jamal Assaf" <someone@example.com> - 2015-04-24 12:17 -0400
Re: Has anyone used Twilio? or have another SMS lib+service they've had success with? SteveMcNaughton <stevemcnaughton@auditron.com> - 2015-04-24 19:13 -0700
Re: Has anyone used Twilio? or have another SMS lib+service they've had success with? "Jamal Assaf" <someone@example.com> - 2015-04-26 16:30 -0400
Re: Has anyone used Twilio? or have another SMS lib+service they've had success with? SteveMcNaughton <stevemcnaughton@auditron.com> - 2015-04-28 17:38 -0700
Re: Has anyone used Twilio? or have another SMS lib+service they've had success with? Sherlock <sherlock@sherlock.com.au> - 2015-04-29 06:52 -0700
Re: Has anyone used Twilio? or have another SMS lib+service they've had success with? Sherlock <sherlock@sherlock.com.au> - 2015-04-29 06:55 -0700
Re: Has anyone used Twilio? or have another SMS lib+service they've had success with? SteveMcNaughton <stevemcnaughton@auditron.com> - 2015-04-29 07:57 -0700
Re: Has anyone used Twilio? or have another SMS lib+service they've had success with? "Philippe Bayard (Belgium)" <philbayard@gmail.com> - 2015-04-30 00:54 -0700
| From | SteveMcNaughton <stevemcnaughton@auditron.com> |
|---|---|
| Date | 2015-04-23 08:40 -0700 |
| Subject | Has anyone used Twilio? or have another SMS lib+service they've had success with? |
| Message-ID | <3b6d8417-d613-4e3b-8583-2b96c7ef5f6b@googlegroups.com> |
Hello to all! been a while... Looking to shoot out SMS text messages from database for reminders. I was looking at Twilio service as it's priced right, but there were no libs that I saw that looked compatible without writing a lib, say in C#. Here's the pointer to the page I was looking at.... https://www.twilio.com/docs/libraries Any suggestions would be helpful, including other services and libs. :) Have plugged in Samsung S3 phone into my W7 workstation and it does show up as a modem and appears to support SMS. I can query the device using windows and see the responses, but I quickly tried some AT commands in my own ASCII window, but got no response. But that door is open too. Might just be the way I opened the port. Thanks Steve. BTW, seems like traffic on this group has waned greatly. Did everyone go .NET?
[toc] | [next] | [standalone]
| From | "Jamal Assaf" <someone@example.com> |
|---|---|
| Date | 2015-04-24 12:17 -0400 |
| Message-ID | <mhdqat$td3$1@speranza.aioe.org> |
| In reply to | #7982 |
Hi Steve, I've tested in C#, but if you can, create a COM visible .NET component and call it from VO. Jamal "SteveMcNaughton" wrote in message news:3b6d8417-d613-4e3b-8583-2b96c7ef5f6b@googlegroups.com... Hello to all! been a while... Looking to shoot out SMS text messages from database for reminders. I was looking at Twilio service as it's priced right, but there were no libs that I saw that looked compatible without writing a lib, say in C#. Here's the pointer to the page I was looking at.... https://www.twilio.com/docs/libraries Any suggestions would be helpful, including other services and libs. :) Have plugged in Samsung S3 phone into my W7 workstation and it does show up as a modem and appears to support SMS. I can query the device using windows and see the responses, but I quickly tried some AT commands in my own ASCII window, but got no response. But that door is open too. Might just be the way I opened the port. Thanks Steve. BTW, seems like traffic on this group has waned greatly. Did everyone go .NET?
[toc] | [prev] | [next] | [standalone]
| From | SteveMcNaughton <stevemcnaughton@auditron.com> |
|---|---|
| Date | 2015-04-24 19:13 -0700 |
| Message-ID | <e06c5032-cb0d-4c19-9a3c-191ddacb758d@googlegroups.com> |
| In reply to | #7991 |
Jamal, not something I'm familiar with [YET! :) ]. Can you detail where it might make sense to an old green horn like me or point me to something that can explain how to do that? Thanks. Steve > I've tested in C#, but if you can, create a COM visible .NET component and > call it from VO.
[toc] | [prev] | [next] | [standalone]
| From | "Jamal Assaf" <someone@example.com> |
|---|---|
| Date | 2015-04-26 16:30 -0400 |
| Message-ID | <mhjhtp$jp5$1@speranza.aioe.org> |
| In reply to | #7995 |
Here is a link: http://www.codeproject.com/Articles/7587/Exposing-COM-interfaces-of-a-NET-class-library-for Of course, I recommend you start learning simple .NET coding either in C# or VB.NET before you dive into the COM visible stuff; it is not fun once you realize its power. Jamal "SteveMcNaughton" wrote in message news:e06c5032-cb0d-4c19-9a3c-191ddacb758d@googlegroups.com... Jamal, not something I'm familiar with [YET! :) ]. Can you detail where it might make sense to an old green horn like me or point me to something that can explain how to do that? Thanks. Steve > I've tested in C#, but if you can, create a COM visible .NET component and > call it from VO.
[toc] | [prev] | [next] | [standalone]
| From | SteveMcNaughton <stevemcnaughton@auditron.com> |
|---|---|
| Date | 2015-04-28 17:38 -0700 |
| Message-ID | <c4963459-d274-4235-bd63-b1dd2fcc8f05@googlegroups.com> |
| In reply to | #7999 |
Thanks for the homework Jamal :) I took a quick look at your pointer. It'll keep me out of the taproom for a few months!! LOL On Sunday, April 26, 2015 at 4:30:55 PM UTC-4, Jamal Assaf wrote: > Here is a link: > > http://www.codeproject.com/Articles/7587/Exposing-COM-interfaces-of-a-NET-class-library-for > > Of course, I recommend you start learning simple .NET coding either in C# or > VB.NET before you dive into the COM visible stuff; it is not fun once you > realize its power. > > Jamal > > "SteveMcNaughton" wrote in message > news:e06c5032-cb0d-4c19-9a3c-191ddacb758d@googlegroups.com... > > Jamal, > > not something I'm familiar with [YET! :) ]. Can you detail where it might > make sense to an old green horn like me or point me to something that can > explain how to do that? > > Thanks. > > Steve > > > I've tested in C#, but if you can, create a COM visible .NET component and > > call it from VO.
[toc] | [prev] | [next] | [standalone]
| From | Sherlock <sherlock@sherlock.com.au> |
|---|---|
| Date | 2015-04-29 06:52 -0700 |
| Message-ID | <f8bdc37b-4424-4cb4-a8ea-60927a2b28ce@googlegroups.com> |
| In reply to | #7982 |
Steve
snip[ Looking to shoot out SMS text messages from database for reminders. ]
I have written many of these say 20 different formats.
Use REST API... use Http{} classes in VO.. if use VO
snip[ I was looking at Twilio service as it's priced right, but there were no libs that I saw that looked compatible without writing a lib, say in C#. Here's the ]
You dont need C#... all native VO code works fine
This code may help you.. but I use a number of techniques if HTTP or HTTPS and some SOCKET class... but there is nothing in VO I could not get working.
Phil McGuinness
-----------
sRequest := [<?xml version="1.0" encoding="UTF-8"?>] + CRLF + ;
[<api_request>] + CRLF + ; // Mandatory field
[<action>Transfer</action>] + CRLF + ; // Transfer / Login // Mandatory field
[<method>sms</method>] +CRLF + ; // Mandatory field
[<username>] + SELF:cUserName + [</username>] + CRLF + ; // Mandatory field
[<password>] + SELF:cPassword + [</password>] + CRLF + ; // Mandatory field
[<destination>] + CRLF + ; // required field
[<mobile_phone>] + AllTrim(SELF:cRecipientMobile) + [</mobile_phone>] + CRLF + ;
[</destination>] + CRLF + ; // required field
"<text><![CDATA[" + AllTrim(SELF:cSMSMessage) +"]]></text>" + CRLF + ;
[</api_request>] // Mandatory field
// [<sms_reply>0418441304</sms_reply>] + CRLF + ;
// [<path>sendsms</path>] + CRLF + ;
// [<reference>abv</reference>] + CRLF + ;
// ==== in the destination tag area
// [<cust_ref>abv</cust_ref>] + CRLF + ;
// [<attention>FRED</attention>] + CRLF + ;
SELF:nPort := INTERNET_DEFAULT_HTTP_PORT // 80
//
oHttp := CHttp{ "PrxxxxCom", SELF:nPort }
IF oHttp:ConnectRemote( SELF:cHost )
IF oHttp:OpenRequest( "POST", "/xmlApi/3/", INTERNET_FLAG_RELOAD + INTERNET_FLAG_KEEP_CONNECTION )
ENDIF
ENDIF
//
sHeaders := "Content-Length: " + NTrim(SLen(sRequest)) + CRLF + "Accept-Language: en" + CRLF + ;
"Connection: Keep-Alive" + CRLF + "Content-Type: TEXT/xml" + CRLF
//
pBuffer := StringAlloc( sRequest )
oHttp:SendRequest( sHeaders, pBuffer, SLen(sRequest) )
MemFree( pBuffer )
//
Sleep(1600)
SELF:cResponseData := oHttp:GetResponse()
SELF:cResponseData := StrTran( SELF:cResponseData, _CHR(10), CRLF )
//
oHttp:CloseRequest()
oHttp := NULL_OBJECT
//
[toc] | [prev] | [next] | [standalone]
| From | Sherlock <sherlock@sherlock.com.au> |
|---|---|
| Date | 2015-04-29 06:55 -0700 |
| Message-ID | <acc15934-b786-46ec-81b0-bd0e8af98534@googlegroups.com> |
| In reply to | #7982 |
Steve snip[ BTW, seems like traffic on this group has waned greatly. Did everyone go .NET? ] The future for some is .NET but I would say the biggest future is consuming and creating web sevices and apps using say Javascript, PHP, NODE and/or .NET but for web too much Microsoft and I and avoid the lock in these. To me Amazon and moving complete systems to there API S3 etc has a huge future. We do not even hire windows developers anymore only web guys as we port systems away from Desktop development. Phil McGuinness
[toc] | [prev] | [next] | [standalone]
| From | SteveMcNaughton <stevemcnaughton@auditron.com> |
|---|---|
| Date | 2015-04-29 07:57 -0700 |
| Message-ID | <d253c030-a408-4942-a431-0741629d9451@googlegroups.com> |
| In reply to | #8015 |
Thanks for both posts Phil. I will study the code this weekend when I hope to have some time. > We do not even hire windows developers anymore only web guys as we port systems away from Desktop development. Ouch, yea thanks for reminding me I'm the dinosaur I am. At my age, there seems to be less time for education! :( I have the desire and need, but not the time and direction. And, thanks to the current state of health care in the USA, not much potential upside for our current products to warrant a huge investment. So thanks for a little direction now I need to find the time! :) take care Steve.
[toc] | [prev] | [next] | [standalone]
| From | "Philippe Bayard (Belgium)" <philbayard@gmail.com> |
|---|---|
| Date | 2015-04-30 00:54 -0700 |
| Message-ID | <2f4c30a7-a6be-42f2-98f6-7caffc007823@googlegroups.com> |
| In reply to | #7982 |
Hi Steve, some of our customers are using twilio in our apps. For this purpose, i use the REST API with CURL, so i can manage all from VO. I've been trying some service in order to let the customer use different way of sending sms. Because some customers doesn't need a system like twilio when he have a phone with unlimited SMS. My differents options are now : - Twilio as main system ( Nexmo is also an option ), i really like the API which allow you to access almost everything. - MySMS.Com as a way to send sms occasionnaly ( i have a web service with some php page using the library of their API ) via a phone. - a phone app called "Sms Gateway" which allow to send sms wia an API ( via http request on local network, of via a mailbox ~ read a mail box and transform mail into sms ). It all depends on the need of the customer. I can give you some sample of one of those if you want. Best regards, Jean-Philippe
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web