HTTP Interface for SMS

TG provides a HTTP interface to enable your applications to send messages over the internet. You can send SMS message using the HTTP interface. Parameters are specified in the URL.

Sending SMS format:
http://[IP]/cgi/WebCGI?1500101=account=[user]&password=[pass]&port=[port]&destination=[phone_number]&content=[MSG]

Sending USSD format:
http://[IP]/cgi/WebCGI?1500102=account=[user]&password=[pass]&port=[port]&content=[MSG]

Please check the following example SMS message from web.
If you want to send a message "Hello world!!" to phone number 15880270900 through TG GSM port 1.

The API settings are configured as the following picture shows:

Figure 1 API Settings on TG


As we can see, the [User] should be apiuser, and the [pass] should be password.


The URL format should be like this:
http://192.168.5.176/cgi/WebCGI?1500101=account=apiuser&password=password&port=1&destination=15880270900&content=Hello world!!

Have more questions? Submit a request

8 Comments

  • 0
    Avatar

    Hi You,

    I am a programmer. Now, I'm writing SMS function GT400 Neogate, but I do not know what is the value returned when I call the method"http://192.168.5.176/cgi/WebCGI?1500101=account=apiuser&password=password&port=1&destination=15880270900&content=Hello world!!".

    I hope to get feedback from you.

    Thanks you.

  • 1
    Avatar

    hi youu

    i wanna know how i can receive SMS  sent from the neogate device to an HTTP interface using the same things as u have done with sending the message here

    i hope to get feedback from you

    thank you

  • 1
    Avatar

    Hello @Trung Út Lê,

    If the SMS is sent successfully, you can will the receive the response like this:

    Response: Success
    Message: Commit successfully!

     

  • 1
    Avatar

    Hello halimalarhrafi1993,

    Currently, TG doesn't support read SMS via HTTP interface, hope you will know.

    Thanks.

  • 0
    Avatar

    Hi Pixy Xie,

    So, The response include two variables: response (value is Success and message (value is Commit successfuly) ?

    Looking forward to your response!

  • 0
    Avatar

    Hi,
    I must send sms from a remote server to local gateway. To perform the call I use jquery + ajax. Because it is a cross domain request I must use jsonp, but the gateway response is text/html, so I receive a syntax error from jquery. There is a way to fix it? Thanks.

  • 0
    Avatar

    Hello,

    I want to send massive sms from HTTP, this is possible?. my device is GT400 Neogate

  • 0
    Avatar

    dear all ;

    how can i send SMS to multiple Numbers

    what is the revived SMS Form ?

    what is the revived SMS sender name will appear ?  

    and what is the response in case there is failure in one of them 

    Edited by mahmoud elshennawy
Please sign in to leave a comment.