phpinfobipinfobip-api

I wana know how to use an sms API in php


Hi i'm trying to create an application to send notification SMSs to people, i wana select their name and phone number from the database and send them smss using the following API:

http://api.infobip.com/api/v3/sendsms/plain?user=test&password=test&sender=Friend&SMSText=messagetext&SendDateTime=1d2h5m3s&GSM=38598514674

I am new in php programming

the following is the code i used to select from the database


Solution

  • In common API's they will provide a PHP file and a certificate file ( optional) and we can use those files to drirectly send SMS.

    A rough code looks like follows

    $sms=new SMSApi();
    $sms->senderId("YOUR CUSTOMER ID");
    $sms->number="1254578" // Number to send SMS 
    $sms->type=1 // Promotional, transcational etc
    $sms->send(); // Send SMS
    

    Please check with their documentation for more details

    http://www.infobip.com/messaging/app_developers/