A page in your DokuWiki was added or changed. Here are the details:

Date        : 2019/03/19 14:39
Browser     : Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 
Firefox/65.0
IP-Address  : 81.250.130.213
Hostname    : lneuilly-657-1-3-213.w81-250.abo.wanadoo.fr
Old Revision: ---
New Revision: 
http://ltb-project.org/documentation/self-service-password/latest/sms_api
Edit Summary: created
User        : coudot

====== SMS API ======

This page presents some code samples to send SMS trough API of SMS providers.

===== LinkMobility (pswin) =====

Provider website: https://www.linkmobility.com/

<file php>
function send_sms_by_api($mobile, $message) {
    $post = [
      'USER'  => 'api_username',
      'PW'    => 'api_password',
      'SND'   => 'SenderName',
      'RCV'   => $mobile,
      'TXT'   => $message,
    ];
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, 'https://simple.pswin.com');
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));
    $response = curl_exec($ch);

    return 1;
}
</file>


-- 
This mail was generated by DokuWiki at
http://ltb-project.org/
_______________________________________________
ltb-changes mailing list
[email protected]
https://lists.ltb-project.org/cgi-bin/mailman/listinfo/ltb-changes

Reply via email to