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 sendgrid | |
| import requests | |
| app = Flask(__name__) | |
| @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 | |
| import sendgrid | |
| import requests | |
| app = Flask(__name__) | |
| @app.route ('/incoming', methods =['POST']) | |
| def nextweb(): | |
| subject = request.form['subject'] | |
| body = request.form['text'] |
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
| rom flask import Flask, request | |
| import json, requests | |
| from firebase import firebase | |
| app = Flask(__name__) | |
| firebase = firebase.FirebaseApplication('Your_Firebase_url_goes_here', None) | |
| @app.route('/',methods=['POST']) | |
| def foo(): | |
| json2 = request.json |
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, Response | |
| from twilio.rest import TwilioRestClient | |
| app = Flask(__name__) | |
| sender = 'nobody' | |
| subject = 'nobody' | |
| body = 'nobody' | |
| def voiceaddress(address): |
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'] |
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 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 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 | |
| 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 | |
| import requests | |
| import os | |
| import gspread | |
| app = Flask(__name__) | |
| googleUser = '' | |
| googlePass = '' |