First line messaging bot

  • View
    586

  • Download
    7

Embed Size (px)

Transcript

  • Line Messaging Bot

    Ethan.Y

  • Line()Bot()

    (Messaging API)

    2

  • Developer Trial

    (Push api)()

    3

  • Line@

    (Business Center)()

    Messaging API

    4

  • Take a Look!

    5

  • (Messaging api)(Basic Information)

    Webhook URL Channel Access Token

    6

  • Webhook URL API

    Server()

    FacebookMessenger Bot(facebook)

    Webhook URL

    7

  • Webhook URL cont. HTTPSPOST Request

    8

  • Webhook URL cont.

    Status Code(200)

    9

  • Channel Access Token Token

    Webhook URLServerLineAPITokenLine

    10

  • Channel Access Token cont.

    11

  • Code Explanation (flaskrequestsjson) flaskpythonweb framework requestsLineAPI jsondatajson

    12

  • Code Explanation cont. Webhook URLHTTPS POST Request (replyToken)reply

    13

  • Code Explanation cont. Line Messaging API DocumentLine API

    HeadersData

    14

  • Code Explanation cont. (requests)Line API datajson.dumps()json

    15

  • Discussion Line Messaging API

    WebhookLine(Webhook URL)HTTPS POSTSserverHTTPS

    flaskngrok(Serverlocal) herokuflask(Server)

    Keywords: ngrok, heroku, flask, git

    16

  • Future ngrok, heroku, flask, git Line API(Facebook Messager

    Bot)(Heroku)(flask)

    gisthttps://gist.github.com/ctosib/4a671fe6f73ae9168a9d24d7740d5304

    17

    https://gist.github.com/ctosib/4a671fe6f73ae9168a9d24d7740d5304https://gist.github.com/ctosib/4a671fe6f73ae9168a9d24d7740d5304

  • Note flask json requests beautifulsoup git heroku ngrok

    18

  • End by Ethan.Yctosib@gmail.com

    19