API ?

API ? SearchSearch
Author Message
Anonymous
 
Posted on Thursday, June 24, 2004 - 12:50 pm:   

Hi!

I am in need of an sms server that I can access from our employee program (self-created in VB6). THe plan is to create a new module in our program that will handle sms distribution (via an sms server). Is there an API in Nowsms that can be used? Or is html the only way of communicating with the server?

Best regards,
Kenneth J. Bjornstad
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2911
Registered: 10-2002
Posted on Friday, June 25, 2004 - 05:32 pm:   

Hi Kenneth,

It's relatively easy to generate HTTP requests from VB.

A word of warning up-front ... I am not a VB expert, so this is just an example based upon what I have seen from some web searches.

url = "http://127.0.0.1:8800/?PhoneNumber=recipient&text=this+is+a+test&user=username&p assword=password"

Set Http = CreateObject ("WinHttp.WinHttpRequest.5")

Http.Open "GET",url,False
Http.Send

'Print the Status of the connection
tmp = Http.Status ' & " - " & Http.StatusText
msgbox tmp


Basically, you'll want to check Http.Status to make sure it is 200 (OK), in order to know that the message was correctly processed by the gateway.

-bn