dongmi1221 2014-09-30 10:26
浏览 30
已采纳

我想知道如何在PHP中使用短信API [关闭]

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

  • 写回答

1条回答 默认 最新

  • doulin2025 2014-09-30 10:36
    关注

    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/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line