Soporte & Consultoria

Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita

domingo, 13 de noviembre de 2016

Twilio sms

<?php
// Require the bundled autoload file - the path may need to change
// based on where you downloaded and unzipped the SDK
require __DIR__ . '/twilio-php-master/Twilio/autoload.php';

// Use the REST API Client to make requests to the Twilio REST API
use Twilio\Rest\Client;

// Your Account SID and Auth Token from twilio.com/console
$sid = 'AC4cd51364f73aw154df228050ex2933';
$token = 'c63c01506d9ddxw4b788a17ssxd11f';
$client = new Client($sid, $token);

// Use the client to do fun stuff like send text messages!
$client->messages->create(
    // the number you'd like to send the message to
    "+$argv[1]",
    array(
        // A Twilio phone number you purchased at twilio.com/console
        "from" => "+14017953076 ",
        // the body of the text message you'd like to send
        'body' => "$argv[2]"
    )
);
//https://www.twilio.com/docs/libraries/php
?>


1)  wget https://github.com/twilio/twilio-php/archive/master.zip

2)unzip  mas*

3)cat ./twilio-php-master/Twilio/autoload.php


php sms.php 18097143423  'I love twilio!'


https://www.twilio.com/docs/libraries/php

https://www.twilio.com/docs/quickstart/php/sms/sending-via-rest#sending-mms-via-rest

https://support.twilio.com/hc/en-us/articles/223181808-Restricted-SMS-message-types-using-Twilio

https://support.twilio.com/hc/en-us/articles/223133967-Changing-the-sender-ID-for-sending-SMS-messages

https://support.twilio.com/hc/en-us/articles/223181348-Getting-started-with-Alphanumeric-Sender-ID

https://www.twilio.com/docs/api/twiml/sms/your_response

https://www.twilio.com/docs/api/rest/sms

https://www.twilio.com/docs/api/rest/sending-messages

No hay comentarios:

Publicar un comentario