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 | |
// Get the PHP helper library from https://twilio.com/docs/libraries/php | |
require_once '/path/to/vendor/autoload.php'; | |
use Twilio\Rest\Client; | |
// Your Account Sid and Auth Token from twilio.com/console | |
$sid = "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; | |
$token = "your_auth_token"; | |
$twilio = new Client($sid, $token); |
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
from datetime import date | |
from twilio.rest import Client | |
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | |
auth_token = "your_auth_token" | |
client = Client(account_sid, auth_token) | |
recordings = client.recordings.list(date_created_after=date(2012, 1, 1)) | |
for recording in recordings: |
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
curl -X DELETE 'https://api.twilio.com/2010-04-01/Accounts/ACxxxx/Recordings/RExxxx.json' \ | |
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token' |
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 | |
// Get the PHP helper library from https://twilio.com/docs/libraries/php | |
require_once '/path/to/vendor/autoload.php'; | |
use Twilio\Rest\Client; | |
// Your Account Sid and Auth Token from twilio.com/console | |
$sid = "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; | |
$token = "your_auth_token"; | |
$toNumber = "{fill this in with your number}"; |
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
// Replace letters | |
@function str-replace($string, $search, $replace: '') { | |
$index: str-index($string, $search); | |
@if $index { | |
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace); | |
} | |
@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
import sys | |
import os | |
import codecs | |
import unicodedata as ud | |
# from http://stackoverflow.com/questions/3094498/how-can-i-check-if-a-python-unicode-string-contains-non-western-letters | |
latin_letters = {} | |