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
<?xml version="1.0" encoding="UTF-8"?> | |
<methodResponse> | |
<params> | |
<param> | |
<value> | |
<struct> | |
<member> | |
<name>LastUpdatedBy</name> | |
<value> | |
<i4>-1</i4> |
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
// models/User.php | |
/** | |
* Check if the user used the domain prefix | |
* to login. If they did pass param through | |
* unchanged. If they didn't, prepend it and | |
* return it. | |
* @param string $username | |
* @return string | |
*/ |
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 | |
$headers = array( | |
"X-Language: en-US", | |
"X-Service: FullAuto", | |
"X-Reference: voicecloud-reference-123", | |
"Content-Type: audio/wav", | |
"Content-Transfer-Encoding: base64", | |
"Content-Length: " . filesize("test2.64.wav") | |
); |
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
#!/usr/bin/python | |
import sys | |
from chatterbotapi import ChatterBotFactory, ChatterBotType | |
factory = ChatterBotFactory() | |
bot1 = factory.create(ChatterBotType.CLEVERBOT) | |
bot1session = bot1.create_session() |
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 | |
if (isset($_COOKIE['one'])) { | |
$new_one = $_COOKIE['one'] += 1; | |
$new_two = $_COOKIE['two'] += 1; | |
setcookie('one', $new_one); | |
setcookie('two', $new_two); | |
$response = "One says " . $new_one . " but Two says ". $new_two; | |
} else { | |
setcookie('one', 1); |
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 | |
// Where I define my credentials in AccountSid and AuthToken | |
include("../config.inc"); | |
// Twilio Helper Library | |
include("twilio.php"); | |
$what = $_POST['Body']; |
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 | |
header("Content-type: text/xml"); | |
if ($_POST['Digits'] == "12345") { | |
$response = ' | |
<Say>That is Correct</Say> | |
<Gather action="send.php" numDigits="10"> | |
<Say>Type the number of the person to message</Say> | |
</Gather> | |
'; |
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
<Response> | |
<Say>I am a man. This is how I talk. 1 2 3 4. Skippy Dippy Waffle Sauce.</Say> | |
<Pause length="1" /> | |
<Say voice="woman">I am a woman. I have a much nicer voice than that man.</Say> | |
<Pause length="1" /> | |
<Say language="es">Por favor, manténgase alejado de las puertas</Say> | |
</Response> |
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 | |
$sn = $argv[1]; | |
$asid = $argv[2]; | |
$vurl = $argv[3]; | |
$sid = "ACxxxxxxxxxxxxxxxxxxxx"; | |
$token = "xxxxxxxxxxxxxxx"; |
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 | |
$sn = $argv[1]; | |
$asid = $argv[2]; | |
$sid = "ACxxxxx"; | |
$token = "xxxxx"; | |
$url = "https://api.twilio.com/2010-04-01/Accounts/${asid}/IncomingPhoneNumbers/${sn}"; | |
printf("%s\n",$url); |