Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
{ "index" : { "_index" : "person", "_type" : "default" } }
{"name":"\u3084\u307e\u3060\u592a\u90ce"}
{ "index" : { "_index" : "person", "_type" : "default" } }
{"name":"\u30e4\u30de\u30c0\u592a\u90ce"}
{ "index" : { "_index" : "person", "_type" : "default" } }
{"name":"\uff94\uff8f\uff80\uff9e\u592a\u90ce"}
{ "index" : { "_index" : "person", "_type" : "default" } }
{"name":"\u5c71\u7530\u592a\u90ce"}
{ "index" : { "_index" : "person", "_type" : "default" } }
{"name":"yamada taro"}
@betchi207
betchi207 / file0.php
Last active April 16, 2016 15:14
Facebook Messenger Platform BETAでできる全ての事を試してみた(LINE BOT APIとの比較あり) ref: http://qiita.com/betchi/items/539f5e32cd9a9c8d2db4
<?php
$access_token = "[ACCESS TOKEN]";
// メッセージ受信
$json_string = file_get_contents('php://input');
$json_object = json_decode($json_string);
$from_user_id =$json_object->entry{0}->messaging{0}->sender->id;
$post = <<< EOM
{
@betchi207
betchi207 / callback.php
Last active April 14, 2016 00:29
LINE BOT API Trialでできる全ての事を試してみた ref: http://qiita.com/betchi/items/8e5417dbf20a62f2239d
<?php
error_log("callback start.");
// アカウント情報設定
$channel_id = "[チャンネルID]";
$channel_secret = "[チャンネルシークレット]";
$mid = "[MID]";
// リソースURL設定
$original_content_url_for_image = "[画像URL]";