You can freely develop a BOT account for the first 10,000 people from LINE "BOT API Trial Account" announced it was done.

Of Coto Goto Novi API I tried to install.

BOT API is a trial account, but you can send and receive messages to LINE because it is a bot API.
The Novi API is capable of returning conversations with artificial intelligence, so I tried to work together.

I will try GAE/J for the environment.

Line bot needs a callback url setting, and requires a server that supports SSL, so it is GAE.

There was no response for a while after registering in the callback url, and I waited for a week. (Even though other people said it was about a day...)





Then finally implemented! !! !!

For the sending part, refer to the blogs around here.

I tried the LINE Bot API

It seems that you can get the callback coding like this.

// Get InputStream final InputStream is = req.getInputStream(); // Get callback final Map callback = JSON.decode(is); final List result = (List) callback.get("result"); final Map resultMap = (Map) result.get(0);

And the completed form!

2016-04-23 23.52.30 2016-04-23 23.53.17 2016-04-23 23.54.51

2016-04-23 21.41.44 2016-04-23 21.40.16

Do you feel good? .. .. ..

Click here for such Nobby's LINE account.

gja1483y