Skip to content

weiting-tw/LineNotifySDK

Repository files navigation

LineNotifySDK

Build and deploy

Info

Nuget Package

Demo Site

Register Line Notify Services

Line Notify Document

  1. Register Services https://notify-bot.line.me/my/services/new
  2. Add url to Callback URL. like https://localhost:44352/home/BindCallback
  3. Copy Client ID ,Client Secret and Callback URL to appsettings.json

Usage

Add to Startup.cs

 services.AddLineNotifyServices((_, options) =>
{
    options.ClientId = Configuration.GetValue("LineNotifyOptions:ClientId", "CHANGE_ME");
    options.ClientSecret = Configuration.GetValue("LineNotifyOptions:ClientSecret", "CHANGE_ME");
    options.RedirectUri = Configuration.GetValue("LineNotifyOptions:RedirectUri", "CHANGE_ME");
});

Set authorize and callback with Controller