Skip to content

Create a new Provider in Line Developers Console

使用 LINE 帳號登入 LINE Developers Console

Login to Line Developer Console

建立新的 Provider

Create App From a Provider

Create New Channel

Setup Channel Settings and Approve Policies

  • Company Name
  • Channel Name
  • Channel Description
  • Category
  • Subcategory
  • ...

Get Messaging API Credentials

  • Channel Access Token
  • AdminUserId
    • Basic Settings > Your user ID

Setup Webhook URL

set up local development environment by ngrok

  • get current application running port
  • run ngrok
ngrok http localhost:{port}
ngrok http https://localhost:{{port}} --host-header=localhost:{{port}}
  • get a public url for webhook

  • use webhook url

    • Messaging API > Webhook settings > Use webhooks > Enabled
  • update webhook url in Line Developer Console

    • Messaging API > Webhook settings > Webhook URL
  • verify webhook url

Disable Auto-Reply

  • Messaging API > LINE Official Account features > Auto-reply messages > Disabled

Inspect Webhook Request

  • Use ngrok to inspect webhook request
http://localhost:4040/inspect/http