Skip to content

Instantly share code, notes, and snippets.

Keyul keyuls

Block or report user

Report or block keyuls

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:5648af3a2867e9efe17e186cbe8907ef
b4fae48a4eb49c27650f9f26fe591d6df3983dba186e9ff0ab6d146bc04ae1bf3860d56ce9c31d7255d6c36d0dcbe5bbdbff2045b63ab20318dd1d5c04c8e70c
@keyuls
keyuls / connect_giphy.py
Last active Oct 24, 2017
Connecting Giphy with Chatfuel
View connect_giphy.py
from flask import Flask,request
import os
from flask import make_response
import json
app = Flask(__name__)
@app.route('/getgif')
def send_gif():
query = request.args.get('userinput')
@keyuls
keyuls / response.json
Last active Oct 16, 2016
Response for facebook in Api.ai
View response.json
{
"id": "5998472d-f321-4ad5-b365-def1f29e79c4",
"timestamp": "2016-10-16T03:32:39.977Z",
"result": {
"source": "agent",
"resolvedQuery": "bots",
"action": "getnewestpost",
"actionIncomplete": false,
"parameters": {
"cat": "bots"
@keyuls
keyuls / connection.py
Last active Sep 21, 2017
connecting to api.ai
View connection.py
from flask import Flask, request
from flask import make_response
import requests
import os
import json
app = Flask(__name__)
@app.route('/connect')
def cf_connect():
You can’t perform that action at this time.