Get Favorite Recipe
Description
取得收藏食譜或收藏商品。
Resource
GET /v1/recipes/favorite
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Authentication。
Request Example
GET /v1/recipes/favorite
Response
{
"recipes": [
{
"id": "1",
"name": "番茄泡菜炒豆包",
"position": 1,
"icon": "https://omni.lafresh.com.tw/public/recipe/icon_01.jpg",
"redirect_url": "https://omni.lafresh.com.tw/article_organic.php?id=1113",
"image": null,
"description": "",
"price": 0.0,
"categories": {
"id": "1",
"name": "小菜"
}
},
{
"id": "2",
"name": "紫蘇籽油腐乳炒飯",
"position": 2,
"icon": "https://omni.lafresh.com.tw/public/recipe/icon_02.jpg",
"redirect_url": "https://omni.lafresh.com.tw/article_organic.php?id=1108",
"image": null,
"description": "",
"price": 0.0,
"categories": {
"id": "3",
"name": "主食"
}
}
]
}
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| recipes | Recipe | 食譜列表 |
Response Body Parameters - Recipe
| Name | Type | Description |
|---|---|---|
| id | string | 食譜或商品代碼 |
| name | string | 名稱 |
| position | string | 排序位置 |
| icon | string | 圖片網址 |
| redirect_url | string | 外部頁面網址 |
| image | string | 商品圖檔 |
| description | string | 商品規格 |
| price | string | 商品價格 |
| categories | Category | 食譜或商品類別 |
Response Body Parameters - Category
| Name | Type | Description |
|---|---|---|
| id | string | 食譜分類代碼 |
| name | string | 分類名稱 |