/download-history-summary

Download History

/download-history-summary

Query Parameters
  • unit
    required
    string enum

    รายปี รายเดือน ราย30วัน

    • year
    • month
    • custom
  • year
    integer

    สำหรับรายปี

  • month
    integer

    สำหรับรายเดือน

  • created_from
    string date

    สำหรับราย30วัน

  • created_to
    string date

    สำหรับราย30วัน

Responses
  • 200

    The request has succeeded.

GET/download-history-summary
Shell cURL
curl --request GET \
  --url 'https://dpt-openapi.finema.dev/download-history-summary?unit=year'
anyOf
  1. {
      "unit": "year",
      "year": 1,
      "created_at": "…",
      "values": [
        {
          "month": 1,
          "registered_user": 1
        }
      ]
    }
  2. {
      "unit": "month",
      "year": 1,
      "month": 1,
      "created_at": "…",
      "values": [
        {
          "date": 1,
          "registered_user": 1
        }
      ]
    }
  3. {
      "unit": "custom",
      "created_from": "…",
      "created_to": "…",
      "created_at": "…",
      "values": [
        {
          "date": 1,
          "month": 1,
          "registered_user": 1
        }
      ]
    }
0.0.0
OAS 3.0.0

Map Layer API

Client Libraries
Shell
Ruby
Node.js
PHP
Python
C
More

Download History

/download-histories

Body
application/json
given_name_th
required
string
family_name_th
required
string
phone_number
required
string
ip_address
required
string
layer_names
required
string
address_code
required
string
address_province
required
string
address_district
string
address_subdistrict
string
important_place_name
string
Responses
  • 200

    The request has succeeded.

POST/download-histories
Shell cURL
curl --request POST \
  --url https://dpt-openapi.finema.dev/download-histories \
  --header 'Content-Type: application/json' \
  --data '{
  "given_name_th": "",
  "family_name_th": "",
  "phone_number": "",
  "ip_address": "",
  "layer_names": "",
  "address_code": "",
  "address_province": "",
  "address_district": "",
  "address_subdistrict": "",
  "important_place_name": ""
}'
{
  "id": "c667df88-4de8-442b-a64a-5fbce59086f0",
  "given_name_th": "…",
  "family_name_th": "…",
  "phone_number": "…",
  "ip_address": "…",
  "layer_names": "…",
  "address_code": "…",
  "address_province": "…",
  "address_district": "…",
  "address_subdistrict": "…",
  "important_place_name": "…",
  "created_at": "…",
  "created_by_id": "…"
}