Skip to content
/ LineBot Public

LINE BOT APIで作った画像検索ボットくん

Notifications You must be signed in to change notification settings

ko31/LineBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

LineBot

LINE BOT API で作った画像検索ボットくん

機能

  • コールバックに送られたメッセージをテキスト送信する(フォーマット指定可)
  • コールバックに送られたメッセージを検索して取得した画像を送信する(Bing Search APIアカウントキー必要)

使い方

<?php
require_once('LineBot.php');

// LINE:チャンネルID
$CHANNEL_ID = '[LINEのチャンネルID]';
// LINE:チャンネルシークレット
$CHANNEL_SECRET = '[LINEのチェンネルシークレット';
// LINE:MID
$CHANNEL_MID = '[LINEのMID]';

// Bingアカウントキー
$ACCOUNT_KEY = '[Bing Search APIのアカウントキー]';

$bot = new LineBot($CHANNEL_ID, $CHANNEL_SECRET, $CHANNEL_MID);

// テキスト送信
$bot->sendText('「%s」デスネ...');

// 画像送信
$bot->sendImage($ACCOUNT_KEY);

参考URL

About

LINE BOT APIで作った画像検索ボットくん

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages