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
| Meteor.Router.add({ | |
| '/inbound': function() { | |
| post = this.request.body; | |
| color = post.subject; | |
| Colors.update({pos: 1},{ $set: { "name": color } } ); | |
| return [200, "Success"] | |
| } | |
| }); |
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 | |
| import json | |
| from twilio.rest import TwilioRestClient | |
| app = Flask(__name__) | |
| @app.route('/',methods=['POST']) | |
| def foo(): | |
| account_sid = "Your Twilio Account SID" | |
| auth_token = "Your Twilio Auth Token" |
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
| ################################# | |
| # # | |
| # Geographic List Segmentation # | |
| # with SendGrid Event Webhook # | |
| # # | |
| # Created by Kunal Batra 7.14.14# | |
| ################################# | |
| from flask import Flask,request, jsonify | |
| import requests |
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
| ################################# | |
| # # | |
| # IP List Segmentation # | |
| # with SendGrid Event Webhook # | |
| # # | |
| # Created by Kunal Batra 8.08.14# | |
| ################################# | |
| from flask import Flask,request, jsonify | |
| import requests |
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 | |
| import requests | |
| import os | |
| import gspread | |
| app = Flask(__name__) | |
| googleUser = '' | |
| googlePass = '' |
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 | |
| import json | |
| import sendgrid | |
| app = Flask(__name__) | |
| sg = sendgrid.SendGridClient('username', 'password') | |
| @app.route('/',methods=['POST']) | |
| def foo(): | |
| data = json.loads(request.data) |
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 | |
| from textblob import TextBlob | |
| import sendgrid | |
| app = Flask(__name__) | |
| sg = sendgrid.SendGridClient('username', 'password') | |
| @app.route('/incoming',methods=['POST']) | |
| def besmart(): |
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 | |
| from alchemyapi import AlchemyAPI | |
| import sendgrid | |
| import json | |
| app = Flask(__name__) | |
| sg = sendgrid.SendGridClient('username', 'password') | |
| alchemyapi = AlchemyAPI() |
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 | |
| from porc import Client | |
| app = Flask(__name__) | |
| client = Client("your_orchestrate_api+key") | |
| @app.route ('/incoming', methods = ['POST']) | |
| def nextweb(): | |
| subject = request.form['subject'] |
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 | |
| from translate import Translator | |
| import sendgrid | |
| app = Flask(__name__) | |
| sg = sendgrid.SendGridClient('username', 'password') | |
| @app.route ('/incoming', methods =['POST']) | |
| def trans(): | |
| subject = request.form['subject'] |