TargetSMS Examples
Login Digiwallet English  Nederlands
About us   Jobs Contact Home
• Product overview
• Payout rates
• F.A.Q.
• News
• Local regulation
• Service messages
Fun & infotainment
• SMS Subscription
• SMS Info
• SMS Mobile
• SMS Poll-Vote
• SMS & Win
SMS Contact
• SMS-2-Mail
• SMS-2-Web
• SMS Callme
• SMS Donate
• SMS Site access
• Premium SMS
• Normal SMS
Not logged in...
• Login

TargetSMS Examples

For the TargetSMS Gateway API some basic technical knowledge is required, in particular scripting and preferably knowledge of databases.

To help you with the implementation we offer you the following example scripts 'as is'. The examples are divided in 3 groups: general scripts with class-includes, which are used by other examples, namely the examples for both subscription and non-subscription services.


The httprequest-class will be used by all other examples and will do POST requests without using file(), fopen(), cURL or other modules which might be turned off by several ISP's. Your provider must allow socket connections to - and - to use this script:
  • class.httprequest.php

    The second example describes a class with functions to be used in scripts that handle MO messages and send back info for making an MT message. The last example contains all variable data which can be changed.
  • class.targetsms.php
  • config.php

    Handling of non-subscription services

    In this script you can find an example handler for one-off SMS services. This is useful for non-subscription services, for which a reply to an incoming SMS is expected.
  • non-subscription.php

    Handling of subscription services

    For the handling of subscription services you need several scripts. One script is necessary to handle signups and signoffs:
  • subscription.php

    There are several ways to send messages to your subscribers, for example by creating a job on the TargetSMS site. Messages can also be posted to our API, either with jobs (all members the same message) or an invididual message per member. See the following examples:
  • jobs.php
  • single-job.php

    >> Click here to download the examples package as .ZIP

  • Algemene Voorwaarden | Cookie Policy | Cookie Instellingen | Privacy Statement