Get LINE Login URL
Description
取得 LINE Login 授權連結,用於引導使用者進行 LINE 登入授權。
Resource
GET /v1/user/line/login_url
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| platform_type | string | 平台類別 (WEB/APP) | Yes |
| redirect_uri | string | 回調網址 (WEB必填) | No |
| store_id | string | 門市代號 (選填,若無則取站台設定) | No |
Response
{
"channel_id": "1657000000",
"login_link": "https://access.line.me/oauth2/v2.1/authorize?response_type=code&client_id=..."
}
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| channel_id | string | LINE Channel ID |
| login_link | string | LINE Login URL |