Back to top

Overview

status code 定義

  • 1: success

  • 4: no result

  • 5: auth fail

列表

取得所有旅遊回憶

取得所有旅遊回憶
GET/api/v1/journals{?city_id,offset,limit}

Example URI

GET https://api.funliday.com/api/v1/journals?city_id=12345&offset=10&limit=10
URI Parameters
HideShow
city_id
number (optional) Example: 12345

City ID

offset
number (optional) Default: 0 Example: 10

Offset

limit
number (optional) Default: 20 Example: 10

Limit

Request
HideShow
Headers
Authorization: bearer appId_secretKey
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1,
  "code_message": "success",
  "data": [
    {
      "id": 123,
      "title": "hello",
      "pageview": 456,
      "like_count": 456,
      "description": "hello",
      "cover": "https://www.example.com/abc.png",
      "url": "https://www.funliday.com/abc/journals/123",
      "published_at": 1234567890123,
      "member": {
        "id": "abc123",
        "nickname": "handsome",
        "avatar": "https://www.example.com/abc.png",
        "userid": "ggg"
      }
    }
  ],
  "data_next": true
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "code": {
      "type": "number",
      "description": "Response code (1: success, 4: no result, 5: auth fail)"
    },
    "code_message": {
      "type": "string",
      "description": "Response message"
    },
    "data": {
      "type": "array",
      "description": "Journal list"
    },
    "data_next": {
      "type": "boolean",
      "description": "If has next"
    }
  }
}

取得所有產品

取得所有產品
GET/api/v1/products{?city_id,offset,limit}

Example URI

GET https://api.funliday.com/api/v1/products?city_id=12345&offset=10&limit=10
URI Parameters
HideShow
city_id
number (optional) Example: 12345

City ID

offset
number (optional) Default: 0 Example: 10

Offset

limit
number (optional) Default: 20 Example: 10

Limit

Request
HideShow
Headers
Authorization: bearer appId_secretKey
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1,
  "code_message": "success",
  "data": [
    {
      "id": 123,
      "title": "hello",
      "pageview": 456,
      "like_count": 456,
      "description": "hello",
      "price": 111,
      "currency": "TWD",
      "cover": "https://www.example.com/abc.png",
      "url": "https://www.funliday.com/abc/products/123",
      "published_at": 1234567890123,
      "member": {
        "id": "abc123",
        "nickname": "handsome",
        "avatar": "https://www.example.com/abc.png",
        "userid": "ggg"
      }
    }
  ],
  "data_next": true
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "code": {
      "type": "number",
      "description": "Response code (1: success, 4: no result, 5: auth fail)"
    },
    "code_message": {
      "type": "string",
      "description": "Response message"
    },
    "data": {
      "type": "array",
      "description": "Product list"
    },
    "data_next": {
      "type": "boolean",
      "description": "If has next"
    }
  }
}

取得所有景點收藏

取得所有景點收藏
GET/api/v1/collections{?city_id,offset,limit}

Example URI

GET https://api.funliday.com/api/v1/collections?city_id=12345&offset=10&limit=10
URI Parameters
HideShow
city_id
number (optional) Example: 12345

City ID

offset
number (optional) Default: 0 Example: 10

Offset

limit
number (optional) Default: 20 Example: 10

Limit

Request
HideShow
Headers
Authorization: bearer appId_secretKey
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1,
  "code_message": "success",
  "data": [
    {
      "id": 123,
      "title": "hello",
      "pageview": 456,
      "like_count": 456,
      "price": 111,
      "currency": "TWD",
      "cover": "https://www.example.com/abc.png",
      "url": "https://www.funliday.com/abc/collections/123",
      "published_at": 1234567890123,
      "member": {
        "id": "abc123",
        "nickname": "handsome",
        "avatar": "https://www.example.com/abc.png",
        "userid": "ggg"
      }
    }
  ],
  "data_next": true
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "code": {
      "type": "number",
      "description": "Response code (1: success, 4: no result, 5: auth fail)"
    },
    "code_message": {
      "type": "string",
      "description": "Response message"
    },
    "data": {
      "type": "array",
      "description": "Collection list"
    },
    "data_next": {
      "type": "boolean",
      "description": "If has next"
    }
  }
}

取得推薦景點

取得推薦景點
GET/api/v1/recommend_pois{?city_id,offset,limit}

Example URI

GET https://api.funliday.com/api/v1/recommend_pois?city_id=12345&offset=10&limit=10
URI Parameters
HideShow
city_id
number (optional) Example: 12345

City ID

offset
number (optional) Default: 0 Example: 10

Offset

limit
number (optional) Default: 20 Example: 10

Limit

Request
HideShow
Headers
Authorization: bearer appId_secretKey
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1,
  "code_message": "success",
  "data": [
    {
      "name": "三井 outlet",
      "address": "台北市信義區",
      "photo": "https://www.example.com/abc.png",
      "location": {
        "lat": 123.222,
        "lng": 42.333
      }
    }
  ],
  "data_next": true
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "code": {
      "type": "number",
      "description": "Response code (1: success, 4: no result, 5: auth fail)"
    },
    "code_message": {
      "type": "string",
      "description": "Response message"
    },
    "data": {
      "type": "array",
      "description": "POI list"
    },
    "data_next": {
      "type": "boolean",
      "description": "If has next"
    }
  }
}

取得熱點圖資訊

取得熱點圖資訊
GET/api/v1/heatmap{?city_id,date_start,date_end}

Example URI

GET https://api.funliday.com/api/v1/heatmap?city_id=12345&date_start=20211010&date_end=20211121
URI Parameters
HideShow
city_id
number (optional) Example: 12345

City ID

date_start
string (optional) Example: 20211010

Start date

date_end
string (optional) Example: 20211121

End date

Request
HideShow
Headers
Authorization: bearer appId_secretKey
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1,
  "code_message": "success",
  "data": [
    {
      "lng": 123.45,
      "lat": 23,
      "score": 3600
    }
  ],
  "data_next": true
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "code": {
      "type": "number",
      "description": "Response code (1: success, 4: no result, 5: auth fail)"
    },
    "code_message": {
      "type": "string",
      "description": "Response message"
    },
    "data": {
      "type": "array",
      "description": "POI heatmap list"
    },
    "data_next": {
      "type": "boolean",
      "description": "If has next"
    }
  }
}

Generated by aglio on 28 Oct 2021