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
[{"id":1,"first_name":"Margaretha","last_name":"Verrier","email":"[email protected]"}, | |
{"id":2,"first_name":"Annabela","last_name":"Benzies","email":"[email protected]"}, | |
{"id":3,"first_name":"Allix","last_name":"Collison","email":"[email protected]"}, | |
{"id":4,"first_name":"Fleur","last_name":"Frye","email":"[email protected]"}, | |
{"id":5,"first_name":"Garold","last_name":"Leverette","email":"[email protected]"}, | |
{"id":6,"first_name":"Geoffrey","last_name":"Nerval","email":"[email protected]"}, | |
{"id":7,"first_name":"Case","last_name":"Semiraz","email":"[email protected]"}, | |
{"id":8,"first_name":"Cyrille","last_name":"Shopcott","email":"[email protected]"}, | |
{"id":9,"first_name":"Lynde","last_name":"Camier","email":"[email protected]"}, | |
{"id":10,"first_name":"Mira","last_name":"Casburn","email":"[email protected]"}] |
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
[{"id":1,"first_name":"Leonid","last_name":"McIvor","email":"[email protected]","agent_id ":null,"agent_page":"http://auda.org.au/eros/suspendisse/accumsan/tortor.aspx?quis=sapien&lectus=placerat&suspendisse=ante&potenti=nulla&in=justo&eleifend=aliquam&quam=quis&a=turpis&odio=eget&in=elit&hac=sodales&habitasse=scelerisque&platea=mauris&dictumst=sit&maecenas=amet&ut=eros&massa=suspendisse&quis=accumsan&augue=tortor&luctus=quis&tincidunt=turpis&nulla=sed&mollis=ante&molestie=vivamus&lorem=tortor&quisque=duis&ut=mattis&erat=egestas&curabitur=metus&gravida=aenean&nisi=fermentum&at=donec&nibh=ut&in=mauris&hac=eget&habitasse=massa&platea=tempor&dictumst=convallis&aliquam=nulla&augue=neque&quam=libero&sollicitudin=convallis&vitae=eget&consectetuer=eleifend&eget=luctus&rutrum=ultricies&at=eu&lorem=nibh&integer=quisque&tincidunt=id&ante=justo&vel=sit&ipsum=amet&praesent=sapien&blandit=dignissim&lacinia=vestibulum&erat=vestibulum&vestibulum=ante&sed=ipsum&magna=primis&at=in&nunc=faucibus&commodo=orci&placerat=luctus& |
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 flask import Flask, request | |
from flask import make_response | |
import requests | |
import os | |
import json | |
app = Flask(__name__) | |
@app.route('/connect') | |
def cf_connect(): |
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 | |
// parameters | |
$hubVerifyToken = 'TOKEN123456abcd'; | |
$accessToken = "xxx"; | |
// check token at setup | |
if ($_REQUEST['hub_verify_token'] === $hubVerifyToken) { | |
echo $_REQUEST['hub_challenge']; | |
exit; | |
} |
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
<html> | |
<head> | |
<title>API Example</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
var accessToken = "<your agent's client access token>"; | |
var baseUrl = "https://api.api.ai/v1/"; | |
$(document).ready(function() { | |
$("#input").keypress(function(event) { |