Skip to content

Auth Login

Description

應用程式登入驗證。

Resource

POST /v2/auth/login

Request Body Parameters

Name Type Description
authkey string 辨識公司的代碼
acckey string 會員登入後的代碼
webhook_acckey string webhook代碼
user_id string 使用者編號

Response

{
  "token": "BinrzcrNsuX0UTx49xtrnUMKl6qx1FTFMqf88h7LlIlWWQdiKfr85gqowusX5mxW2jx06Trk69Cp1rivda+sG2kqNdVwOaOrjnOwebXwihKAjMs57vELQbZAt/J5l5LILr/SsE9UbHPU/dVJeRQSCpKWNxJY6Y+F9rgYO4OKYQoFBxFjcN6tp9Bovyg+FHhOHTDD5SqA54W2mGOt89s1uS4Oatmx1UTwQOj5gaUTopw=",
  "expiration_time": "2020-01-01 15:16:54"
}

Response Body Parameters

Name Type Description
token string 取得Bearer Token
expiration_time string 到期時間
EXAMPLE "2020-01-01 15:16:54"

Usage

使用 OAuth 2.0 Bearer Token。

curl \
-X GET https://omni.lafresh.com.tw/v1/stores \
-H "authorization: Bearer <token>"