This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'twilio-ruby' # モジュールを読み込みます。 | |
account_sid = 'SID' # Twilioのホームページに書いてあります。 | |
auth_token = 'TOKEN' # Twilioのホームページに書いてあります。鍵マーク押すと表示されます。 | |
@client = Twilio::REST::Client.new account_sid, auth_token # オブジェクト作成 | |
@call = @client.account.calls.create( | |
:from => 'telnumber', # Twilioから払い出される番号をそのまま記載します。 | |
:to => 'telnumber', # +81に続いて電話番号を記載します。試用期間中は登録した番号のみです。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* validateTwilioRequest | |
* | |
* @param \Slim\Slim $app Slim Object | |
* @param Array $params Input parameters | |
* @return Boolean Result of the validation | |
* @license http://www.opensource.org/licenses/mit-license.php 2014 rutoru | |
*/ | |
namespace Sample; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Illuminate DB Class | |
* | |
* @author rutoru | |
* @package Runa-CCA | |
* @license http://www.opensource.org/licenses/mit-license.php 2014 rutoru | |
*/ | |
namespace Runa_CCA\Model; |