This file contains hidden or 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
{ | |
"flight_number": 68, | |
"mission_name": "Telstar 18V", | |
"launch_year": "2018", | |
"launch_date_unix": 1535081580, | |
"launch_date_utc": "2018-08-24T03:33:00.000Z", | |
"launch_date_local": "2018-08-23T23:33:00-04:00", | |
"rocket": { | |
"rocket_id": "falcon9", | |
"rocket_name": "Falcon 9", |
This file contains hidden or 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
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Logging; | |
using PwnedPasswords.Client; | |
using System; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
namespace ConsoleApp1 | |
{ |
This file contains hidden or 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
exports.handler = function(context, event, callback) { | |
console.log("From: " + event.From); | |
console.log("Body: " + event.Body); | |
let twiml = new Twilio.twiml.MessagingResponse(); | |
//No point in doing this yet since we can't send media | |
//const message = twiml.message({to:'sim:[YOUR_SIM_SID]', from:event.From}); | |
//message.body(event.Body); |
This file contains hidden or 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 with your account's settings | |
' available in the Dashboard | |
accountSid = "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
authToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
' setup the URL | |
baseUrl = "https://api.twilio.com" | |
msgUrl = baseUrl & "/2010-04-01/Accounts/" & accountSid & "/Messages" |
This file contains hidden or 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
using System.Net; | |
using System.Text.RegularExpressions; | |
using Twilio.TwiML; | |
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log) | |
{ | |
log.Info($"C# HTTP trigger function processed a request. RequestUri={req.RequestUri}"); | |
var data = await req.Content.ReadAsStringAsync(); |
This file contains hidden or 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
using Newtonsoft.Json; | |
using Newtonsoft.Json.Serialization; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication37 | |
{ |
This file contains hidden or 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
configure :development do | |
Bundler.require :development | |
Envyable.load("config/env.yml", "development") | |
end | |
use Rack::TwilioWebhookAuthentication, ENV["TWILIO_AUTH_TOKEN"], "/messages" | |
post "/messages" do | |
twitter.update(params["Body"]) if params["From"] == ENV["MY_PHONE_NUMBER"] | |
content_type "text/xml" |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Twilio; | |
namespace ConsoleApplication17 | |
{ | |
class Program |
This file contains hidden or 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
$client = new ZendeskAPI($subdomain, $username); | |
$client->setAuth('token', $token); // set either token or password | |
$search_query = "type:ticket status<solved order_by:updated_at sort:desc fieldvalue:" . $from; | |
try | |
{ | |
$results = $client->search(array('query'=>$search_query)); | |
if ( (int)$results->count > 0) { |
This file contains hidden or 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 flask import Flask, request, make_response, session | |
from flaskext.kvsession import KVSessionExtension | |
from datetime import datetime, timedelta | |
from twilio import twiml | |
import json | |
import redis | |
from simplekv.memory.redisstore import RedisStore | |
SECRET_KEY = 'a secret key' |
NewerOlder