List beacon flyers - shine-chen/Quest-Web-API GitHub Wiki

Brief

List flyers of a given beacon

Path

v1/beacons/:uuid/:major/:minor/flyers

Path Params

  1. uuid
    • Beacon UUID
  2. major
    • Beacon Major Number
  3. minor
    • Beacon Minor Number

URL Params

  1. token
    • Authorized access token.

Request

GET /v1/beacons/F48EC283-B617-15BD-10CF-34BCC3F1465C/1/1/flyers?token=ROYwWbdYo6FpHgHX4QMkSsg8FLCWCiFirlOWjbVlvfI= HTTP/1.1
Host: localhost:3000
Cache-Control: no-cache

Response

{
    "count": "5",
    "data": [
        {
            "beacon_flyers_id": "2",
            "beacon_id": "1",
            "beacon_flyers_order": "2",
            "beacon_flyers_type": "1",
            "beacon_flyers_content": "2-1-2.jpg",
            "beacon_flyers_islogin": "1",
            "beacon_flyers_distance": "7",
            "beacon_flyers_activate": "1",
            "beacon_flyers_audio_file": null,
            "coupon_id": null,
            "beacon_flyers_text_title": null,
            "beacon_flyers_text_desc": "集滿50點,多項好禮等你拿喔!",
            "beacon_flyers_videoimg_file": null
        },
        {
            "beacon_flyers_id": "3",
            "beacon_id": "1",
            "beacon_flyers_order": "3",
            "beacon_flyers_type": "1",
            "beacon_flyers_content": "2-1-3.jpg",
            "beacon_flyers_islogin": "1",
            "beacon_flyers_distance": "7",
            "beacon_flyers_activate": "1",
            "beacon_flyers_audio_file": null,
            "coupon_id": "1",
            "beacon_flyers_text_title": null,
            "beacon_flyers_text_desc": null,
            "beacon_flyers_videoimg_file": null
        },
        {
            "beacon_flyers_id": "1",
            "beacon_id": "1",
            "beacon_flyers_order": "1",
            "beacon_flyers_type": "1",
            "beacon_flyers_content": "2-1-1.jpg",
            "beacon_flyers_islogin": "0",
            "beacon_flyers_distance": "7",
            "beacon_flyers_activate": "1",
            "beacon_flyers_audio_file": null,
            "coupon_id": null,
            "beacon_flyers_text_title": null,
            "beacon_flyers_text_desc": null,
            "beacon_flyers_videoimg_file": null
        },
        {
            "beacon_flyers_id": "4",
            "beacon_id": "1",
            "beacon_flyers_order": "4",
            "beacon_flyers_type": "2",
            "beacon_flyers_content": "https://www.youtube.com/watch?v=fVq2hcihRaA",
            "beacon_flyers_islogin": "0",
            "beacon_flyers_distance": "7",
            "beacon_flyers_activate": "1",
            "beacon_flyers_audio_file": null,
            "coupon_id": null,
            "beacon_flyers_text_title": null,
            "beacon_flyers_text_desc": null,
            "beacon_flyers_videoimg_file": null
        },
        {
            "beacon_flyers_id": "5",
            "beacon_id": "1",
            "beacon_flyers_order": "5",
            "beacon_flyers_type": "3",
            "beacon_flyers_content": "http://www.g-plus.cn/about/",
            "beacon_flyers_islogin": "0",
            "beacon_flyers_distance": "7",
            "beacon_flyers_activate": "1",
            "beacon_flyers_audio_file": null,
            "coupon_id": null,
            "beacon_flyers_text_title": null,
            "beacon_flyers_text_desc": null,
            "beacon_flyers_videoimg_file": null
        }
    ]
}
⚠️ **GitHub.com Fallback** ⚠️