Coder Social home page Coder Social logo

smslink-ro / example-for-receiving-sms-using-2-way-sms-php Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 12 KB

Example for receiving SMS sent by a mobile subscriber to a shortcode, using 2-Way SMS API from SMSLink and PHP

Home Page: https://www.smslink.ro

PHP 100.00%
sms sms-incoming sms-receiver sms-receive-online sms-mobile-originated sms-mo sms-api sms-interactive 2-way-sms

example-for-receiving-sms-using-2-way-sms-php's Introduction

Example for receiving SMS using 2-Way SMS and PHP

This is an example for receiving a SMS MO (Mobile Originated) sent by a mobile subscriber to a shortcode using SMSLink - 2-Way SMS.

SMSLink.ro allows you to send SMS to all mobile networks in Romania and also to more than 168 countries and more than 1000 mobile operators worldwide.

Requirements & Usage

  1. Create an account on SMSLink.ro
  2. Activate a dedicated or a shared shortcode using 2-Way SMS service, by accessing SMSLink.ro / 2-Way SMS / 2-Way SMS Campaigns / Create Campaign.
  3. Configure a public URL endpoint where SMSLink.ro will send to you each SMS sent by the mobile subscribers to the shortcode. SMS MO (Mobile Originated) are sent by default as HTTPS(S) GET parameters, but you may choose between HTTPS(S) GET, HTTPS(S) POST and HTTPS(S) POST as JSON, by changing the corresponding setting in your SMSLink account.

Parameters for the SMS MO (Mobile Originated)

  • sender the Sender of the SMS (ie. 07xyzzzzzz)
  • receiver the Shortcode on which the SMS was sent (ie. 17xy, 18xy, 37xy, 38xy etc.)
  • message the Message sent by the Sender to the Shortcode
  • timestamp the Timestamp in which the Message was received on the Shortcode, in UNIX Timestamp format
  • network_id the Network ID in which the Sender is located, with the following possible values:
    • 1 for Vodafone Romania
    • 2 for Orange Romania
    • 3 for Telekom Romania Mobile / Telekom Romania
    • 5 for Digimobil (RCS-RDS)
  • network_name the Network Name corresponding to the Network ID

Responding to the SMS MO (Mobile Originated)

For each received SMS you may send a SMS response to the sender (mobile subscriber) using any of the following methods:

  • Using SMSLink - SMS Gateway API, such as SMS Gateway (HTTP), SMS Gateway (SOAP), SMS Gateway (JSON) or SMS Gateway (BULK)
  • Using the output of this script, by writing the desired response below, if you enable this coresponding option in SMSLink.ro / 2-Way SMS / 2-Way SMS Campaigns / Campaign Settings. In this case the SMSLink will read the script output and will send an SMS to the sender with the output text. Please note that the output should be plain text (you should not output any HTML code).

2-Way SMS API Documentation

The complete documentation of the SMSLink - 2-Way SMS API can be found here.

SMS Gateway API Documentation

The complete documentation of the SMSLink - SMS Gateway API can be found here, describing all available APIs (HTTP GET / POST, SOAP / WSDL, JSON and more).

Additional modules and integrations

SMSLink also provides modules for major eCommerce platforms (on-premise & on-demand), integrations using Microsoft Power Automate, Zapier or Integromat and many other useful features. Read more about all available features here.

Support

For technical support inquiries contact us at [email protected] or by using any other available method described here.

example-for-receiving-sms-using-2-way-sms-php's People

Contributors

smslink avatar ttury avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.